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
9,935
questions
1
vote
1
answer
26
views
React js not fetching and rendering after importing data
I fetch from db new data and render (setState) after importing excel data, problem not working. I have played around to trying to get it working so copied the fetch from getItems to ...
0
votes
0
answers
24
views
Remove backslash from escaped forward slash in a string
I have an array(imageURLS) of string in js. Used 'fetch' to send the array as JSON.stringify(imageURLS) to savedesign.php. The array elements are like ['shop/2.png' , 'shop/3.png']. But each elements ...
0
votes
0
answers
13
views
Failed to resolve module specifier "@tauri-apps/api/http"
import { fetch } from '@tauri-apps/api/http';
document.addEventListener('DOMContentLoaded', async function() {
const serverIP = 'http://185.221.21.49:30120/players.json';
const playerCountElement ...
0
votes
0
answers
11
views
Query custom fields in rally, fetch not working with underscore for custom field
I'm building custom apps in rally for dashboards, and I'm running into an issue querying for custom fields. When using fetch, the underscore in the name of the custom field is throwing an error. If I ...
0
votes
0
answers
13
views
Nextjs 14 - Add Header to *EVERY* http Requests without using Service Worker
I would like to add a header to EVERY outgoing http request (for both pages and api).
Is there build in way to do so globally in nextjs?
Context:
I use Firebase's App Hosing to host nextjs 14 app.
Due ...
-1
votes
0
answers
44
views
Axios and Fetch error only on Vercel (working fine on localhost)
I'm making requests to the Asaas (payment gateway) API routes locally and everything is working perfectly, but when deployed to Vercel, I get strange errors, I've already tried with fetch and axios.
...
1
vote
1
answer
38
views
I can't fetch documents from firebase database using flutter
i have collection named "Categories" in firebase and under this collection i have documents that i want to fetch . i defined the methode "getAllCategories" that is supposed to get ...
-1
votes
0
answers
12
views
AXIOS asynchronous fetch [duplicate]
I am fetching data from this mock service that I am running locally on my localhost:3001. I logged the state of the data and seems to be logging the correct information. But I want to retrieve a ...
0
votes
1
answer
20
views
useSWR isnot working in Firefox and Safari. NextJS App
I use useSWR to get data from my backend and I noticed that in Safari and Firefox my request is not even sent, but when I use google chrome everything works perfect. What could be the problem?
[fetch ...
0
votes
0
answers
13
views
Firefox only- Fetch GET (JSON) shows "NS_BINDING_ABORTED" with Service-Worker
I am using a Service Worker to serve cached data (1st time loading from server, then loading from Cache if same request).
A GET Fetch request to my server returns valid JSON data.
On second Page load, ...
-1
votes
3
answers
40
views
How to run map() after fetch has completed React
I'm trying to fetch data and then get my React App to map through the data to render each product on the page.
However it fails to find the data to perform the .map() and I assume that's because the ...
0
votes
0
answers
28
views
Without Reload data isn't fetching
I am using this package to load nationalities npm i i18n-nationality-updated
import { getNames } from 'i18n-nationality-updated';
const nationalities = getNames('en');
console.log(nationalities);
...
-2
votes
1
answer
32
views
Problem when trying to fetch data from the Fetch API. Empty parentheses arrive before clicking in the console [closed]
I'm trying to get a data from fetch API, but my result is empty before I click on result in console. And I couldn't manage this data in my app. I don't have something, problem with asynchronous ...
0
votes
0
answers
23
views
How to troubleshoot why the count of messageconversion is high for the kafka produce and fetch network requests
I am seeing very high count for kafka_network_requestmetrics_messageconversionstimems_count metrics for both produce and fetch request.
Kafka version being used is 3.6.1
log.message.format.version=3.0-...
1
vote
0
answers
36
views
why is the fetch data undefined on the child react component?
i have a useEffect on the parent component that runs a fetch call on render
useEffect(() => {
const fetchCall = async () => {
try{
const res = await fetch('https://www.dnd5eapi....