pdaddyo / soundbounce

Social listening for Spotify - music sounds better together.
MIT License
252 stars 28 forks source link

Internal Auth failed. #217

Open carnager opened 9 years ago

carnager commented 9 years ago

image

Some users on linux are getting this. stdout says it logged in successfully. instantly after this message appears.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/9369989-internal-auth-failed?utm_campaign=plugin&utm_content=tracker%2F9578624&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F9578624&utm_medium=issues&utm_source=github).
pdaddyo commented 9 years ago

Hmmm this is strange, is it happening every time?

carnager commented 9 years ago

yes. 2 users reported it by now... for them it happens every time

gabrielfreiberg commented 9 years ago

I'm getting this constantly on 2 different different machines using OSX Yosemite

gabrielfreiberg commented 9 years ago

I was able to get in by not using caps in the username when trying to sign in on OSX.

i7c commented 9 years ago

Hi,

I'm on linux, soundbounce version 20150301-1 So when I write my username as it is (with some letters in caps) I get the error posted above. If I follow gabrielfreiberg's hint and type it all lower case, it does sign in but then asks me for twitter or facebook authentication. If I click on the twitter button it spits out the following on stderr:

[27327:0328/193125:INFO:gpu_info_collector_x11.cc(80)] NVCtrl extension does not exist. ATTENTION: default value of option force_s3tc_enable overridden by environment. [27327:0328/193148:INFO:CONSOLE(9)] "Viewport argument value "device-width;" for key "width" is invalid, and has been ignored. Note that ';' is not a separator in viewport values. The list should be comma-separated.", source: https://api.twitter.com/oauth/authorize?oauth_token=... (9) [27327:0328/193148:INFO:CONSOLE(9)] "Viewport argument value "1.0;" for key "initial-scale" was truncated to its numeric prefix. Note that ';' is not a separator in viewport values. The list should be comma-separated.", source: https://api.twitter.com/oauth/authorize?oauth_token=... (9) [27327:0328/193148:INFO:CONSOLE(9)] "Viewport argument value "1.0;" for key "maximum-scale" was truncated to its numeric prefix. Note that ';' is not a separator in viewport values. The list should be comma-separated.", source: https://api.twitter.com/oauth/authorize?oauth_token=... (9)

and the window turns all white. I opened the link in stderr and in my browser I could click on "authorize", which lead to this output in the browser:

Error: Failed to find request token in session at Strategy.OAuthStrategy.authenticate (/home/ubuntu/soundbounce/server/node_modules/passport-twitter/node_modules/passport-oauth1/lib/strategy.js:142:54) at Strategy.authenticate (/home/ubuntu/soundbounce/server/node_modules/passport-twitter/lib/strategy.js:85:40) at attempt (/home/ubuntu/soundbounce/server/node_modules/passport/lib/middleware/authenticate.js:341:16) at authenticate (/home/ubuntu/soundbounce/server/node_modules/passport/lib/middleware/authenticate.js:342:7) at Layer.handle as handle_request at next (/home/ubuntu/soundbounce/server/node_modules/express/lib/router/route.js:100:13) at Route.dispatch (/home/ubuntu/soundbounce/server/node_modules/express/lib/router/route.js:81:3) at Layer.handle as handle_request at /home/ubuntu/soundbounce/server/node_modules/express/lib/router/index.js:235:24 at Function.proto.process_params (/home/ubuntu/soundbounce/server/node_modules/express/lib/router/index.js:313:12)

Hope this may help you to identify the issue here.

gabrielfreiberg commented 9 years ago

@i7c we are on OSX, twitter authentication is also not working, although its just a blank screen, im not sure where to see logs at. The facebook authentication seems to work though.

pdaddyo commented 9 years ago

Thanks for details here. I plan to remove the twitter/fb requirement, since it's only used to grab the username and an avatar. We'll just use a default avatar and the spotify username. I'll update this issue once that's done (no ETA yet I'm afraid). In the meantime, as mentioned above, facebook auth works on OSX / linux. Alternatively, authorise twitter on windows, then it will log in as expected on OSX / linux.