24,714
questions
-3
votes
0
answers
20
views
AxiosError {message: 'Request failed with status code 404'} Unable to post data in my server
I want to upload my 3d model in the server so i am giving the data in form-data format but I am Stuck with 405:Method not found error , even after defining the post method in my API file (route.js) , ...
0
votes
1
answer
40
views
How to get the result from API with Axios
I've started learning API. I've made an app where the API has this result (It's the F1 Motorsport API" from RapidAPI
{
"standings":{
"id":"0",
&...
0
votes
1
answer
19
views
How do I mock a custom hook with axios for testing?
I have a custom hook which fetches data from a third party api. I need to create a test using vitest but I can't seem to find anything that works.
If any one is able to help that would be much ...
1
vote
0
answers
144
views
Uploading multiple files with React and Axios
I am trying to upload image with React/express.
While I am able to do with Postman, sent image with react is strange.
I try everything but I was not able to solve the issue for days.
What I get in ...
0
votes
0
answers
27
views
Axios - React SWA - Azure function app - message: "Request failed with status code 400", name: "AxiosError", code: "ERR_BAD_REQUEST"
I am looking for a way to secure my Azure function app API.
The Static WebApp is react based and has google oauth.
I have simple functions that work from Code + Test , before linking Static WebApp and ...
-3
votes
1
answer
34
views
Why React and Axios responds undefined, although everything is available on the API? [closed]
There is an API, from where the data from the database is steamed, which should be displayed on the landing page.
Everything seems to be spelled out correctly, but the landing gives as undefined.
api ...
0
votes
2
answers
58
views
How to use Axios with Laravel 10 and Vite?
I want to make an Ajax call using Axios in Laravel 10 with Vite (I don't use VueJs).
I get the error "axios is not defined".
My view :
<x-app-layout>
<div class="py-12&...
1
vote
1
answer
30
views
cypress.config.js of setupNodeEvents function does not fire the GET request using the Axios library
I want the after:spec event to trigger after a spec file is executed, automatically posting the test results to Jira's test execution. I am using the Axios library to make the API call to Jira. ...
0
votes
1
answer
34
views
How can I take advantage of useAxios composable when I don't know in advance which data to pass to it?
I'm trying to create a TS service by leveraging composables and by using DummyJSON as BE. This is what I did, step by step.
Set axios base URL
// src/axios/index.ts
import axios from 'axios'
axios....
-1
votes
1
answer
37
views
JWT Authentication Issue: Postman Works, Axios Fails in VueJS Project [duplicate]
Hey everyone
I have a bit of trouble with authentication-request in my VueJS project using Axios.
What works
When I send a POST request to https://xyz.blabla/api/authenticate using Postman with the ...
0
votes
1
answer
32
views
React Query Not Returning Followings from Django API
I'm developing a React application that retrieves a user's followings from my Django backend API. However, I'm facing issues where the followings data is not being returned correctly.
API Response
...
0
votes
0
answers
53
views
Node.js Error: connect ECONNREFUSED / connect ETIMEDOUT
I am trying to run a load test on my dev environment, where my client is sending multiple api calls to my server parallely. The initial stage of the load test runs smoothly, without any issues. Errors ...
0
votes
0
answers
13
views
What is the difference between delay and deadline timeouts in jitter backoff
I have once concern related to retry mechanism by using the Jitter.
When I try to hit the API calls sometimes we are getting failed response. That time we have implemented the retry mechanism.
I have ...
-1
votes
0
answers
22
views
Why is my token not being saved in local storage
I'm working on a React application that uses context for authentication. I have implemented a function to save a token in local storage when a user logs in. However, the token doesn't seem to be saved,...
1
vote
1
answer
33
views
Aline.js x-data not reactive
I'm using Alpine.js to render a list of videos from an API. After making the API call, the response data populates my videos array successfully, but the page doesn’t update to show the new data.
Here'...