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,934
questions
-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 ...
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);
...
-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 ...
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-...
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
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:
// ...
-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
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 ...
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,...
-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: '...
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 ...
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@...
-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:...