-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
invalid character in header url #5730
Comments
I am getting the same issue. |
@saarsa Run this command in you shell.
And use the vim to open this file The highlight place is the invalid char. Use some hex editor tools to check this position, it's The http-parser's validation rules:
|
@g66-gopanear Please check the server's response header. |
Please reopen if your have other questions. |
my python env
Python 3.8.5
aiohttp 3.7.4.post0
multidict 5.1.0
yarl 1.6.3
Hi sorry for the question but I have an error that I can not understand
I'm trying to run this code
`async def main():
async with aiohttp.ClientSession() as session:
async with session.get("https://tase.co.il") as resp:
print(resp.status)
print(await resp.text())
loop = asyncio.get_event_loop()
loop.run_until_complete(main())`
But it brings me back
raise ClientResponseError(aiohttp.client_exceptions.ClientResponseError: 400, message='invalid character in header', url=URL('https://www.tase.co.il/')
Why is this happening to me?
The text was updated successfully, but these errors were encountered: