Skip to content
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

regression - 405: Method Not Allowed - after 0.21.6 #1035

Closed
marcelotduarte opened this issue Aug 2, 2016 · 4 comments
Closed

regression - 405: Method Not Allowed - after 0.21.6 #1035

marcelotduarte opened this issue Aug 2, 2016 · 4 comments
Labels

Comments

@marcelotduarte
Copy link

Long story short

Using 0.21.6, my app is fine, but upgrading to 0.22.4 fail. I'm noted that after 0.22.0a0 it is failing.

Expected behaviour

old behaviour

Actual behaviour

Here is the reponse header, I'm geting with firebug:
HTTP/1.1 405 Method Not Allowed
Content-Type: text/plain; charset=utf-8
Content-Length: 23
Allow: Get
Date: Tue, 02 Aug 2016 03:17:18 GMT
Server: Python/3.5 aiohttp/0.22.0a0

Steps to reproduce

In my app one router is:
app.router.add_route('GET', '/', raiz)

If I change to:
app.router.add_route('*', '/', raiz)

It will pass. But that is not what I expect.

I'm suspecting that the cause is #838.

Your environment

Python 3.5.2 (32 and 64 bit)
Windows 10 64bit
Chrome52 and Firefox 47.0.1 (lastest releases).

@argaen
Copy link
Member

argaen commented Aug 2, 2016

Hi! Something similar happened to me yesterday as well. I think it's related with the multidict version that is installed. Can you try to do a pip install --upgrade multidict, it fixed the error for me.

@marcelotduarte
Copy link
Author

Hi! You're right. It's mutidict. But upgrade it doesn't solve the problem. I had mutidict 2.0.0 and uninstalling multidict and upgrading aiohttp, install the correct versions, aiohttp 2.22.4 and multidict 1.2.2.
Thanks.
I will close the issue because I have seen that support multdict 2 is being implemented.

@asvetlov
Copy link
Member

asvetlov commented Aug 2, 2016

aiohttp 0.22.6 should fix the issue by pinning multidict version

@lock
Copy link

lock bot commented Oct 29, 2019

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Oct 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants