9,831 questions
Best practices
3
votes
4
replies
104
views
Fastest way to read 10M DB rows in Python?
I’m trying to efficiently read about 10 million rows (single column) from a database table in Python and I’m not sure if my current approach is reasonable or if I’m missing some optimizations.
...
0
votes
1
answer
173
views
Next.js (App Router) – SSR with Axios & Cookies, CSR vs SSR API calls, and State Management Confusion
’m building a flight booking system in Next.js (App Router) and I want to use Server-Side Rendering (SSR). However, I’m running into some issues with API calls, cookies, and state management.
What I’...
0
votes
0
answers
81
views
Expo EAS build not fetching data from HTTP API in production
I'm having an issue with my Expo + EAS build. In development mode, my app works perfectly — I can log in, fetch events, and create new ones.
But after building with eas build -p android, only login ...
0
votes
0
answers
82
views
Can't call protected routes from Laravel 12 using fetch in Server Component in Next.js 15
I am using Laravel sanctum SPA authentication and everytime I use axios with config of withCredentials:true and withXSRFToken:true and call protected routes from the laravel api, it works perfectly ...
4
votes
1
answer
81
views
A wait-free consensus algorithm for three processes, with a swap object and the fetch-and-increment object together in one atomic step
We know that a swap object consists of a shared register and supports a swap operation between the shared register and any local register, which atomically exchanges the values of the two registers.
A ...
0
votes
0
answers
96
views
Facebook Graph API v23.0 video upload: CORS error when using fetch with <UPLOAD_SESSION_ID>
I'm using the Facebook Graph API to upload a video to a Page. The process involves three steps as described in the official documentation:
https://developers.facebook.com/docs/video-api/guides/...
0
votes
0
answers
189
views
hey-api client-fetch: How to set AbortController / timeout on a request?
I'm using hey-api's Fetch API client and have been trying to set a timeout time on requests, but I'm running into issues and can't seem to figure it out. Has anyone managed to get this working, or ...
0
votes
0
answers
28
views
Does Upstash's context.call method support ReadableStream.?
I am using upstashs context.call method to call my langgraph server. My langgraph server has an agent that autocompletes the notetext. When I do console.log in the body of context.call, I can see the ...
0
votes
0
answers
168
views
Problem after upgrading React Native from 0.75.4 to 0.76.9: Fetch API fails after Metro reload
I recently upgraded my React Native project from version 0.75.4 to 0.76.9.
After upgrading, I’m encountering an issue related to the Fetch API:
• When I build and run the app via Xcode, the API ...
0
votes
1
answer
93
views
Best pattern for fetching both from server and client in Next.js App Router (handling cookies, CSRF, headers)
In a Next.js App Router project (app/ directory), I’m trying to build a unified fetcher that can work both server-side and client-side, including correct handling of cookies, CSRF tokens, and headers.
...
1
vote
1
answer
78
views
fetching a mjpeg video stream on iOS throws "TypeError: Load failed" error
I have a webserver which delivers a small React SPA, in which a mjpeg video stream (streamed by the same webserver) is embedded.
Since the stream can only be viewed with authorization, the stream is ...
0
votes
1
answer
115
views
React native ImageBackground unknown image format
I'm trying to use a remote image in a React Native ImageBackground component, but I'm getting an error saying Unknown image format.
I'm not sure why it's not loading properly.
What causes this error ...
0
votes
0
answers
285
views
Angular 19 not showing http requests/response in network tab from browser
I'm struggling with a problem in angular 19.
The thing is that I have a http service. The exact same service that I've been doing in previous versions of angular. Everything is working as expected. I'...
0
votes
0
answers
149
views
Handling fetch redirect on react-native app during pkce authorization code flow
I have a react native mobile app (ios/android), which I'm attempting to implement the PKCE Authorization Flow per the RFC. My aim is to redirect the user to my own login page instead of a third party ...
0
votes
2
answers
528
views
Why no CORS error when curl rest API request [duplicate]
I have to call a rest api. When the call is made with frontend javascript fetch request from within a web page then I get back a CORS error form the browser. But when the same request is made from ...
0
votes
1
answer
67
views
route handler only recieve POST requests
I have table component that provides functionality to add, edit and delete materials, but only add material works, deleting or editing material doesn't work, the method in the route handler doesn't ...
1
vote
1
answer
71
views
Tryed to fetch and get error with CORS or empty response
The problem is that when requesting from the frontend to the server, it returns either an error or an empty string (just empty) to the console if you disable Cors in fetch(mode: "no-cors"). ...
0
votes
1
answer
392
views
How to redirect to a URL from the Location header in a 302 response using Axios?
the request returns a 302 with a URL in the Location header. The browser automatically makes a GET request to that URL, but I need to redirect the user to the page with that URL.
const res = axios.get(...
0
votes
0
answers
261
views
Error "net::ERR_H2_OR_QUIC_REQUIRED" with Fetch API
I want to modify the url of the Request object, but I have some problems.
const r = () =>
new Request("post", {
method: "post",
body: JSON.stringify({ name: "none&...
0
votes
0
answers
60
views
Cannot read property of null reading Image Astro
I'm trying to fetch a simple endpoint like so
export const prerender = false;
const params = Astro.params;
const id = params.id;
let data = null;
let error = null;
try {
const response = await ...
0
votes
1
answer
408
views
How to test a loading screen in vitest
In my <App /> component I want to show a loading screen until I've fetched my data and after fetching my data all the images(whose source's I got from my data) are loaded.
I am having difficulty ...
0
votes
0
answers
113
views
Validation of sending sms through sms gateway - Yeastar
I'm trying to read the message about the correct or incorrect sending of an sms message by the Yeastar TG200 gateway. In the browser I get this message in html form:
<html><head><meta ...
1
vote
1
answer
282
views
access token doesn't change on ky retry request
I am trying to pass my access token to requests made with ky and retry them on 401 error with an updated token. On retry the token updates but the requests themselves still have the old token. How do ...
0
votes
0
answers
38
views
NextJS triggers the parent fetching when not needed
Project structure
as shown in the image this is my project structure, I have a person page and a Friday-prayers page nested inside it, in the person page there is a data fetching that happens to get ...
3
votes
1
answer
411
views
Why is my FastAPI endpoint not saving an HTTPonly Cookie using Fetch?
The question says it all, I feel like I've read everything I can and I am still no further forwards. The current situation is:
Enter api.mydomain.com into a browser directly does save my cookie
...
0
votes
1
answer
54
views
Unable to set the httpOnly cookie in the browser and send it back to server using javascript fetch
I am having Issues with receiving and sending httpOnly cookie - on the login Page
var response = await fetch(BASE_URL + 'login?useCookies=true', {
method: 'POST',
credentials: 'include',
...
1
vote
0
answers
96
views
Why Does My PATCH Request Occasionally Fail with Status Code 0
Problem Statement
I'm experiencing intermittent failures with a PATCH API request that runs every 20 seconds in a React application. The failures return status code 0 and seem to persist for a long ...
0
votes
0
answers
107
views
I am trying to fetch open AI runs API (https://api.openai.com/v1/threads/thread_threadID/runs) but not getting response in stream in React Native
When I am trying to use EventSource from react-native-sse, I am not getting any response but when I am using fetch I am getting the response in response.text() but text() show the response at last and ...
-1
votes
1
answer
86
views
Data Fetching from a Static JSON File / REACT
I have a static json file appyling this format:
[
{/*OBJECT1*/}, {/*OBJECT2*/} /* SO ON ... */
]
I wanted to fetch data to my React Component from this JSON file
I fetch the data in my React ...
2
votes
2
answers
302
views
Position of robotic arm base in gymnasium-robotics' fetch environments off center
I am trying to solve the Farama gymnasium-robotic fetch environments, specifically the "FetchReachDense-v3" problem. When running the simulation, the base of the robotic arm seems to be ...
0
votes
0
answers
169
views
Error when trying to fetch the Chromium source code
When trying to fetch the Chromium source code, I'm getting this error in the command prompt:
________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium....
0
votes
1
answer
57
views
Route Problems with fetch
I currently have a problem in my project that when I try to edit a workout that requires PATCH, it goes to the backend and the database but the edited line is not displayed in the frontend. I have ...
-1
votes
1
answer
93
views
JSON, fetch, javascript in HTML and undefined or empty string [duplicate]
I was searching a forum for issues related to JSON and fetch function. There is bunch of them but i have hard time to understand this. What do i need is to fetch "/api" url that returns:
{&...
0
votes
1
answer
50
views
POST Requests Fail with "Uncaught (in promise) TypeError: Failed to fetch" on Tab Switch
I am sending a great amount of events in batches of 20 events to an analytics tables in BigQuery. Initially, I used sendBeacon but switched to using regular POST requests. Below is the class I use to ...
0
votes
1
answer
189
views
NextJS Zustand (server fetching)
This might be a question that's asked several times but being new to both NextJS and Zustand, I am having trouble understanding some concepts.
This is my zustand store:
import { Category } from "@...
2
votes
1
answer
56
views
Uncaught (in promise) TypeError: - website loads the data but error message in console
I am trying to build a simple website, fetching data from github.
I have two datasets here.
The currentAPI is loaded correctly, while the other one throws error message Uncaught (in promise) TypeError:...
2
votes
0
answers
595
views
How to add a default baggage header to all fetch requests in OpenTelemetry for Browser?
I'm using OpenTelemetry with JavaScript to instrument my web application. I've successfully set up tracing, and I can see that the traceparent header is automatically added to all fetch requests. Now, ...
3
votes
0
answers
571
views
Issue with fetch in Next.js middleware: [TypeError: fetch failed] with cause [Error: AggregateError] when calling localhost:3333
I'm encountering an issue when making a fetch request inside a middleware in my Next.js application. When I try to fetch data from localhost:3333, I get the following error: [TypeError: fetch failed] {...
-2
votes
1
answer
67
views
PHP PDO fetchObject returns duplicated properties, half of them null [closed]
I'm trying to learn PHP and MySQL. I've got a database and some retrieval happening, but when I used fetchObject() I get 2 instances returned. First tried:
class Food {
// Properties
public $id;
...
0
votes
2
answers
88
views
Rails 6, how to render .js.erb with fetch() and params
I am updating old Rails apps that worked with jquery and $ajax(), and this still works after the update. I would like to change the ajax call for a fetch() with .js.erb and params, all seems well, but ...
1
vote
2
answers
385
views
AWS WAF: Custom Responses are not accessible by browser
I've configured some rules with custom responses in AWS WAF to prevent some users from accessing my website based on their geographical location. I can see that these rules are working as intended ...
0
votes
0
answers
74
views
fecth API cannot load due to access control checks when downloading a json file
I have a Nextjs 14 application and the requests are made on the same origin. I experience some odd behavior when downloading json files in safari(IOS). I am using swr and it re-fetches automatically ...
-2
votes
1
answer
201
views
Why does a Next.js 15 Fetch URL in production on Fly.io change? [closed]
When fetching a post on a production next.js 15 hosted on Fly.io the URL that place in the fetch is changing & causing a 404 not found;
The request URL in the network tab of the Chrome dev tools ...
0
votes
0
answers
128
views
Expo very slow internet connection requests
i wanted to deploy an expo app. Everything runs nicely on the Simulator, but now I tried it on my android device and the requests takes about a minute for a little request.
Does everyone know what the ...
0
votes
1
answer
48
views
How to synchronously Fire URI stored in an array
one.tsx
function fnOne() {
var urlMap = new Map();
urlMap.put ("1",
["https://thetestrequest.com/comments/1",
"https://thetestrequest.com/comments/2&...
0
votes
1
answer
69
views
I made a web-crawler, but the output is garbled text
I am making web-crawler that pick up specific content and output.
However the output by crawler is somehow garbled text.
The code:
import fetch from 'node-fetch';
import { JSDOM } from 'jsdom';
// ...
0
votes
2
answers
410
views
Sending FormData from my front end to backend does not work (req.body in backend is null)
this is Omar,
Note: Too much talk? the sections below not all of them is a must to check if you are just trying to understand the problem, just see these ones:
Front End (A really quick look at the ...
0
votes
1
answer
42
views
React Bootstrap modal inside map function eliminates background and appears twice
I am using a map function to create a list with fetched data. I want to make one cell a clickable button that makes modal appear with the text from the object's "about" property inside that ...
0
votes
0
answers
125
views
Why userscript cannot intercept all requests?
Similar to this question. The following userscript intercepts fetch and XMLHttpRequest requests and log their url's to the console. But, why it doesn't intercept all requests? for example it doesn't ...
0
votes
0
answers
83
views
Using fetch in chrome extension but it doesn't offer me a cookie
summarize: I think background.js can't respond cookie in fetch.
I know, there is a similar query that Asked 7years ago. but information was too little to know how to solve this problem.
first, as ...