Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
1 answer
35 views

I am using a spring boot as backend and react frontend to create a website and I am encountering an error when fetching a user profile using browser from the backend.After login i managed to generate ...
mohamed yusuph's user avatar
-1 votes
0 answers
38 views

when i fetch subscription from google play console it fetch the datas successfully. but the purchase does not work. it has some error SubscriptionCard.js:99 Purchase error: {code: 'item-unavailable', ...
Kamal's user avatar
  • 1
-1 votes
0 answers
76 views

i get the data from the server with fetch API it contains html, when i click on load more posts button it should load the html at the bottom of the page we got from the server, but it also loads the ...
Samyar's user avatar
  • 25
-3 votes
1 answer
103 views

I am getting data from the server. The view must renders an html page without reloading the entire page، but this renders whole page including the header of current page, this is a problem, each time ...
Samyar's user avatar
  • 25
-2 votes
0 answers
63 views

I have a .NET website running on an internal IIS10/Windows Server 2022 machine. It has an internal SSL cert authorised by our domain. It works with HTTP/1.1 and HTTP/2. It's configured to pass an alt-...
Keith's user avatar
  • 157k
1 vote
2 answers
77 views

I’m trying to send a JSON payload to my backend API using fetch in React, but the server keeps returning: 415 Unsupported Media Type Here is the code I'm using: const sendData = async () => { ...
Oleg Solltys's user avatar
0 votes
1 answer
122 views

I have been working on a personal project for a while now and during a testing phase for a database, it began reporting that CORS was preventing the file from being fetched, and stopped my testing in ...
voltage's user avatar
  • 13
0 votes
1 answer
92 views

In the html intro to a web app for a scientific study, data is collected through forms. I added a javascript function that submits the data via the fetch API: fetch('/prepare/', { "method":...
Langtec's user avatar
  • 105
0 votes
0 answers
86 views

I’m trying to call an external API from my JavaScript code using the fetch() method. It works perfectly on my local environment, but when I upload the same code to my website, I get a CORS error like ...
Dhiraj Gurung's user avatar
1 vote
1 answer
57 views

I’m working on a Laravel Blade view (monitoring.blade.php) where I have an edit and save button for each row. The edit button works, but when I click the save button, nothing happens — no console logs,...
aDiosuno's user avatar
4 votes
1 answer
132 views

Trying to make a cross-origing fetch request with the no-cors mode I found out it is not possible in this case to send any data to the server as a body: const url = 'http://cross-origin-example.com/...
Ilya Loskutov's user avatar
0 votes
1 answer
66 views

Problem: I’m trying to fetch popular movies from the TMDb API in my Next.js project, but I keep getting a signal timed out error. Here’s the error log: TMDb API Error: signal timed out at ...
Yashhh..'s user avatar
1 vote
0 answers
121 views

I’m building a small full-stack project using Next.js (frontend) and Express.js (backend) with a MySQL database. The Express backend has this route: // server.js import express from "express&...
Shivam Parmar's user avatar
0 votes
1 answer
75 views

I'm trying to write a custom React hook that fetches data. It seems to work partially — but loading goes false before data is set, and error is never set even when a request fails. import { useState, ...
Work Profession's user avatar
0 votes
0 answers
90 views

EDIT 2 (please reinstate this question) As (see below) the CancellationToken is NOT sent from caller to callee of an API, how does .NET C# know to apply the default= option of a Controller methods' ...
McMurphy's user avatar
  • 1,483
0 votes
0 answers
29 views

As the title says. This code reproduces the issue. My environment: Windows 11, ArchWSL, Volta, [email protected], [email protected] import fs from "node:fs"; import { Buffer } from "node:buffer&...
anmoti's user avatar
  • 11
2 votes
1 answer
149 views

I'm running the code below. The output I was expecting was: Start -> End -> While expires -> joke -> setTimeout However, the output I’m actually getting is: Start -> End -> While ...
Interstellar's user avatar
-1 votes
1 answer
67 views

I have a code for updating the quantity in the cart by a fetch() request, and I modified it a little: updateMainItem(line, quantity, name, variantId) { const body = JSON.stringify({ line, ...
s.kuznetsov's user avatar
  • 15.3k
1 vote
1 answer
63 views

I’m trying to call an async function and get the result, but instead of the actual data, I get a pending Promise. Here’s a simplified version of my code: async function getData() { const response = ...
Nadeem's user avatar
  • 11
-4 votes
1 answer
124 views

How can I asynchronously create two hundred API requests in a quick manner to an API, that is https://api.dictionaryapi.dev, in JavaScript? I want to catch CORS errors with an error status of 429 ...
horsey_guy's user avatar
0 votes
2 answers
314 views

const acceptRequest = async () => { try { const res = await fetch(`${process.env.NEXT_PUBLIC_SOCKET_SERVER_URL}/acceptRequest`, { method: "POST", body: JSON....
Dhuruv Bansal's user avatar
0 votes
0 answers
55 views

I have updated a PDF file in my Amazon S3 bucket. The bucket in question is being served by a CloudFront distribution. I have successfully executed an invalidation and when I access the PDF file by ...
Narayan's user avatar
  • 65
0 votes
1 answer
115 views

I'm working on a Flutter project where I make multiple API calls using the http package. Right now, I'm writing separate get and post methods in different files, which is causing code duplication and ...
Navya Narayanan's user avatar
0 votes
1 answer
86 views

I am in the process of upgrading a job script that previously ran using NodeJS 16.x, upgrading to NodeJS 22.x. This is a pretty simple script that contains some API calls to GitHub using Octokit. The ...
Ben's user avatar
  • 2,787
0 votes
0 answers
28 views

I have been experimenting with proxying requests using a service worker (SW) fetch event listener and have been seeing behaviour I thought wasn't possible, at least according to AI, and reading ...
Austin Foss's user avatar
-2 votes
1 answer
102 views

I'm building a website hosted on Netlify that submits a form to a Google Apps Script web app. The form data is sent as JSON with the Content-Type: application/json header using the fetch API. The ...
Dean Winkelmann Dusk Duo's user avatar
-5 votes
2 answers
126 views

Say I have a web page and I want it to automatically "go to" some form. This sort of thing works fine: script(type = 'text/javascript'). var ff = document.createElement("form") ...
Fattie's user avatar
  • 9,770
1 vote
1 answer
145 views

The Gist API explicitly allows any * host and the PATCH method: access-control-allow-origin: * access-control-allow-methods: GET,PUT,PATCH,OPTIONS,POST However, when a PATCH request is issued from a ...
Marc's user avatar
  • 15k
3 votes
1 answer
306 views

This is the Next.js frontend: // Create FormData to send files, URLs and username to the API const formData = new FormData(); if (files && files.length > 0) { files.forEach((file) =>...
Sarthak Rastogi's user avatar
1 vote
1 answer
45 views

I'm testing my Service Worker library that accepts a FetchEvent as an input. In my tests, I want to instantiate a FetchEvent to test my library but instead I get: error: ReferenceError: FetchEvent is ...
Bora M. Alper's user avatar
1 vote
1 answer
107 views

Been getting back into programming after a pretty long while, I decided I would play around with http requests in javascript to build a web scraper later, I wrote this little guy to practice a bit: ...
petal's user avatar
  • 23
1 vote
1 answer
100 views

When I make a fetch request then take out the JSON, instead a promise is saved as a variable with the correct JSON in it. I can not figure out how to pull the data from the promise in the variable in ...
Jay _'s user avatar
  • 13
0 votes
0 answers
30 views

Some websites update JWT regulary to prevent scraping: in browser JS sends XHR to server to get fresh token- see the Token XHR on the picture below. Eg. curl "https://www.nemlig.com/webapi/Token&...
Igor Savinkin's user avatar
1 vote
1 answer
77 views

Similar questions chrome mobile jquery ajax POST not working = Seems like it should be the same problem, but asker apparently was unable to reproduce after publishing to remote server. Context ...
owengall's user avatar
  • 495
0 votes
0 answers
55 views

I'm trying to use window.fetch() in a Thunderbird extension I'm working on. Specifically, I want to try fetching the contents of files using relative paths - but am failing, possibly because I'm not ...
einpoklum's user avatar
  • 137k
1 vote
0 answers
74 views

I'm using the Fetch API for the first time, running some code within a (recent version of) Thunderbird: let uri = whatever(); window.fetch(uri) .then((response) => { console.log(`got response ...
einpoklum's user avatar
  • 137k
0 votes
1 answer
56 views

First Question I have a route tested in insomnia which is working The route is sent as\with multiform option also, I have to set\change the preferences in insomnia not to validate SSL However, I can ...
Benny's user avatar
  • 15
0 votes
0 answers
59 views

I am trying to get a web page to read text from files held on the same webserver. The following is the code I am using; it is cobbled together from several much-praised answers to similar questions ...
seglea's user avatar
  • 11
0 votes
2 answers
79 views

I am new to nodejs/express and I have stumbled across a seemingly simple, yet annoying, problem in a web app I am developing. Essentially, I am trying to send a post request to an Express App that ...
Ryan's user avatar
  • 11
0 votes
0 answers
135 views

so I'm using server-side events to push messages from the server to the frontend. For front end. I'm using fetch to start the stream, like this const response = await fetch(`${API_URL}/hello`, { ...
Linh Tran's user avatar
0 votes
0 answers
44 views

I'm working on a web application using Laravel, Nginx on the server, Express for the "API" and I'm facing an issue with session management when users switch tabs or minimize the browser. (At ...
fcoterroba's user avatar
0 votes
1 answer
93 views

"use client"; import React, { Suspense, useEffect, useState } from "react"; import TopBar from "../components/topBar"; import DataPost from "../components/data"...
eko pram's user avatar
1 vote
1 answer
236 views

Why can't I see the fetch log information in the Chrome DevTool, but I can see it from the terminal? Context I'm used to debug my NextJs app using the DevTool, also for the Server-side code. So I run ...
gixlg's user avatar
  • 1,375
1 vote
0 answers
81 views

I am pretty new to fast API and angular. I am getting an issue where in angular the response never fully gets sent. When I use postman or curl the response is fully there but for some reason it always ...
Broderick Boucher's user avatar
0 votes
1 answer
48 views

I am trying to use fetch to load a partial view which includes several Quill containers. Using Fetch, the Quill editors are not rendered. There is no comparable problem using jQuery's load method. ...
Momenee's user avatar
  • 33
0 votes
1 answer
67 views

My javascript is really not strong. Ive been constructing a tool in Go and it's like 99% complete and finding FullCalendar was a godsend for displaying data. I've got it all setup and selection works ...
Geoff Sweet's user avatar
2 votes
1 answer
405 views

To specify a timeout of a fetch request, we can use a AbortSignal.timeout() signal: await fetch(url, { signal: AbortSignal.timeout(10 * 1000), }); But this is just a standalone signal, not a ...
Alex's user avatar
  • 66.6k
1 vote
0 answers
59 views

The issue is encountered in the framework of Django. The related code lines are described below. These are the HTML lines, in which, the first div and the nested p will be filled with other HTML ...
Elyar Abade Pur's user avatar
0 votes
0 answers
89 views

I'm building a Chrome extension that calls the GoHighLevel (GHL) API to create and manage contacts. When I do the same request in Postman using my GHL API key as a bearer token, it works (status 200). ...
Andre Pasumbal's user avatar
1 vote
1 answer
105 views

I'm using useQuery function from React Query to fetch data in my React application. However, I'm encountering an issue where some requests take too long to download content (about a minute). Here's a ...
SeuZeRicardo's user avatar

1
2 3 4 5
125