Fetch-api Questions
Ad
API Fetch update only one data
How can i update only one data through api? i want to change from status: 4 to status: 5 here's my code
React with React-Router works on localhost, but after deploying on cPanel fails to fetch api call
I have searched for a few hours now found no working solution. i followed this guide
Node.js - Getting stuck recursively trying to make get requests via fetch api
I am querying an endpoint and need to hit it multiple times to get all of the data. i am trying to do this recursively as i have no idea how many
How to set large Request Body for fetch API call
I have a fetch post that is sending a large json object: const body
TypeError: Cannot read property 'fixtures' of undefined, Nested Json From Fetch Call
Not the best with asynchronous calls, js or react and struggling with it... here goess.. so i am using fetch library to
Fetch API can't load '.php' local file - React JS + PHP
I am working on a react js application. where i am using php and mysql at the back end and react js at the front end. what i am trying to do is to
Is it possible to use a download URL from GCS in JavaScript?
This new question is just because my old question was closed. so i can't even answer it.
Javascript Fetch API too fast; finishes before second HTTP (fetch api) request
I have 2 http requests using the fetch api in javascript. my main language is java but i was tasked with a front-end project so i'm not sure if
How can I parse fetch JSON return and put elements in to HTML page?
Using the javascript fetch api i have an html page as follows: <body> <div> <button
React state hook doesn't properly handle async data
I'm trying to set a component's state through an effect hook that handles the backend api. since this is just a mock, i'd like to use the vanilla
Ad
React: how to prevent api calls in ComponentDidMount and in ComponentDidUpdate override each other
In componentdidmount i am fetching data using a redux action, for example: componentdidmount() { let
How to consume the Open Weather App API in react
I have been trying to fetch from the open weather api but an error message kept appearing on the console. it returned 'unauthorized' and 'message:
Meaning of .then((resolve) => resolve.json())
Sorry for the basic question, i am very new to promises etc. just wondering what the meaning of the 3rd line is? window.onload =
i am getting error when i am fetching user data from database in laravel through API
Hello guys nowadays am working on laravel api everything is perfect just one issue am facing that is when i write wrong username and password so i
Why is a Component method using fetch and settingState in response not causing a componentDidMount()?
I want to generate a menu dynamically depending on user connected state and user role. i have a json file from which feeds the react app with all
Iterating through JSON Objects in React
I'm currently struggling to iterate through a json object i'm fetching from a third-party api. haven't really dealt with fetching apis before as
Success message continues fire despite error state in Semantic-React-UI form
I am trying to get the appropriate messages to fire depending on the state of my form component for front end validation on form submit.
ComponentDidMount I want to add fetch API and FirebaseAuth
I want to connect firebase stuff. what i'm trying in my news feed is when i press addtofavourite its name should go to firebase. so
Cannot fetch JSON data using GET method: resJSON is not defined error
I'm trying to get data from backend server usin this fetch function: let users = [] const fetchusers = () => {
When i am trying to fetch api this error : "type 'List<dynamic>' is not a subtype of type 'Map<String, dynamic>" shows up
I am trying to create a api request in flutter but i'm getting following error as response type 'list' is not a subtype of
How to type value of `fetch().then()` response argument in reactjs typescript project
I am trying to get a json from response of the fetch function, however i fail to do so in 1 then call. take a look at this
Ad
Client side can't fetch server response
The problem i deployed a create-react-app webapp to aws ec2. it's used to display data from a database and send data to it. i use
How to make common API call function using fetch
I am trying to make common function which will handle all of my api calls from anywhere i am using react": "^16.8.6" and fetch for making
How to fix 'Fetch API cannot load http://localhost:3000/static/js/0.chunk.js due to access control checks'
I am using react to build a generic weather web app. right now i am just trying to get the weather data for a city (ie. not doing anything dynamic
React app fetch() response is empty although API endpoint returns data when sending a GET request from somewhere else
This is what my api call looks like: export async function gettasks(): promise<task[]> { if (process.env.node_env ===
Rendering component with property coming from fetch in componentDidMount React
I am trying to render a component that needs props passed to it. these props require data that can only come from an api fetch. the issue is that
Having trouble fetching from an api not sure what I am doing wrong?
I am trying to fetch from an api to and display the data im getting. i have tried using regular fetch with promises and axios and it doesnt seem
How to populate select dropdown elements with data from API - ReactJS
I'm fairly new to react. i'm fetching data from an api, and i can see the data when i check console log. however i can't figure out how i can use
Cannot get data API Fluter
I want to get data of each element inside "invoices" to show but i don't know why it has a problem when i try to call
How to return raw XML from a fetch request?
I have to retrieve xml data from a server. i'm using fetch since i need an async/await compatible way of making http requests. however
Getting NULL / empty data when running fetch(URL) with useEffect() in React client
I have built a nodejs server that reliably supports an api http://localhost:5000/record/gopa that returns a well
res.redirected returning false even when the backend returns a redirect
I'm trying to create a login page which redirects the user back to the home page after successful login using nodejs and fetch. here is the code
Ad
ReactJs : How to prevent componentWillUpdate from re-rendering multiple times
I am creating a simple todo app, i am using componentdidmount to display the data from the database. but the problem is, once i add a new data the
Is this streaming from file or browser memory?
In the following code it looks as though i can stream a local file without loading it all into memory at once because with larger files i get
Why is "Promise { <pending> }" not resolving?
I am trying to fetch data from the storm glass api. i am using their template fetch request
Trouble sending File from React frontend with Fetch to Express 4 API
I am attempting to send an image file from my react frontend to my express api: fetch('http://localhost:4000/upload/', { method:
flutter fetching data from json "string is not a subtype of Iterable<dynamic>"
I 'm trying to fetch data from my server but i'm stuck with an error of type. i've followed several tutorial and answer here but without
Best approach to making sequential POST requests in Javascript
So i have an array that contains data that needs to be sent as part of the payload for post requests that need to be made. now, these need to be
React. How to deal with missing keys in API response using fetch and setState only for existing keys?
I am working on a react project that use public api to fetch some data. problem is i found a lot of interesting and definitely highly valuable api
React-native array data assignment with fetch
I am developing a mobile app in react- native as a beginner. i have a little problem while using react-native. let me explain it in detail, what i
axios does not work with while fetch does
I want to get data (array) from /{url} and i tried this code // fetch the list on first mount componentdidmount() {
Access to fetch from origin localhost blocked by CORS policy, post using ajax does not. Why?
This is not problem about cors, so don't suggest workarounds with browser plugins or changes to server code. i just want to understand why ajax
React/FetchAPI: How to take data from related json by id
I want to take data from json, next take another data from related json by id and push it to my state array movies. this is
Ad
Using Async and await with Fetch (in Actions of Redux) ReactJS
I am trying to call several api one after the other, on a button click. something like this. and then route to a different path.
React setState twice renders state
When i trade with setstate, it turns twice. first the data fail is returned and then the data ready is returned. console return false first then
How to retrieve data from SWAPI in React
Need to do more than one fetch to swapi i want to display the characters' films and species info. i managed to make an initial fetch, that
Fetch returns undefined when imported
I have a function that fetches data from the url and is supposed to return it: const fetchtabledata = () => {
JavaScript AJAX Fetch API and Laravel 5.8 pointing to wrong URL (route)
I was wondering that the ajax response points to this url
How the activity of the browser tab affects the queries
I develop excel parser. for any row in excel, i prepare a separate request (via axios). i noticed that when browser tab with parser is not active
JSON.stringify() function is replacing the file object with an empty one
Issue hello guys, can anyone please help me to solve this complicated issue? : i'm creating an application using spring boot v2.0.5 and
Fetching csv data on Internet Explorer failed
I just tried to fetch a csv file using d3.js v5. data fetching is working fine in all browsers except internet explorer
Trouble looping data from fetch, in a Sheets API to WooCommerce REST API App
I have a code i was using inside google gas but i had to refactore it a bit to use it outside and i'm having trouble with a for loop i had to form
Blob() in a response isn't displaying original image url but size and type
Though i don't i have any error but instead of displaying the image as it displays perfectly on postman. i used res.json(), i received "unexpected
Ad
Adding jwt token to GET request not working in React
In order to get data from an api, i need to send a jwt token in the header of the call. i save it in local storage after i get it in my
make a unique number id for every item I get from the api response
So, here i'm trying to map through a response i get from an api, before i get the items from the api, i was testing it statically and i made a
Node.js - Fetch from server or client side?
Let me see if i can explain this properly. i am making a website where users can save some information (in this case movie information).
Use MailGun API from react native app
I'm building a small react native app with expo and needs a functionality to send e-mails from within the app. the user doesn't need to compose
history.push not working in fetch callback
I am working on simple react js application where i am authenticating user and if he/she has successfully logged in i am trying to redirect to
Trying to use redux with react
So, i have a react app where i'm using multiple apis to get some data and i'm trying to start using redux in it. i already watched some redux
Parsing an api response
I want to parse this api response to get the image url and i find it a little confusing actually because i'm new with apis. {
ReactJS Fetch drop-in replacement for this AJAX boilerplate
Background: the following ajax code works successfully (reactjs + jquery frontend, php backend).
unable to display data using fetch API - node.js
So, i am getting the below error, inspected via google chrome
Send props from parent to child and update them in child component (ReactJs)
I trying to make a pagination with a response from an api request made with reactjs. i have one main.js page that send props to
Fetch requests in ReactJS
I am working in a small application for a class i am taking and i have an issue when i am using the fetch api class app extends
Ad
Spotify API, can't chain two API calls properly
I'm having trouble chaining these two api calls. so basically i'm trying to recreate the spotify interface and individually, these calls actually
getting Objects are not valid as a React child error
I'm trying to make a fetch request to my server and set the response json as the component's state. i get this error objects are
React Isomorphic Fetch not actually posting
I'm creating a website using react, one of the steps involves creating an event. i've created a step that posts to an api using isomorphic fetch.
Chrome extension fetch API - Content Security Policy
My chrome extension should fetch some remote resources from 3rd party api through http request. const getboards = callback => {
What is wrong with my javascript fetch API call?
I have a javascript fetch api call made to a django backend server const res = fetch(url, { credentials: 'include', method:
How do you get the JavaScript fetch() function to update to the new data being added to the file
I have a json file containing some data that i want to write to the screen. i have a function that contains a fetch() request that runs each time
CORS blocking javascript fetch request with same origin
I made a javascript app that fetch a json file when the page load. everything is working fine for me and most users. but for some people, the
How can I pass a variable with url on javascript fetch() method?
I have to fetch data from my django api. in the url to fetch
How to resolve Javascript fetch API error in browser when sending POST request to Tomcat?
I have a restful api in spring boot with a few endpoints implemented. tomcat is running fine on port 8080, and postman requests get a response,
JavaScript Fetch() Not Differentiating Between The Update And Delete Functionality Of A Form
I have a form that is currently processed on the server with php/mysql that uses the javascript fetch() api in the frontend so that when details
Using django url scheme with Javascript fetch API
I want to use django url scheme when working with fetch api, but it's not understood and i end up with an escaped url. i followed
Ad
data extraction with javascript fetch api
I am pulling data with fetch api. but i could not retrieve the data in the todosapi section of the last data i pulled. how can i pull data?
Getting custom error message using fetch api when http response status is 400
I have python flask (v 1.0.0) backend that returns an http response with status 400 and a custom error message return response('my
React JS - How to pass variables (parameters) when using a local JSON file?
My page is consuming data from an api/json and passes two parameters via the api url: the code:
How do I mock two fetches or one Promise and one fetch?
I am trying to test the loadallprojects function. the test fails at .then() with the error: typeerror: cannot read property 'then' of
Sort fetched data
I need to add sorting to fetched data (ascending/descending). i get all the data from api endpoint. i map every object in that array to be
Fetch(): Request body malformed
I want to make a fetch request to an api that accepts different types of body requests: twitter handle, facebook link, phone number, etc. the
ReactJS: array in API call only displaying last element?
I'm working on a small program in reactjs. this program calls a text file, checks it for criteria, and logs the results to an array. the array is
Django: Fetching data from an open source API
I am trying to fetch public holiday data for france, australia and germany from
Why did fetch() API failed to retrieve custom HIBP JSON data?
I am trying to use the have i been pwned? api to retrieve a list of
filtering data after fetch for graph
I am fetching data from the database using api and the data will be used to show in the graph. below is the format of the api. i would like my
How can i fetch data from mysql and render it with nodejs and javascript?
Sos question pls : i want to make a simple todo app to add a todo task and save it in database mysql exactly like this link :
Ad
Type Promise generic from call to fetch?
Today i'm facing a little issue with trying to type the promise from a call to fetch. i have a callapi helper
Axios, fetch() setting request headers into Access-Control-Request-Headers instead of separate headers
I am trying to make a get request with some custom headers from a react application. this is the code for the axios interceptor:
Fetch request to local file not working
I'm trying to make a request in a local file, but i don't know when i try to do on my computer show me an error. is possible make a fetch to a
Empty body at server side when using fetch
I am trying to send html form data to server via a fetch 'post' request but at server side i am getting empty request body. i have already tried
Send PUT request to Laravel Controller via JavaScript Fetch API
I want to pass data to my laravel controller to save them in database. here is my code.. html meta tag.. <meta
Get clicked ID from parent to child element with ReactJs
I'm developing an application in reactjs and now i need to pass the clicked id from main.js page to sofa.js,
Get value from array inside fetch result (React.js)
I need to acess a name that is inside the array area_set that is inside a result from an api fetch. i try
ReactJS Cannot read property setState of undefined
I am new to reactjs, and somewhat understand that this question is duplicated to numeral questions in sof. but i hope someone can give me
Postman gives response but ReactJS code throws error
I am trying to fetch the records from an api but it returns unsuccessful response when i am using the below code. but at the same time, it is
React state magically changes for no reason
I am using react for a calendar application. i am fetching data from api for certain dates to get only 1 week worth of data at a time from
How to fill dropdown with JSON data in React?
I try to fill in a dropdown with data from the json format but for now the dropdown is empty (no results found...) i certainly have a
Ad
Fetch url to React component
I got stuck with react fundamentals :/ there is code that generates table with json data inside: import react from 'react'
this.setState() not a function after successful API call method
This question has come up quite a few times on here, i know, but none of the solutions have worked for me. so, i'm making a call to the itunes api
Ad
Blog Categories
Ad