Skip to content

Error on network failure is incomprehensible #240

Closed
@kjgorman

Description

@kjgorman

Basically if you load the crates.io page but then there is some network interruption after that point, new ajax requests will begin to fail (fair enough).

When this happens an 'oops something went wrong' page is presented, including a stack trace. I guess for an open source project like this it is probably not an issue to include debug information to public users, but the error message seems like it could be more helpful.

This came up for me when the wifi at JFK started throttling after the 30 free minutes had been used up. Obviously just refreshing the page bounced me to the "buy more wifi" splash, but it seems like it wouldn't be impossible to present a more pleasant error when there's no network connectivity.

This is the error I received at the time:
screen shot 2015-12-16 at 7 57 54 pm

You can replicate (with a less insane stack trace) by using chrome network throttling to turn off network access once you've loaded the page.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions