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

h8'ing things fails with ugly trace if you're not logged in. #3

Open
jankusanagi opened this issue Jan 30, 2014 · 0 comments
Open

h8'ing things fails with ugly trace if you're not logged in. #3

jankusanagi opened this issue Jan 30, 2014 · 0 comments

Comments

@jankusanagi
Copy link

I wanted to report this for hip2.it, but I see no source for that, and since I guess it's 99% the same source as this, and the issue happens with ih8.it too...

The issue:

If you point someone to a link like https://ih8.it/h8?url=http%3A%2F%2Fexample.com (from, say, a blog's custom 'share' button), and they're not logged in (probably never used the service before), the result is an ugly trace, like:

Express
500 Error: User is required
at userRequired (/opt/ih8.it/app.js:282:22)
at callbacks (/opt/ih8.it/node_modules/express/lib/router/index.js:272:11)
at userAuth (/opt/ih8.it/app.js:272:17)

The expected behaviour would be redirecting the user to the login page.

Cheers!

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

1 participant