Skip to content

Discord backend fails when BASE_URL is "malformed" #280

@vanschelven

Description

@vanschelven

The discord backend introduced in #279 fails with the rather mysterious {"embeds": ["0"]} when the url starts with the perfectly valid http://bugsink:8000.

We should try to avoid sending the url field for URLs that Discord believes to be invalid. Unfortunately, I can't find the documentation Discord-side that would state what (presumably incorrect) validation they apply to urls.

We could try to reverse-engineer the correct answer by trying a number of URLs though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions