Questions tagged [fetch]

DO NOT USE. For questions about the JavaScript Fetch API, use the [fetch-api] tag instead. For the git subcommand, use [git-fetch]. This tag is ambiguous.

fetch is used in many contexts, include source control, database querying, and cache control.

References

11193 questions
2
votes
1 answer

MailKit MessageId is returning null

var summaries = IMailFolder.Fetch( uids, MessageSummaryItems.UniqueId | MessageSummaryItems.Envelope | MessageSummaryItems.BodyStructure…
Samuel
  • 1,949
  • 4
  • 18
  • 30
2
votes
1 answer

multiple request with fetch and chrome only work with 6 files at a time and other requests will be stalled

I make a 10 request to the server with fetch and reload that every 5 sec. After 1 minute the browser is frozen. Chrome only works with 6 requests at the same time and hold all other request stalled. everything is frozen (scrolling the page, zoom in…
Max Zelger
  • 21
  • 3
2
votes
1 answer

Why is fetch not working on my mobile browser?

I made the simplest server in NodeJS, which stocks strings in a database when requested "/add" and sends to my front (ReactJS) all of those strings "/getall". I display them using the map function. Everything works as expected. But, my information…
user11277823
2
votes
1 answer

Why does fetch keep cutting out when downloading a file while manual download in the browser doesn't?

I'm using fetch to download a file and there is a problem I'm facing when using fetch that does not happen when I download the file manually on the browser. Maybe I'm missing something here? the code looks like this: fetch(link).then(res => { let…
tito.300
  • 976
  • 1
  • 9
  • 22
2
votes
1 answer

Add limit/delay on fetch requests to an API

I would like to prevent the API I'm using from throwing me 502 Bad Gateway. At the moment I'm looping through the array of web URL's and requesting their screenshot. The issue is I do too many requests per second. I would like to convert my code so…
Ben
  • 345
  • 2
  • 4
  • 13
2
votes
1 answer

Why do my React App reload after fetching data?

After getting user email and password and getting access to enter, app goes to user profile page and goes after that to sign in form again. That happened when I added .then(data => ...). One more issue is that I'm using POST method but after signing…
Freecs
  • 23
  • 4
2
votes
2 answers

How to fetch metadata (image, title, description) from any url in ReactJS

I want to fetch metadata (title, image, description) from a url like a Medium article and then display it as a post on my blog. How to do it. I am using ReactJS I tried using fetch and axios.get but it always shows error in the browser's console.…
Ankur Singh
  • 133
  • 1
  • 12
2
votes
2 answers

Cannot read property 'map' of undefined, why?

This is my App.js file. I am trying to fetch data using fetch() What am I missing? Getting Error as TypeError: Cannot read property map of undefined". What is wrong? How do I get the result? I'm following the reactjs tutorial, and I keep…
user3226524
  • 103
  • 3
  • 11
2
votes
1 answer

Highcharts not rendering : React+Typescript+Highcharts

Trying to bring up a highchart using react. I am having multiple fetch api calls(for illustration, I have added only 2) whose data I will be using to render something in the UI. In this example data1 is used to render a table, data2 is used to…
joy08
  • 9,004
  • 8
  • 38
  • 73
2
votes
4 answers

Convert text to HTML

What I want to achieve Inside React I want to fetch an HTML page with fetch and from the response i get I want to extract some data from a div with a class called "myDiv" The data I am fetching are in an HTML format. Current I have this code which…
RMT
  • 942
  • 2
  • 12
  • 32
2
votes
1 answer

Throw a custom error with response body in fetch call

I would like to know how can I create a custom error handling where I would get the resolved response body and passed it to the custom error in fetch function. In my example I getting a validation errors on many fields in response body. This is the…
Leff
  • 1,968
  • 24
  • 97
  • 201
2
votes
0 answers

How to fix "Json Parse Error: Unexpected EOF" error sent in ReactNative?

So i'm developing a ReactNative App, and to create a new user, i'm creating a Json with the informations given by the user, and i send it to a PhP file which Parse the Json received to store it in the Database. But the problem is that my JSON…
Marquis Jules
  • 71
  • 1
  • 7
2
votes
2 answers

How can I get my fetch error to show an http status code?

I have a react component and I'm making a network call to set the state. Eventually I want to pass this down to other child components, but just getting the plumbing to work at the moment. I'm trying to catch errors correctly when calling out to my…
intA
  • 2,513
  • 12
  • 41
  • 66
2
votes
0 answers

Clean session after Fetch() - React native

How can I clean session after sending a post request using fetch() to login? I am using credentials: 'include' , so how do I clean that when I call Log Out ? I tried researching on this but strangly I couldnt find anyhting! Here is my fetch()…
showtime
  • 1
  • 1
  • 17
  • 48
2
votes
1 answer

React-native fetch extremely slow on wifi compared to cellular. Both in dev and production, irrespective of running/not debugger

I am facing extremely slow fetch/network on a RN 0.57 app with wifi (this has been the case since 0.4x, so i think it is version independent) I am fetching some json or downloading images with RNFS. It happens on ios. It happens on dev and release…
Taata
  • 107
  • 2
  • 11