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

Unable to create Mastodon app due to SSL error #66

Closed
bpepple opened this issue Aug 10, 2017 · 1 comment
Closed

Unable to create Mastodon app due to SSL error #66

bpepple opened this issue Aug 10, 2017 · 1 comment

Comments

@bpepple
Copy link

bpepple commented Aug 10, 2017

Attempting to create the Mastodon app with the following code:

new_masto_app = Mastodon.create_app(
'lastshoutapp',
api_base_url="https://mastodon.cloud",
to_file = 'pytooter_clientcred.txt'
)

And receive the following error:

Traceback (most recent call last):
File "git/misc/scripts/create_mastodon_app.py", line 9, in
to_file = 'pytooter_clientcred.txt'
File "/usr/lib/python2.7/site-packages/mastodon/Mastodon.py", line 67, in create_app
raise MastodonNetworkError("Could not complete request: %s" % e)
mastodon.Mastodon.MastodonNetworkError: Could not complete request: HTTPSConnectionPool(host='mastodon.cloud', port=443): Max retries exceeded with url: /api/v1/apps (Caused by SSLError(SSLError(1, u'[SSL: WRONG_CURVE] wrong curve (_ssl.c:661)'),))

@halcy
Copy link
Owner

halcy commented Aug 12, 2017

Don't think that that is an error in Mastodon.py, there's something wacky with the SSL connection here, and probably no way this library could do anything about that. You can try not using SSL, if that's acceptable for you - just use http:// instead of https:// for the endpoint.

@halcy halcy closed this as completed Aug 12, 2017
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