Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

Meta WhatsApp Cloud API: "(#100) Invalid parameter" error while sending template message in Node.js

I'm trying to integrate the Meta WhatsApp Cloud API in my Node.js + Express project to send a registration confirmation message after a user signs up. However, I am encountering an error: (#100) ...
Sujay K C's user avatar
-5 votes
0 answers
24 views

Why is the object in Axios POST request valid? [duplicate]

The code below contains an assignment: const newItem = { name, quantity: Number(quantity), price: Number(price) }; My understanding from JavaScript is that an object is composed of key: value pairs. ...
Crowdpleasr's user avatar
  • 4,028
-3 votes
0 answers
22 views

How can i bypass SSl error in React Native [closed]

Hello Can you tell me this error " Axios Error: Network Error" when i prompt it on gpt it gives ssl error i know it ssl error it stops my api to fetch data how can i bypass it please find my ...
Ahsan khan's user avatar
0 votes
0 answers
19 views

React Query Stuck in Loading State on 406 Not Acceptable Response with Axios

I'm using React Query (@tanstack/react-query) to fetch RDF data from an API with Axios, but when the API returns a 406 Not Acceptable response, the query remains in a loading state indefinitely ...
Javad Farokhi's user avatar
2 votes
1 answer
32 views

Page hot-update by Vite when send axios request and using @tailwindcss/vite plugin

I have a project that uses Axios for data fetching. However, I noticed something strange: When I fetch data by clicking a button and my vite.config.js file contains tailwind() (@tailwindcss/vite ...
Dananime's user avatar
1 vote
1 answer
40 views

When sending axios requests, the component is rendered too many times (or not)

I use the following code: The useBaseAxios hook (the basic hook for queries, will be used inside another custom hook) import { useState, useEffect} from 'react'; import axios from 'axios'; const ...
Artem's user avatar
  • 13
0 votes
1 answer
24 views

How to redirect to a URL from the Location header in a 302 response using Axios?

the request returns a 302 with a URL in the Location header. The browser automatically makes a GET request to that URL, but I need to redirect the user to the page with that URL. const res = axios.get(...
chupapee's user avatar
  • 533
0 votes
1 answer
48 views

Behavior of axios interceptors

I have an app that uses axios interceptors to update the refresh token and access token. Everything works normally, but I have a question about the behavior of the axios interceptors. I have the ...
Joao's user avatar
  • 23
1 vote
1 answer
17 views

Axios put request - 422 error unprocessable entity

Front end: await axios.put('/api/updategardensize', { gardenSize :'haha'} ,{withCredentials: true}) Backend API ENDPOINT IS: @app.put("/api/updategardensize", status_code=status.HTTP_200_OK)...
 C A OB1's user avatar
2 votes
1 answer
24 views

AbortController stop axios request and block the next request

There is a button in my component that I use to get a random quote from the API, and it is also possible to stop a query by clicking on another button. The problem is that when I cancel the first ...
Akaev Dzhalal's user avatar
0 votes
0 answers
25 views

Cannot create a reservation of a workspace, getting the error code 8201 when using Zoom API

I'm developing a website that connects to the Zoom API using a server-to-server oAuth connection. After successfully obtaining an access token, I send a POST request to create a reservation for a ...
Wings of Shadows's user avatar
1 vote
1 answer
38 views

How to set DNS server for a single axios get request?

I know I can set the DNS servers in node dns.setServers([ '4.4.4.4', '[2001:4860:4860::8888]', ]); But this is set globally and I'm developing a module (dependency) and I don't want to affect ...
João Pimentel Ferreira's user avatar
0 votes
0 answers
33 views

Access protected resource(Spring Boot) with the help of React (Axios) works fine with postman, getting CORS Error

Workflow is : User login to the system using username and password Successful login gives back token, which we use to access restricted resource We are sending header from Client side to server ...
shank2111's user avatar
  • 105
0 votes
0 answers
20 views

Axios/axios.get for Twilio not responding

I am trying to forward a text message to an email address. This should be simple, but the code on Twilio's docs produces a syntax error. I modified the code and I am working through it, but I am ...
Chris J's user avatar
  • 21
0 votes
0 answers
22 views

Connecting Expo to Firebase Functions backend through Axios

I'm having problems with my frontend, which is a React Native project using Expo for visuals. I'm using the Expo Go mobile app for the connection. My backend runs locally using Firebase Functions. I'...
Noah Little's user avatar
-1 votes
0 answers
38 views

Axios post rucgcheck login [closed]

I'm trying to use rugcheck API through nodeJS Axios but can't find a way to make that work, it keeps saying signature mismatch whatever I try, and I've spent hours on that. Error is : ERR_BAD_REQUEST, ...
Grit's user avatar
  • 29
0 votes
0 answers
29 views

Validation of sending sms through sms gateway - Yeastar

I'm trying to read the message about the correct or incorrect sending of an sms message by the Yeastar TG200 gateway. In the browser I get this message in html form: <html><head><meta ...
SamWieszKto's user avatar
0 votes
1 answer
39 views

Expo Android app keeps getting rejected from Google Play due to login credential issues, even though I provided the correct ones

Expo Android app keeps getting rejected from Google Play due to login credential issues, even though I provided the correct email and password for them to log in. I use Axios POST to handle login ...
Mostafa Elkaramany's user avatar
-2 votes
0 answers
26 views

not receiving cookies from backend [duplicate]

I'm working on a React frontend and an Express backend, and I'm trying to send a login request using axios. However, the requisite does not include any cookies, even though I'm using withCredentials: ...
Noureddine's user avatar
0 votes
0 answers
36 views

unexpected end of archive error when trying to open a Zip file downloaded via javascript

I'm trying to download a ZIP file from a backend API that returns the ZIP binary as a string. If I do this: curl --location 'https://backend-endpoint.com/get-file' >> test.zip it creates a ZIP ...
splunk's user avatar
  • 6,805
1 vote
1 answer
23 views

"AxiosError: Request failed with status code 400" on Market Order Request

I'm working on a trading bot that connects to Binance Testnet using WebSockets to get ticker updates and Axios to place market orders. However, I'm encountering the following error when trying to ...
reimannsur's user avatar
0 votes
0 answers
50 views

Why refresh token is called twice in axios interceptors

With the following code, it's work on almost all my pages except one where I load many tabs in same time (eager tab on vuetify2) expected: send http request if response is 401 (token is expired) we ...
JRIS's user avatar
  • 1
0 votes
1 answer
29 views

Cannot upload worker script using Cloudflare API: Main module name is not present in bundle

I'm trying to use this API route of the Cloudflare API to upload a worker with metadata. I'm using Node.js 18 and Axios 0.29, with the following code: const api = axios.create({ baseURL: '...
Boris K's user avatar
  • 1,554
-1 votes
0 answers
32 views

CSRF management in Spring boot application with Vue js issue

I'm working over my Spring boot app with Vue js frontend and I want to adjust CSRF tokens for POST request from my Vue js client. So, to set CSRF token for POST request I make pre GET request to http:/...
user29675544's user avatar
0 votes
2 answers
91 views

How to Resolve Google News Redirects to Get the Final Article URL Using Axios?

I'm trying to scrape news articles from Google News using Node.js. The issue I am passing is that the links provided by the RSS feed. They give us this type of link which is a Google Rss Link which ...
Deus's user avatar
  • 13
0 votes
0 answers
14 views

How to Retrieve Redemption Codes from eBay API Using Node.js

I'm trying to retrieve redemption codes (e.g., coupon codes or discounts) from the eBay API using Node.js with axios. So far, I successfully obtain an OAuth access token using the Client Credentials ...
Maltazar's user avatar
0 votes
0 answers
19 views

Handling Cookies and Axios Interceptors in Qwik JS SSR

I am developing a SaaS-based inventory application in Qwik JS with TypeScript. I use Axios to fetch data from a REST API and have implemented Axios interceptors to refresh the access token when it ...
Murugesan's user avatar
-4 votes
1 answer
48 views

Axios api post request not working after 7th try [closed]

My code is set to post a axios request after a set period of time. Every time it gets to the 7th iteration, no post request is being made and recieved by the backend. its not a rate limit problem or # ...
Byrie's user avatar
  • 29
0 votes
2 answers
60 views

Axios $type property not being deserialized correctly

I have a vue.js project that communicates with a .Net backend via rest calls. The part that is of interest contains 2 JSON objects with a property called $type, property which is generated by the ...
Razvan's user avatar
  • 1
-1 votes
1 answer
37 views

Request fails with error 401 on Android using Axios [closed]

I am building my first React Native/Expo app and have implemented a custom JWT implementation on my PHP server. The JWTs work as expected on iOS, but they fail on Android. This is my code so far: ...
J Guerrero's user avatar
0 votes
1 answer
51 views

Why my axios get method isn't updating my react useState?

so the code of my app.jsx is import Navbar from "./components/Navbar"; import TodoList from "./components/TodoList"; import Authentication from "./components/Authentication&...
nxn_404's user avatar
-1 votes
0 answers
24 views

How to make axios headers work with typescript?

I am using "axios": "^1.7.9", "typescript": "^5.7.3" node v18.6.0 I see that headers are shown in red in eslint for axios. The call works fine but it is ...
Kristi Jorgji's user avatar
0 votes
0 answers
34 views

Browser not saving a cookie in localhost when authenticating against NodeJS API, even though the cookie is sent

So, I am working on a full stack app, with a backend written in Node with Express. The app is currently on an AWS EC2 instance running using Nginx and pm2, hooked up to the database (also AWS) and ...
Lazar's user avatar
  • 168
0 votes
0 answers
23 views

Axios POST request in React Native Returns 419 Error While Insomnia Request Works

I'm developing a React Native app that makes a POST request to the following endpoint: https://www.animeunity.so/livesearch When I test the request extracted from my browser in Insomnia, it works ...
olippo's user avatar
  • 1
0 votes
0 answers
22 views

Random Network Error in React-native android while uploading image with Axios formdata

I'm using Axios in a React Native application to send attendance data with a selfie image as multipart/form-data. Sometimes randomly I encounter a "Network Error" when I try to make the POST ...
Jatin Bhuva's user avatar
  • 1,872
1 vote
1 answer
52 views

Cannot persist PHP session for subsequent API calls after logging in

Goal: seed test data in my PHP application via a Cypress framework in the before:run event using Axios. Running both my application and Cypress framework locally. I only need to seed test data in my ...
Zuno's user avatar
  • 471
-1 votes
0 answers
34 views

useEffect making request and getting token null when first loggin in

Login.jsx: import './login.scss'; import { useContext, useState } from 'react'; import { Link } from 'react-router-dom'; import { login } from '../../authContext/authController'; import { AuthContext }...
John Rocha's user avatar
0 votes
1 answer
27 views

Unable to send cookie from React frontend to Symfony backend

I'm working with an API made with ApiPlatform. My endpoints are accessible via http://localhost:8000/api/myendpoint. I use LexikJWTAuthenticationBundle and NelMioCorsBundle. The route /api/login_check ...
caden.king's user avatar
0 votes
1 answer
50 views

How to use Axios Timeout?

in my nodeJS server i am sending a post request to AWS (python flask server), the aws-server will take around 30 mins to process the data (because it has certain ML code running) and respond is this a ...
Pranav K M's user avatar
0 votes
1 answer
45 views

Can't get access to an endpoint

I have an endpoint that I made using djangorestframework. The view has a dispatch method for retrieving data from the request and sending it to post method. Endpoint: class Profile(APIView): ...
Caution's user avatar
0 votes
0 answers
19 views

Jest taking longer than expected to run tests using axios mock-adapter

I am using jest to test that my API functions return the correct latency spent by axios when doing the API calls. In the tests, I use the 'axios-mock-adapter' library to simulate delays in axios calls ...
Lemour's user avatar
  • 323
0 votes
0 answers
12 views

Refresh token coming from cookie does not persist after restarting application (Axios) (IOS)

I have a refresh token that comes as a cookie from the backend. It works fine the first time I logIn, if I do not leave the app and the token expires it will refresh the token correctly. Although if I ...
Nilton Schumacher F's user avatar
2 votes
1 answer
98 views

Why does Roblox’s Quick Login API return a 403 error when checking login status?

When I scan the qr from the quick-login code, and successfuly login, then send a post to the status endpoint, the response reflects that I'm not logged in. code: // sending post to create endpoint to ...
vys's user avatar
  • 45
0 votes
0 answers
39 views

Django Simple JWT + Axios, always getting 401. How can I fix this?

I’m using Nuxt and a pinia store to store the token (the token is present in the store). I've created a plugin for Axios as follows: import axios from "axios"; export default ...
user17651270's user avatar
-1 votes
1 answer
42 views

Axios Return 404 Error After Building with Vite (Vue.js 3 + Laravel 11)

Issue: I'm developing a Vue.js 3 application with Vite as the bundler and Laravel 11 as the backend. Everything works fine in the development environment, but after building for production (npm run ...
amine amino's user avatar
0 votes
0 answers
21 views

Yahoo Japan Ads API returning null metrics for campaign report

I am trying to generate a campaign report using the Yahoo Japan Ads API (StatsService) to fetch metrics like clicks, impressions, CTR, etc. Below is my implementation: public generate = async ({ ...
Farshid Ahsan's user avatar
1 vote
1 answer
71 views

axios.post() is actually sending a GET instead of POST?

Trying to send multipart/form-data to an api in ReactNative running on Expo. The code below is failing because the API is expecting a POST but is instead receiving a GET. I've created a test api just ...
David Wood's user avatar
1 vote
0 answers
29 views

axios inside useLayoutEffect with StrictMode fires twice [duplicate]

I'm new to React and found a strange behavior inside useLayoutEffect function in my custom context (AuthContext - simple context to work with jwt and refresh token). The problem: axios inside ...
Quikler's user avatar
  • 121
0 votes
1 answer
33 views

How to use axios to get a file stored in s3

I have a function I was trying to develop to return a file from s3 but it does not actually return a working file that could open in the browser: export async function urlToFile (url : string, ...
Qiuzman's user avatar
  • 1,761
0 votes
0 answers
16 views

Issue with Axios and Cookies in React and Express Setup

I’m working on a React frontend with Axios for API requests, and an Express backend with CORS and cookie-parser. My goal is to manage authentication using refresh tokens and access tokens. On login, ...
Zain Amjad's user avatar

1
2 3 4 5
493