Skip to main content

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
-1 votes
3 answers
33 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 ...
Chobbit's user avatar
  • 493
0 votes
0 answers
23 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); ...
Md Jahid Hasan's user avatar
-2 votes
1 answer
29 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 ...
Abdulla's user avatar
0 votes
0 answers
20 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-...
Priyanka Ghule's user avatar
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....
Christopher Dirksen's user avatar
-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"}, {"...
John Beasley's user avatar
  • 2,853
-1 votes
0 answers
26 views

Frontend response data best practice ? Should I consider fallback case for every fields returned from fetch api? [closed]

When fetching data, should I consider every fields could be undefined and create fallback in return value? I feel like its very tedious thing. Do we have any best practice if yes? Code example: // ...
Long.H's user avatar
  • 37
-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://...
Teeco's user avatar
  • 13
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 ...
Daniel's user avatar
  • 11
0 votes
0 answers
26 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 ...
Ruffyg's user avatar
  • 93
1 vote
0 answers
26 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,...
rhea laloo's user avatar
-3 votes
0 answers
47 views

Cant Access Variable through Promise when using async function to fetch from an api [closed]

async function LoadPortfolios() { const result = await fetch("http://localhost:8080/Investor/" + globalInvestorId + "/Portfolio", { method: '...
user26231132's user avatar
0 votes
0 answers
46 views

fetch Facebook public groups using Graph API

I am trying to fetch a random public group's posts in Facebook using playwright,(post information : user name, content and comment section [ username, comment] and I am trying to use Graph api to ...
raghad's user avatar
  • 1
0 votes
0 answers
17 views

403 error when sending a POST request from the browser

I'm sending a POST request in two different ways: fetch('https://clone.pinpointworks.com/api/v1/auth/login', { method: 'POST', mode: 'no-cors', body: JSON.stringify({ email: 'someone@...
dariusz's user avatar
  • 523
-1 votes
0 answers
61 views

Getting fetch failed error while using @google/generative-ai

I have included the below code in the index.js file. I'm trying to use the @google/generative-ai in local. const { ProxyAgent } = require('undici') const dispatcher = new ProxyAgent('http://127.0.0.1:...
luffy's user avatar
  • 13

15 30 50 per page
1
2 3 4 5
663