11,914 questions
0
votes
0
answers
21
views
Cannot send data to Node Express after converting from CJS to ESM
After having carefully converted my JS code for NodeJS from CJS to ESM (with some unexpected difficulties), I am failing to send a body content to my Node Express web server, running for test purposes ...
0
votes
0
answers
90
views
How does a .NET Controller know to apply the CancellationToken = default [duplicate]
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' ...
2
votes
0
answers
46
views
React Native: Copy to clipboard button inside code block not working during streaming updates
I’m building a React Native app where I stream text from an API using XMLHttpRequest.
The API sends chunks of text (like a chatbot response), and I keep appending those chunks into a messages array in ...
-3
votes
1
answer
85
views
Why is the response empty when handling an XmlHttpRequestUpload load event?
I have an XmlHttpRequestUpload with a listener on the load event:
xhr.upload.addEventListener('load', () => {
if (xhr.status === 200) {
resolve(UPLOAD_OK);
}
else {
const message = ...
0
votes
3
answers
71
views
fillTable function not always working correctly – how to make it more reliable?
I'm using a JavaScript function to fill an HTML table based on data fetched from a given URL (in JSON format). It works sometimes, but other times the table stays empty or the data doesn’t display as ...
0
votes
1
answer
29
views
Why does XMLHttpRequest return status 0 on iphone but status 200 on web browser
I am building a web-site that calls php on the backend for some pages. When I view the html page on a computer browser, it returns with a status of 200 and shows content returned from php script. ...
1
vote
1
answer
60
views
Interception xhr requests after pressing the load more button with puppeteer
Initially two json files arrive on the site - the rest arrive after clicking the ‘load more’ button. I'm trying to intercept all requests. The example shows how I am waiting for the button to appear ...
0
votes
0
answers
34
views
PHP not updating global variable DURING loop? [duplicate]
I have a javascript file that sends XMLHttpRequests to a PHP file. The javascript file is something like this:
let formData = new FormData();
formData.append("field1", ["mockdata1",...
-1
votes
1
answer
121
views
How to receive a "stream of input" using XMLHttpRequest object?
I have a javascript file which creates a XMLHttpRequest object and opens a connection to a PHP file and sends a form object to it.
The Javascript file is like this:
let formData = new FormData();
...
0
votes
1
answer
42
views
XHR Endpoint Returning Loading Page Data Only
I want to access the tables of the following website:
https://www.marketbeat.com/ratings/
However, pages can only be changed by setting the "Reporting Date".
I do know that I can change the ...
0
votes
0
answers
78
views
Selenium throwing exception - org.openqa.selenium.JavascriptException - Failed to execute 'send' on 'XMLHttpRequest'
I am running a selenium on a site - https://ir.vishay.com/
I am trying to get the response from above url, the driver code is as simple as
String url = "https://ir.vishay.com/"
driver.get(...
0
votes
0
answers
45
views
XMLHttpRequest cannot load due to access control checks when reloading the page
I am working on a live ticker which works fine but when I am reloading the page I am running into this error:
XMLHttpRequest cannot load https://liveticker.local/ajax/ajax-liveticker.php due to access ...
-1
votes
1
answer
48
views
I can`t find request URL with JSON information while web scraping
Im trying to scrape table from this website using bs4 and request libraries, but I couldnt find any relevant information in XHR or JS sections of Chrome inspect and find the json file.
I was hoping to ...
-1
votes
1
answer
72
views
Use XMLHttpRequest to replace contents of div after form submit? [closed]
I have an html form that filters a list of results in a div.
What I want is that only the contents of the div are reloaded instead of the whole page, and only using vanilla javascript.
This is what I ...
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(...
1
vote
1
answer
2k
views
Navigator.sendBeacon vs fetch keepalive: reliability upon browser or tab close
I'm trying to make a network request when a user closes their browser or tab. If you search here on stackoverflow, you'll find one method is to use beforeunload or window.onbeforeunload. If you return ...
0
votes
0
answers
22
views
"Connection required before calling other methods" - how do I solve this error?
I need to log in to a website, but it always returns the error
Connection required before calling other methods
Using inspect and logging it presented this error regarding the dates. I believe that ...
0
votes
1
answer
55
views
How can I prevent Android downloads from failing?
I am using Cordova 12 to modify an existing Android application in order to try and make it compatible with Android API 34 (Android 14). The app must download thousands of small images before being ...
0
votes
2
answers
57
views
XmlHTTPRequest not returning Error Status from server after POST
I have been writing an embedded webserver on a small micro. I have many things working and can serve up webpages, etc. One page allows the user to upload a new firmware file. I have this working ...
0
votes
1
answer
149
views
How to periodically refresh web page content and switch between two DIV's?
I am not familiar with JavaScript so I'm still learning.
At our office we have two different servers monitoring our network (filecount, file availablity, etc.). Both servers produce a dashboard page ...
0
votes
0
answers
35
views
turn javascript xhttp request into php xhttp request
I have a form that gets spammed by random junk so im adding captca however most of my people are not that smart or foreign. So not really good option my alt is to use this a php script to use a xtttp ...
0
votes
0
answers
126
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
1
answer
44
views
How do I pass command line parameters to a python prgram called from XMLHTTPRequest
I'm trying (unsuccessfully) to pass command line paramters to a python program called by javascript XMLHTTPRequest. In my python program I have used each of sys.argv, getopt and argparse, all of ...
1
vote
2
answers
126
views
XMLHTTPRequest always returns "Page not found"
Premise
There is this website I'm trying to scrape.
https://pb.nalog.ru/
If you put organization ID in a search bar, and press "Искать", it redirects you to a separate page with base url of ...
-2
votes
2
answers
136
views
NFL Web Scraper HELP: NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load
I am new to coding and need some assistance. I am trying to make a web scraper for a project that involves scraping NFL roster data from 2000 to 2023 but am getting an error requesting the html. I am ...
1
vote
1
answer
92
views
Upload Progress Bar Not Working with Nginx
I’m experiencing issues with an upload progress bar that won’t update when uploading files through Nginx. The progress bar fails to reflect any progress updates, staying at 0% throughout the upload.
...
0
votes
1
answer
186
views
@react-pdf/renderer can't use fonts when building for node
I am trying to build an app that uses react-pdf/renderer. I will send a pdf response from node js express server. The fonts I use in react-pdf/renderer (.ttf) seems like are fetched via XMLHttpRequest ...
-1
votes
1
answer
43
views
Django Rest Framework - Cross Origin Resquest got blocked
I'm developing an API using Django Rest Framework. I'm trying to list or create an "Article" object, but when i'm trying to access the console gives me this error:
I host my frontend at http:...
1
vote
1
answer
226
views
XMLHttpRequest , net::ERR_FAILED , Axios Error
I'm creating project that has frontend in react js and I used userfront.com's api for login and reset password in login page
The problem in console:
Access to XMLHttpRequest at 'https://api....
0
votes
0
answers
44
views
CORS Issue When Deploying Travel Web Application on EC2 and Using Ngrok
We are developing a travel web application and attempting to deploy it on an EC2 instance. We've also tried using ngrok for tunneling, but we're encountering persistent CORS issues between different ...
-2
votes
2
answers
67
views
How can I get the class index of a XML requested object more efficiently (as I am having problems with the current approach)?
The problem I have is a bit more complicated, so I have made a video that shows the behavior I am talking about.
Problem video
As you can see what I want to achieve is to open a photo on a larger size ...
1
vote
1
answer
193
views
Upload file to Azure Blob Storage with Microsoft.XMLHTTP with progres VBA
I’m trying to upload a file to Storage using Microsoft.XMLHTTP in VBA for MS Access with progress tracking. Uploading without progress tracking works fine, but I need to have progress tracking, ...
0
votes
1
answer
59
views
How to get the result of the HTTPrequest in advance and process the result of the request after a certain condition?
Let the HTTPrequest be executed in advance. After moving the mouse to an element on the page, if the request is completed, process the result and open the link in the returned result.
Consider a delay ...
0
votes
2
answers
607
views
ESPNCRICINFO API call
I had been scraping ESPN data using their publicly avaialable API on the
https://hs-consumer-api.espncricinfo.com/ end points. Below is an example of one of the endpoints
v1/pages/match/scorecard?lang=...
0
votes
1
answer
50
views
Angular: use POST instead of GET to retrieve third party API data (Error 400 url too long)
I am developing a little project to understand HTTP requests. For this, I am using a third party API that I call to.
Data Police API
My project has a library of all neighbourhood boundaries in lat and ...
0
votes
2
answers
125
views
What is different in my Ajax vs XMLHttpRequest Call that lets my Server understand Ajax but not XMLHttpRequest?
I have a very simple server call like this:
[HttpPost]
[AllowAnonymous]
public JsonResult Test(TestRequestModel requestModel)
{
//do stuff
return Json(new { result.Success });
}
My ...
0
votes
0
answers
36
views
Python Flask server code receiving a XHR send POST request image and save it under the BLOB prefix
Python Flask server code receiving a XHR send POST request image and want to save it. This is the following code as I send the picture thru the web portal:
document.getElementById('file-image').src = ...
0
votes
1
answer
39
views
How to make GET requests to multiple links at the same time and obtain the values of the returned results in sequence for conditional judgment?
Make requests for multiple links at the same time, and conditionally judge the value of the first returned result.
If the conditions are met, the values of subsequent request results will not be ...
0
votes
1
answer
43
views
How to convert the httprequest result to EUC-JP by GM_xmlhttpRequest with encoding.min.js API?
I get the httprequest result from a URL whose charset is EUC-JP and shows Garbled characters.
I tried to get the Buffer result and convert it to EUC-JP, but the result still shows garbled characters.
...
0
votes
1
answer
69
views
problem with intercepting XMLHttpRequest in Chrome extension
I am trying to intercept hightlighted http upload request of outlook.com when attaching a local file to email.
But it seems it is not intercepted at all while i do see other XMLHTTPRequest requests ...
0
votes
0
answers
19
views
XMLHttpRequest Get ID from Response [duplicate]
How do I get the ID from this response.
"{\"id\": \"9cf049a8-220a-4103-9f84-354276409390\", \"info\": {\"status\": \"Draft\", \"created_by\&...
0
votes
1
answer
51
views
Ajax request launches struts action with empty parameters
The ajax request launches a struts action with empty parameters. When using dev mode on firefox and debugging the code, i can see that when the breakpoint stops inside the action, the XHR envelope on ...
-1
votes
2
answers
66
views
Read variable from a file via javascript in an html file (client side) [closed]
I'm having an html file location.html and a file with data location.data both on the same webserver in the same directory. the contens of location.data is always the current location data in the form
{...
0
votes
1
answer
32
views
How can I use python to scrape ping messages?
I have a discord bot that I've been working on. It will sometimes encounter errors, and I will be busy doing something somewhere else, and I don't wish for potential clients to have long downtimes. I'...
1
vote
2
answers
74
views
Not able to pass even a text constant to PHP using XMLHttpRequest [duplicate]
I was trying to pass a Javascript variable to PHP through POST xmlhttprequest but even a text literal is not working.
I checked the answered question passing a javascript variable to PHP with ...
1
vote
1
answer
71
views
XHR Data Transfer Between Javascript and PHP
JS dispatch was successful. But it does not enter the if block in PHP. Whereas before I restarted the computer successfully entered the if block in PHP.
When successful, the data received is “1”. ...
0
votes
0
answers
100
views
VBA xmlhttp not working on ACCESS VBA Code but same working in POSTMAN
I have below VBA Code in MS Access which is giving me Authorization error(403 - Forbidden) but when I try the same in POSTMAN, It is working using same data. What am I doing wrong ? Note. This is only ...
0
votes
1
answer
526
views
How can I prevent my cookies being blocked as Third Party Cookies?
I have an authentication workflow as follows:
From the client myclient.com I send encrypted user and password credentials in x-authorization header in a request to API entpoint example.net/login
the ...
0
votes
2
answers
1k
views
Having Trouble of Capturing the XHR Request with Selenium
First of all I'm not a developer, so used ai to generate me a code to get xhr requests from a webpage which is: https://www.oddsportal.com/football/brazil/serie-a/bragantino-athletico-pr-xx0ujiJ5/
...
-1
votes
1
answer
133
views
How to fix Form Data via XHR returns 400 Bad Request
This is my code, quite simple. just a POST request to my api endpoint with FormData.
but for some unknown reason the api says the data is a bad request. i tested my api via curl and it works fine.
...