Skip to content

Tag: xmlhttprequest

Domo.js is trying to JSON.parse a png

While developing a custom app for my organization, I am trying to request the name and the avatar of the individual accessing the card. I am able to get the name of the individual without any problems, but when requesting the avatar image I get the following console error: Uncaught (in promise) Error: Invalid JSON response at XMLHttpRequest.d.onload (domo.ts:309:18) I

How to force browser to abort all XHR requests [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed last month. Improve this question In my website I have a page which sends some XHR requests to the

JS: XHR loads files (>50MB) immediatly

I’m making a internet speedtest app with Node.js. Everything works fine expect the download test. I normally download at 8Mbits/s but when I try XHR requesting a text file / image (about 256 MByte) at /public/chunk/somefile.txt for example, it downloads it within 1 second which is impossible. Then I checked the onprogress log: How comes that it loads the image

Can’t make new fetch request after aborting previous

I need to change a parameters that defines what data should come from my requests, also this application needs to refresh every fixed interval of time. If the user changes the parameter of interest in the middle of a previous refresh request things start to behave strange and some unexpected behavior occurs. So my approach […]