When downloading a mod:
Crashdumping an Exception:
Exception:
Message:
The remote server returned an error: (500) Internal Server Error.
When downloading, the app grabs the headers from the download url first. It next starts the file download. If the download url doesn't respond with the file (responds with http-200 "Invalid file" we get a crash. I believe this 500 crash is related (we can test it by simulating a 500 error)
The header the server sends doesn't contain information about our download so we could make things easier by having the server send http 204 No Content or something else if the file doesn't exist or having it send a header along with each response that tells us it's ok to download. If it fails to send that header then we can assume the file doesn't exist or there is a prob and we'll skip the download attempt.