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
We are seeing reliably reproducible HTTPStreamClosedErrors with SimpleHTTPClient attempting to make a POST request as the final step of an OAuth login with GitHub. I've tracked it down to using old-style @gen.coroutine instead of async def. When using async def there is no error.
I haven't been able to reproduce it fully self-contained, unfortunately, but this sample application reproduces it if you set up a dummy GitHub OAuth application.
The failure occurs in:
params=dict(client_id=client_id, client_secret=client_secret, code=code)
url=url_concat("https://github.com/login/oauth/access_token", params)
req=HTTPRequest(
url,
method="POST",
headers={"Accept": "application/json"},
body='', # Body is required for a POST...
)
resp=yieldhttp_client.fetch(req)
We are seeing reliably reproducible HTTPStreamClosedErrors with SimpleHTTPClient attempting to make a POST request as the final step of an OAuth login with GitHub. I've tracked it down to using old-style
@gen.coroutine
instead ofasync def
. When usingasync def
there is no error.I haven't been able to reproduce it fully self-contained, unfortunately, but this sample application reproduces it if you set up a dummy GitHub OAuth application.
The failure occurs in:
Traceback:
This is with tornado 6.0.3 and Python 3.7.2 on a mac. No error with tornado 5.1.1, or using
async def
instead of@gen.coroutine
.The text was updated successfully, but these errors were encountered: