Skip to main content

Questions tagged [fetch-api]

The Fetch API is an improved replacement for XHR, for making asynchronous HTTP requests while better managing redirects and interaction with CORS and Service Workers.

0 votes
2 answers
39 views

Why when i send a fecth requst to Open Weather API in React JS. React first return me undefined an after that data?

I watn to make Weather App. I just start study react. I do a fetch request to Open Weather API to get a weather data. When i consol.log(data) and update my page, React first return me undefined and ...
Help Me Study's user avatar
0 votes
0 answers
8 views

Need clarification on httponly cookie restrictions on firebase functions (v2)

Note: I am using firebase functions "v2" (const functions = require('firebase-functions/v2')) So, according to several sources, which I will list at the end, it seems as though the firebase ...
Michael Sohnen's user avatar
-3 votes
0 answers
36 views

Fetch Api Call - JavaScript [duplicate]

How to use sync and await during fetch call in Javascript. I have a separate JS file like 'APIService.js' which used fetch api to external Url. function APIService(){ this.getData = asyn function(...
Lucifer's user avatar
  • 818
1 vote
0 answers
15 views

Can't recognize audio file in Flask backend

I am having difficulty processing an audio blob I am sending to a Flask backend. I want to process the blob into a mel-spectrogram using librosa/pydub, but I get the following errors: ERROR:root:...
Lan Do's user avatar
  • 150
1 vote
2 answers
41 views

Sending data to the Spring Boot backend with FormData and RequestParam not working

So I am struggling for a while with sending files and other data to the backend with FormData in the frontend and RequestParam in the backend. I tried so many different things and I have searched so ...
FrightSabor's user avatar
0 votes
0 answers
25 views

Next.js revalidateTag not working as expected with route handler

I'm working on a Next JS application where I need to revalidate tags after a user submits a quest. The revalidateTag seems to not trigger the route handler correctly. Here's the setup: Also, for all ...
degen balls's user avatar
0 votes
0 answers
43 views

Asp.net Core API return POST method data from postman after publish But return CORS policy error from React App [closed]

I am trying to create a React App with an ASP.NET Core API backend. The problem is when I run the API locally and try to log in from the React app, everything works fine. I can fetch data without any ...
percy's user avatar
  • 11
-2 votes
0 answers
35 views

Unwanted GET-request after POST-request [closed]

I'm building project of RC-car via wifi with ESP32 module using http pair client-server. When client sending first POST-request all is ok, but next requests larger and mixed with some GET-request and ...
All All's user avatar
0 votes
2 answers
44 views

Fetch API Response via HTTPS

I've created an HTML page and I am retrieving it over HTTPS. Clicking a button on that page sends a Javascript Fetch API request to an HTTPS endpoint, a PHP script I also created. My question is: if I'...
snixdad's user avatar
  • 37
0 votes
1 answer
17 views

I'm trying to make an API request from my react native app. In isolation, the api works with the correct authToken but doesn't in my react-native app

Whenever I run it on my web browser, I get an error that says "Uncaught error. Failed to fetch" Here's the code that causes the problem. useEffect(() => { const fetchTweets = ...
Efojensen's user avatar
1 vote
0 answers
43 views

NodeJS fetch is tremendously slow with Google API

I use the fetch-node@2 version, and whenever I try to access the Google API via NodeJS, the response time is tremendously and painfully slow. I'm literally waiting 6-8 seconds to retrieve the data. On ...
AngryJohn's user avatar
  • 643
0 votes
1 answer
46 views

Fetch failure in Flask app/IIS with large uploads

I have a Flask app running on a Windows server using IIS as a reverse proxy to a Waitress app server. It sits behind my organization's F5 local traffic manager. A key function of the app is handling ...
Dan Shepherd's user avatar
0 votes
0 answers
20 views

how to actually implement a serverless function on Vercel for Vite code for production environment?

My code works perfectly fine using Vercel Dev, and a Postman request to the API route, but still, it says "Error: Error: Failed to fetch response." I think the error may be a wrong fetch ...
user26354078's user avatar
0 votes
0 answers
19 views

Form Data not send to the API

import prisma from "@/app/lib/db"; import { getKindeServerSession } from "@kinde-oss/kinde-auth-nextjs/server"; import { NextResponse } from "next/server"; export async ...
SamiBro's user avatar
0 votes
0 answers
11 views

Excel Add-in Custom Functions not working on Windows

all! I've built a little Excel add-in that adds some custom functions to run calculations via a HTTP API. I developed it on my Mac using the Yeoman generator, and selected custom functions with the ...
jkhoffman's user avatar
  • 301

15 30 50 per page
1
2 3 4 5
413