-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Main Request service is throwing errors for valid requests #155204
Comments
What is the exact request URL and headers? We should be able to reproduce in a Electron fiddle maybe. |
|
Here is the request info URL: Headers:
Payload:
|
Are we setting the |
Yes, we are here |
BTW we do the same request also in the renderer for querying extensions, so does removing the |
Just tried removing the
|
The header will get added by the runtime for payload requests, you should be able to confirm after removing the header. So, I don't think it will impact requests from renderer via XHR
Hmm, why is Node.js zlib module being involved ? Are we using Node.js request API by any chance ? |
We are not using vscode/src/vs/platform/request/electron-main/requestMainService.ts Lines 11 to 20 in 1878583
While handling the response, Node request service is checking for vscode/src/vs/platform/request/node/requestService.ts Lines 149 to 152 in 1878583
May be main request service shall not use node request service at all? |
Possibly an easier repro that was discovered by @IanMatthewHuff is calling the |
@sandy081 Can we now also make sure to go back to the Electron solution for maybe insiders to validate it works over some time? |
Enabled - #167190 |
When requests from shared process are redirected to main, the main request service is throwing errors for some valid requests.
[2022-07-14 17:09:57.274] [main] [trace] RequestService#request (node) - error https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery {}
[error] ["Error: net::ERR_INVALID_ARGUMENT"," at SimpleURLLoaderWrapper.<anonymous> (node:electron/js2c/browser_init:101:7169)"," at SimpleURLLoaderWrapper.emit (node:events:390:28)"]
The same request is working when using browser XHR in shared process.
To reproduce:
developer.sharedProcess.redirectRequestsToMain
- this is an internal developer setting, so you have to set manually in the settings.json file🐛 Extensions Syncing fails because of above error
cc @bpasero
The text was updated successfully, but these errors were encountered: