11,905 questions
Advice
0
votes
2
replies
16
views
Chrome network tools override content not working
https://developer.chrome.com/docs/devtools/overrides
when the API name is followed by a number like ?_=*, the override always fails. Is any additional configuration required
overrider a api like
/...
0
votes
1
answer
63
views
Failed to parse body as FormData on large files
I am writing a feature with sveltekit to upload google photos takeout files.
in other words large zip files containing images.
So on the browser side I have this in a function
console.log(`uploading ...
3
votes
1
answer
103
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 ...
2
votes
0
answers
62
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
94
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
72
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
33
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
62
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 ...
-1
votes
1
answer
131
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
43
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
80
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
49
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
60
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
78
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
435
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(...