Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the "town hall" (meta-discussion site) for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Comments on 500 error page for user:me when not signed in

Parent

500 error page for user:me when not signed in

+3
−0

When searching, a user can be specified by including user:X in the search term, where X is the user id of the relevant user. You can also search for your own posts by specifying user:me.

If you share a link to search results based on user:me then the recipient of the link will see results for their own user, provided they are signed in. However, if they are not signed in they will see a 500 error page instead.

Could this 500 error page be replaced with something more informative, since we know the reason for being unable to display the results?

History

1 comment thread

Fix pending (2 comments)
Post
+3
−0

One option would be to display a message along the lines of:

Search results for user:me can only be displayed when signed in. Please sign in and try again.

History

2 comment threads

We went with this (with a link to sign in). (5 comments)
Should we strip `user:me` and show those results after (an edited version of) this message? You'd st... (2 comments)
We went with this (with a link to sign in).
Monica Cellio‭ wrote over 1 year ago

We went with this (with a link to sign in).

trichoplax‭ wrote over 1 year ago

Although it's not immediately obvious from the code changes, the fix also includes the suggestions from my other answer about my ideal solution (which I wasn't expecting to be implemented until some future point).

I wouldn't have noticed if not for Oleg's comment on the question which prompted me to try it out. Sure enough, after signing in successfully, the results are displayed.

trichoplax‭ wrote over 1 year ago · edited over 1 year ago

I suppose this does make the "and try again" redundant, as signing in does that automatically. Should we just say

Search results for user:me can only be displayed when signed in. Please sign in.

rather than

Search results for user:me can only be displayed when signed in. Please sign in and try again.

Monica Cellio‭ wrote over 1 year ago

Oh, I hadn't realized that this worked either! Thanks for testing, and I agree we should adjust that message. (I think we wrote the message first, then made it redirect, then didn't notice the message needed an edit.)

trichoplax‭ wrote over 1 year ago

Yes it's just the wording from my first answer (which works when there's no redirect).