6,254 questions
1vote
1answer
49views
When I make a fetch request then take out the JSON, instead a promise is saved as a variable with the correct JSON in it
When I make a fetch request then take out the JSON, instead a promise is saved as a variable with the correct JSON in it. I can not figure out how to pull the data from the promise in the variable in ...
0votes
0answers
21views
How to fetch automatic refreshed token from XHR?
Some websites update JWT regulary to prevent scraping: in browser JS sends XHR to server to get fresh token- see the Token XHR on the picture below. Eg. curl "https://www.nemlig.com/webapi/Token&...
1vote
1answer
60views
ajax/fetch promise not resolving in Chrome iOS mobile [root cause unrelated]
Similar questions chrome mobile jquery ajax POST not working = Seems like it should be the same problem, but asker apparently was unable to reproduce after publishing to remote server. Context ...
0votes
0answers
33views
Relative paths for Javascript fetch inside a Thunderbird extension
I'm trying to use window.fetch() in a Thunderbird extension I'm working on. Specifically, I want to try fetching the contents of files using relative paths - but am failing, possibly because I'm not ...
1vote
0answers
37views
Why is a fetch of missing resource's URI take me straight to the catch block?
I'm using the Fetch API for the first time, running some code within a (recent version of) Thunderbird: let uri = whatever(); window.fetch(uri) .then((response) => { console.log(`got response ...
-1votes
0answers
27views
FastAPI 422 Error Code Sending to React Fetch Request [duplicate]
I am just starting to learn React and I am attempting to make a site where the user can send a picture which they've taken from their webcam to a model I've trained setup on FastAPI. Here is the code ...
0votes
1answer
42views
can not make a multi form post request via JS run without error
First Question I have a route tested in insomnia which is working The route is sent as\with multiform option also, I have to set\change the preferences in insomnia not to validate SSL However, I can ...
0votes
0answers
59views
Why does javascript fetch call not enable me to read contents of the file? [duplicate]
I am trying to get a web page to read text from files held on the same webserver. The following is the code I am using; it is cobbled together from several much-praised answers to similar questions ...
0votes
2answers
42views
Non Expected Format of JSON Received By Express App (Sent By Fetch API)
I am new to nodejs/express and I have stumbled across a seemingly simple, yet annoying, problem in a web app I am developing. Essentially, I am trying to send a post request to an Express App that ...
0votes
0answers
44views
How to close stream with server-side event using fetch?
so I'm using server-side events to push messages from the server to the frontend. For front end. I'm using fetch to start the stream, like this const response = await fetch(`${API_URL}/hello`, { ...
0votes
0answers
30views
How to keep fetch working when iOS minimizes the browser?
I'm working on a web application using Laravel, Nginx on the server, Express for the "API" and I'm facing an issue with session management when users switch tabs or minimize the browser. (At ...
0votes
1answer
68views
Suspense does not work on nextjs, waiting promise but not displaying loading dialog
"use client"; import React, { Suspense, useEffect, useState } from "react"; import TopBar from "../components/topBar"; import DataPost from "../components/data"...
0votes
0answers
42views
NextJs does not log the fetch on the DevTool but it does on the terminal - Why?
Why can't I see the fetch log information in the Chrome DevTool, but I can see it from the terminal? Context I'm used to debug my NextJs app using the DevTool, also for the Server-side code. So I run ...
1vote
0answers
52views
FastAPI response does not come through to Angular frontend
I am pretty new to fast API and angular. I am getting an issue where in angular the response never fully gets sent. When I use postman or curl the response is fully there but for some reason it always ...
0votes
1answer
21views
Having trouble using fetch API to load ASP.NET MVC partial view which includes Quill rich-text editors
I am trying to use fetch to load a partial view which includes several Quill containers. Using Fetch, the Quill editors are not rendered. There is no comparable problem using jQuery's load method. ...