Skip to content

[leveler] Timeout on leveler command when badge url inactive.  #107

@XargsUK

Description

@XargsUK

Describe the bug
If the image URL for a badge is no longer valid, commands that interact with levelers badge system will have a large timeout before returning information (such as profile, available badges, etc).

To Reproduce

  • Create a Badge
  • Set the image URL to something which does not return an image
  • Run [p]profile

Expected behavior
In the instance that a badges image cannot be accessed, a lower timeout along with an error message logged about being unable to retrieve the badge would work well. Because this is nosql, updating the image url would have to be applied across all user objects rather than just in the badges table

Red version
3.4.12

Additional context
To resolve this issue, I had to manually update the badge url within mongodb across all user objects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpls fix

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions