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

HTTP 405 when getting keys for a user #65

Closed
gdubicki opened this issue Apr 18, 2016 · 2 comments
Closed

HTTP 405 when getting keys for a user #65

gdubicki opened this issue Apr 18, 2016 · 2 comments

Comments

@gdubicki
Copy link

gdubicki commented Apr 18, 2016

I am trying to use the code added in #33 (and later on add POST support to it - see https://github.com/grzegorz-dubicki/stashy/tree/more-ssh).

This code works:

print "%s" % self.bitbucket.ssh.list('gdubicki')
[{u'text': u'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAgEAyzlZRkspi4fTtxopqxApGymeZ3z16chlZmjEbjiYMNSPHztyf8dQmO7oPXrG+spDcBgMX3k4iLJzy/F7DFm91A4qd9xhKYeMBwYonGXtrNE(...)

..but when I am trying to use the get method directly then - perhaps because I don't know how to do it correctly - I get HTTP 405 errors:

print "%s" % self.bitbucket.ssh.get('gdubicki')
<Response [405]>

Am I doing it wrong or is it broken?

@gdubicki
Copy link
Author

Ok, I think that it was broken. After my fix in that PR the code above works for me.

@tonytamsf
Copy link
Contributor

coolio closing #67 as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants