I use fetch for getting some resources from the server. I can see from logs that from time to time conversion to JSON fails on "TypeError: Failed to fetch" whic
As a newbie to React I have been stuck for awhile on how to get my access token to be put to use in a second fetch API. In the first fetch (Get token), I am abl
I want show_name() to run and then call another function. I don't understand why show_name().then fails. I'm probably overlooking something. async
I have a form that submits data with the javascript fetch() API to MySQL database with PHP. In the code below, when the form is submitted a success message is o
I have a little trouble using fetch, This is javascript code: function loginJS() { const login = document.getElementById('login'); const nome = documen
I'm trying to create a login form. when I'm testing the service with Postman, I will get a body object with status code and etc. But, with
I'm using credentials: 'include' and mode: 'cors' on the client. On the server I see access-control-allow-credentials: true and access-control-allow-origin: htt
This endpoint http://vk-data:8003/v1/entity/ returns this: [ { "id": "country", "url": "http://vk-data:8003/v1/entity/country", "nam
I have set AWS Usage Plan and attached a key to the API. I have this code which throws 403 Forbidden. fetch(myapi, { method: 'GET', headers:
I'm creating a virtual store as part of my Bootcamp projects and ran into this problem when trying to get the confirmation page from the cart page using the fet
I can hit this endpoint, http://catfacts-api.appspot.com/api/facts?number=99 via Postman and it returns JSON Additionally I am using create-react-app and would
I'm using React native for developing an android application. With this fetch request I'm getting the error TypeError: network request failed: fetch('https://p
I try to post a slack message via the fetch API in a browser: fetch('https://hooks.slack.com/services/xxx/xxx/xx', { method: 'post', headers: { 'Accept
in my React app, I have the following API POST to allow the user to edit their profile (name and image). static updateProfile(formData, user_id) { const
I test the fetch API with jsonplaceholder URL, but my function returns "Promise State: Pending", and I don't understand why : function getUsers(url) { return
I can hit this endpoint, http://catfacts-api.appspot.com/api/facts?number=99 via Postman and it returns JSON Additionally I am using create-react-app and would
In my Javascript client, I'm using Fetch API to call the server to retrieve a server-generated file. I'm using the following client-side code: var _url = "";
I've been trying to make an React site, which would fetch a GET-response from API and print it out to my .html-file. I've managed to fetch the file just right,
I'm trying to use the new Fetch API: I am making a GET request like this: var request = new Request({ url: 'http://myapi.com/orders', method: 'GET' }); f
When sending cross origin requests using the fetch API the origin request header is being set to null instead of the chrome://xxxxx that I was expecting. Using