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
Running a request to a URL with the http2 option set to true. Stop the program and run the same code, but with the option now set to false and the request no longer works.
RequestError: connect ECONNREFUSED
...
Expected behavior
Toggling http2 to false should make it fallback to http and not have any errors.
...
Setting http2 explicitly to false or not setting it at all is the same.
I tried your example, I'm having no problem with http2: false, I think this might be a problem on your side.
Describe the bug
Actual behavior
Running a request to a URL with the http2 option set to true. Stop the program and run the same code, but with the option now set to false and the request no longer works.
RequestError: connect ECONNREFUSED
...
Expected behavior
Toggling http2 to
false
should make it fallback to http and not have any errors....
Code to reproduce
Checklist
The text was updated successfully, but these errors were encountered: