Skip to content
This repository was archived by the owner on May 11, 2021. It is now read-only.
This repository was archived by the owner on May 11, 2021. It is now read-only.

Catch "Internal Error; We're upset too." correctly #238

@justalemon

Description

@justalemon

Issue

Sometimes, the profiles will be down (as usual) and shown like this:

image

The API response will be:

{"error": 404, "msg": "profile not found"}

I feel that OWAPI should return an 5XX code, because the profile could exist but is not available at this time.

The HTML code shows something like like this:

image

Links that cause the issue

(Surround the links with backticks. Use triple backticks for multiple lines.)

https://owapi.net/api/v3/u/Dad-12262/blob
https://playoverwatch.com/en-us/career/pc/Dad-12262

Hi! Thank you for helping OWAPI by submitting an issue.
Before you submit, please make sure you've done the following:

  • Google/Search previous issues to make sure it hasn't been answered before.

  • Ask if this is an OWAPI issue, or a Linux issue, etc.

    • OWAPI requires Python 3.5 or higher installed on a UNIX machine, and it's not really our job to troubleshoot random Linux errors.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions