Closed ShadowBan closed 7 years ago
I got the same error working on localhost, even though I provided a key and consumer secret.
@felixletkemann / @ShadowBan are you still getting these errors or have you resolved this?
I am also getting this error.
@felixletkemann can you provide an example project I can troubleshoot?
@ben-ic can you confirm you are providing your keys?
I can confirm I am providing keys
I figured it out.
You need to also set the callback url in your twitter settings. If you don't do that it assumes it is a desktop application and returns a 401 response.
See this thread for more info. https://twittercommunity.com/t/desktop-applications-only-support-the-oauth-callback-value-oob-oauth-request-token/252
I can confirm @ben-ic's solution. 👍
Awesome job @ben-ic! I can look at updating the library later this week to fail more gracefully unless someone else wants to tackle it in the meantime.
I'm also getting this error, and i've specified a redirect_uri
to the twitter strategy configuration
@0xadada is your code available on GitHub?
Sorry, it was a problem on my end.
Thanks for the reply @0xadada!
I have experienced a crash when the consumer_key or consumer_secret are not set. I know this is an off case but other strategies seem to handle this fine by returning an error that gets added to the flash errors and the crash seems due to an unexpected response from the twitter API.
I am following the set up provided by this repo; https://github.com/ueberauth/ueberauth_example
I currently have the twitter strategy set up as follows:
and neither of those env variables have been set in my system.
The stack trace is as follows below:
The crash is happening on this line: oauth.ex#71
Please let me know if there is anything more that I can provide to help.