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.
fetch-api
6,181
questions
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 ...
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 ...
-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(...
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:...
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 ...
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 ...
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 ...
-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 ...
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'...
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 = ...
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 ...
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 ...
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 ...
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 ...
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 ...