Skip to main content
Filter by
Sorted by
Tagged with
Best practices
3 votes
4 replies
104 views

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. ...
sandeep gajula's user avatar
0 votes
1 answer
173 views

’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’...
Muskan wbst's user avatar
0 votes
0 answers
81 views

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 ...
Rufan's user avatar
  • 1
0 votes
0 answers
82 views

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 ...
Jems's user avatar
  • 1
4 votes
1 answer
81 views

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 ...
Algo's user avatar
  • 61
0 votes
0 answers
96 views

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/...
MR. Anderson's user avatar
0 votes
0 answers
189 views

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 ...
Adriaan Marain's user avatar
0 votes
0 answers
28 views

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 ...
Jenny Poudel's user avatar
0 votes
0 answers
168 views

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 ...
phuocantd's user avatar
  • 396
0 votes
1 answer
93 views

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. ...
Marko Ticinovic's user avatar
1 vote
1 answer
78 views

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 ...
nimrod42's user avatar
0 votes
1 answer
115 views

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 ...
Paul's user avatar
  • 4,618
0 votes
0 answers
285 views

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'...
Sergio Mendez's user avatar
0 votes
0 answers
149 views

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 ...
Ilir Iljazi's user avatar
0 votes
2 answers
528 views

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 ...
nonlinear's user avatar
0 votes
1 answer
67 views

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 ...
Aasem Shoshari's user avatar
1 vote
1 answer
71 views

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"). ...
ii5's user avatar
  • 21
0 votes
1 answer
392 views

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(...
chupapee's user avatar
  • 551
0 votes
0 answers
261 views

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&...
Jin's user avatar
  • 189
0 votes
0 answers
60 views

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 ...
Vincenzo's user avatar
  • 433
0 votes
1 answer
408 views

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 ...
vatsal chauhan's user avatar
0 votes
0 answers
113 views

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 ...
SamWieszKto's user avatar
1 vote
1 answer
282 views

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 ...
magrega's user avatar
  • 263
0 votes
0 answers
38 views

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 ...
Muhammed's user avatar
3 votes
1 answer
411 views

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 ...
Johnny John Boy's user avatar
0 votes
1 answer
54 views

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', ...
Farid Omarzadeh's user avatar
1 vote
0 answers
96 views

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 ...
r0k's user avatar
  • 11
0 votes
0 answers
107 views

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 ...
Sonal Yadav's user avatar
-1 votes
1 answer
86 views

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 ...
silenceofworld's user avatar
2 votes
2 answers
302 views

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 ...
Blue_Clown's user avatar
0 votes
0 answers
169 views

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....
Zack Hendricks's user avatar
0 votes
1 answer
57 views

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 ...
Nasaboyzs's user avatar
-1 votes
1 answer
93 views

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: {&...
Dione Saturn's user avatar
0 votes
1 answer
50 views

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 ...
WebWorker's user avatar
0 votes
1 answer
189 views

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 "@...
Salman Fazal's user avatar
2 votes
1 answer
56 views

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:...
balintov's user avatar
2 votes
0 answers
595 views

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, ...
Eliran's user avatar
  • 365
3 votes
0 answers
571 views

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] {...
Cowwde's user avatar
  • 61
-2 votes
1 answer
67 views

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; ...
Paul Slater's user avatar
0 votes
2 answers
88 views

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 ...
Daniela's user avatar
  • 376
1 vote
2 answers
385 views

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 ...
SuperVeetz's user avatar
  • 2,148
0 votes
0 answers
74 views

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 ...
dandelionn's user avatar
-2 votes
1 answer
201 views

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 ...
Catto's user avatar
  • 6,469
0 votes
0 answers
128 views

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 ...
max's user avatar
  • 13
0 votes
1 answer
48 views

one.tsx function fnOne() { var urlMap = new Map(); urlMap.put ("1", ["https://thetestrequest.com/comments/1", "https://thetestrequest.com/comments/2&...
Chidambaram L's user avatar
0 votes
1 answer
69 views

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'; // ...
もぐもぐぷりん's user avatar
0 votes
2 answers
410 views

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 ...
The Khateeb Dev's user avatar
0 votes
1 answer
42 views

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 ...
Danko Grgić's user avatar
0 votes
0 answers
125 views

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 ...
user2495207's user avatar
0 votes
0 answers
83 views

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 ...
DashAndBash's user avatar

1
2 3 4 5
197