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,930
questions
0
votes
0
answers
13
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.
...
0
votes
0
answers
24
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
10
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
12
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
31
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
21
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
35
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....
-2
votes
0
answers
19
views
Trying to set array of json items returned from Fetch [duplicate]
I am trying to use Fetch to set an array with JSON items.
Right now, the JSON looks like this:
[
{"product_line":"Health and beauty","sum":"17014.4"},
{"...
-1
votes
1
answer
39
views
Why fetch data is empty nextjs
Im using nextjs app router and im trying to pull data from database and access it in app via fetch
export default async function Home() {
try {
const userData = await fetch("http://...
0
votes
1
answer
23
views
Continuous Data Fetch
I’m working on food delivery app, as a personal project to learn React Native I’ve build the client-side app that fetches the menu from a db and inserts the order into the db..
Now I want to create ...
0
votes
0
answers
38
views
Next.js Typescript PrimeReact FileUpload preparation
right now I'm working with Next.js and Typescript in a little project of mine.
For doing a FileUpload I'm using PrimeReact and the module FileUpload.
To make it work, I searched for a tutorial and ...
1
vote
0
answers
28
views
Error fetching user: [TypeError: 0, _jwtDecode.default is not a function (it is undefined)]
This is the code for my index.js file in react native where im trying to fetch the userID if the currently logged in user.
import { StyleSheet, Text, View } from "react-native";
import React,...