Skip to main content

All Questions

Tagged with
0 votes
0 answers
29 views

Axios this$1.originalAdapter.call is not a function after upgrading from 0.28 to 1.6

After upgrading axios versions from 0.28 to 1.6.4 our simple axios.get call throws an error of: this$1.originalAdapter.call is not a function The call is never made. There is no network activity. The ...
Joe W's user avatar
  • 2,891
0 votes
0 answers
56 views

How to stop HTTP error codes from automatically being logged in the frontend?

I am trying to make a login system using a typescript/react frontend and a typescript/nodejs backend. Currently, when the user is logged out, my backend returns a 401 (not authorized) error code, ...
luuf's user avatar
  • 37
0 votes
0 answers
37 views

On session expire open react dialog in app axios instead of prompt

On session Expire , if any of the API fails then status code comes out to be 401 and we show prompt to ask password and re new the token again . But problem is that we do not want to show prompt we ...
Akshit Malhotra's user avatar
0 votes
0 answers
12 views

How to send form-data with string and file in reactjs

const addNews = async () => { let titleErrorText = ""; let textErrorText = ""; let imageErrorText = ""; if (!title) { titleErrorText = "...
ZestMag77's user avatar
0 votes
1 answer
525 views

how to do react axios interceptor setup where if local storage don't have accessToken then want to clear local storage and navigate user to login?

Suppose I am creating a React project, and in that project, I want to set up Axios. For Axios setup, I am creating an Axios interceptor file where, before each API call, I am checking if this domain's ...
Sohan Paliyal Simprosys's user avatar
0 votes
1 answer
43 views

I was trying to connect my react frontend with java backend using axios. But I got stuck as "'then' is undefined" runtime error occurs

function HelloWorldRestApiCall() { axios.get('http://localhost:8080/hello-world') .then((response) => successfulResponse(response)) .catch((error) => errorResponse(error)) ...
Adwaith Manoj Kumar's user avatar
1 vote
0 answers
481 views

sending post request with axios and formData, Content-Type 'application/octet-stream' is not supported

This react component: import React, { useState } from "react"; import ReactQuill from "react-quill"; import "react-quill/dist/quill.snow.css"; import { useDropzone } from ...
milanHrabos's user avatar
  • 1,995
2 votes
1 answer
849 views

Cancel a post request with abort not working correctly

I'm trying to call a post request from Next.js app. However, there is a cancel button to stop the post request. I'm trying abortController with Axios (v1.4.0) to stop the post request. When I'm ...
Ibnul's user avatar
  • 39
0 votes
2 answers
149 views

ReactJs | axios.request doesn't await

I created this reactjs app. In this app there is a singleton class "ServerMgr" that I use to send post request to my server. Previously I used the js fetch function and it worked fine, but ...
LilLakes's user avatar
-2 votes
1 answer
312 views

AxiosError: Network Error\n and CORS Issue on React

I'm calling API from https://api.wisecapitals.com/cronjobs/fetchXERate. But I'm getting error on the console of the dev tools: Access to XMLHttpRequest at 'https://api.wisecapitals.com/cronjobs/...
Damika's user avatar
  • 832
1 vote
1 answer
98 views

CORS Error for POST Requests from React to Ballerina Server

I have a local Ballerina server (http://localhost:8080) and React frontend (http://localhost:3000) set up, and I've encountered a CORS error while attempting to send POST requests to the server ...
MOHAMED SABTHAR's user avatar
0 votes
1 answer
330 views

How do i get headers Authorization?

We are utilizing axios in react to make a login post request like below. Then I'm trying to get the jwt token value stored in authorization in the response header, but when I console it, I get ...
kd02109's user avatar
0 votes
1 answer
695 views

how to make a post with axios using node js as local server

Hello everyone I have the following error in my post and I have no idea where the problem is coming from. I'm a beginner in node is and I'll give you my node JS server below Server.js const http = ...
melvin debot's user avatar
0 votes
0 answers
257 views

HTTP Status 500: Invalid property [Set<Object>] of bean class [DTO]: Illegal attempt to get property threw exception

I am working with React and Axios and trying to pass data through the PutMapping Spring function below: @PutMapping("/{id}") public ResponseEntity<?> update( @...
clocke3's user avatar
3 votes
1 answer
263 views

how to Stop Axios automatically convert http to https in react js

how can i solve react using axios to send all the request http to https automatically in between only possible after deployement then it will works fine in localhost but i will faced this issue at ...
B Thiru Yogeshwaran's user avatar

15 30 50 per page
1
2 3 4 5
9