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

Unhandled exception when BeatMods website is unreachable #3

Open
Shadnix-was-taken opened this issue May 15, 2019 · 3 comments
Open

Unhandled exception when BeatMods website is unreachable #3

Shadnix-was-taken opened this issue May 15, 2019 · 3 comments

Comments

@Shadnix-was-taken
Copy link

@Shadnix-was-taken Shadnix-was-taken commented May 15, 2019

Tested with v.1.0.7

There is an unhandled exception when changing to the Mods tab while the BeatMods website is unreachable and returning HTTP error 502, which causes the application to crash. Any other HTTP error code might have the same result.

It would probably be better to catch that exception and inform the user, that the application was not able to reach the BeatMods website. Maybe even including the returned HTTP error code or any other error returned by the HttpWebRequest library.

Screenshot with the error message attached:

2019-05-15 22_44_27-Mod Assistant

My local system language is German. Second and third line should translate to:

"System.Net.WebException: The remote server returned an error: (502) Invalid Gateway."

@Shadnix-was-taken

This comment has been minimized.

Copy link
Author

@Shadnix-was-taken Shadnix-was-taken commented May 22, 2019

I guess this got fixed in commit d3b97d0 for release v1.0.8 and later?

btw - Thanks for your work.

@Assistant

This comment has been minimized.

Copy link
Owner

@Assistant Assistant commented May 22, 2019

I wouldn't say it's entirely fixed, but it's somewhat fixed.
If BeatMods is down when you run the application it won't crash, but if it's down when you try to load mods it'll still crash. I'm not entirely sure how to handle that gracefully.

@raftario

This comment has been minimized.

Copy link

@raftario raftario commented May 25, 2019

I fixed that in the old installer, I'll give a look at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.