You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chrome Version 113.0.5672.64 (Official Build) (64-bit), Microsoft Edge Version 113.0.1774.35 (Official build) (64-bit)
Issue description
After Chromium 113, http requests with the HEAD method returns a response with an null body. This results in a TypeError in html5 exports, which causes HTTPRequest nodes to return a RESULT_CONNECTION_ERROR with a response code of 0. So far this affects all Chromium browsers, Firefox and Safari have not been affected (based on my limited testing). I suspect the problem to affect the HTTPClient node as well, but I have not tested that yet.
TypeError and Variables returned from 'request_completed' signal
Response object with body being null in Chrome 113 Response object in Firefox and older Chromium Browsers
I believe the js error is caused by this bit of code in the .js export:
But re-writing that bit so that obj.reader is null, undefined or new ReadableStream().getReader() only suppresses the error and does not solve the problem.
Steps to reproduce
Create a HTTPRequest node
Make a (valid) request with the HEAD method.
Export the project to HTML5
Run the project in any Chromium browser based on Chromium 113
Because of the aforementioned revert this isn't happening in Chromium (127.0.6533.72), but does currently happen on Firefox (131.0.3) for HEAD requests (and presumably for any empty responses for other HTTP methods).
Godot version
v3.5.2.stable.official [170ba33]
System information
Chrome Version 113.0.5672.64 (Official Build) (64-bit), Microsoft Edge Version 113.0.1774.35 (Official build) (64-bit)
Issue description
After Chromium 113, http requests with the HEAD method returns a response with an null body. This results in a TypeError in html5 exports, which causes HTTPRequest nodes to return a RESULT_CONNECTION_ERROR with a response code of 0. So far this affects all Chromium browsers, Firefox and Safari have not been affected (based on my limited testing). I suspect the problem to affect the HTTPClient node as well, but I have not tested that yet.
TypeError and Variables returned from 'request_completed' signal

Response object with body being


null
in Chrome 113Response object in Firefox and older Chromium Browsers
I believe the js error is caused by this bit of code in the .js export:

But re-writing that bit so that obj.reader is
null
,undefined
ornew ReadableStream().getReader()
only suppresses the error and does not solve the problem.Steps to reproduce
Minimal reproduction project
HTTPRequestMRP.zip
The text was updated successfully, but these errors were encountered: