[GH-ISSUE #83] Discord Canary Webhook URLs Invalid for ERROR_WEBHOOK #17

Closed
opened 2026-09-02 13:08:57 +02:00 by TheLovinator · 3 comments
Owner

Originally created by @EthanC on GitHub (Mar 31, 2023).
Original GitHub issue: https://github.com/TheLovinator1/discord-twitter-webhooks/issues/83

The ERROR_WEBHOOK environment variable seems to invalidate webhook URLs copied from the Discord Canary client. This could be fixed by removing canary. from the URL, but seeing as a warning is not thrown for canary URLs on WEBHOOK_URL, this seems to be a bug.

I'm not sure if this prevents errors from being sent or not as I've never received an error on this webhook 👀

WARNING Your ERROR_WEBHOOK does not start with https://discord.com/api/webhooks/, is this correct? It is currently set to 'https://canary.discord.com/api/webhooks/XXXXXXXXXX/XXXXXXXXXX'
Originally created by @EthanC on GitHub (Mar 31, 2023). Original GitHub issue: https://github.com/TheLovinator1/discord-twitter-webhooks/issues/83 The `ERROR_WEBHOOK` environment variable seems to invalidate webhook URLs copied from the Discord Canary client. This could be fixed by removing `canary.` from the URL, but seeing as a warning is not thrown for canary URLs on `WEBHOOK_URL`, this seems to be a bug. I'm not sure if this prevents errors from being sent or not as I've never received an error on this webhook 👀 ``` WARNING Your ERROR_WEBHOOK does not start with https://discord.com/api/webhooks/, is this correct? It is currently set to 'https://canary.discord.com/api/webhooks/XXXXXXXXXX/XXXXXXXXXX' ```
Author
Owner

@TheLovinator1 commented on GitHub (Mar 31, 2023):

Hi,

It just warns, so I will wait till tomorrow to make it stop complaining when using a canary or PTB webhook. I guess there is no difference between the subdomains so not worth removing the canary part?

<!-- gh-comment-id:1491273081 --> @TheLovinator1 commented on GitHub (Mar 31, 2023): Hi, It just warns, so I will wait till tomorrow to make it stop complaining when using a canary or PTB webhook. I guess there is no difference between the subdomains so not worth removing the canary part?
Author
Owner

@dziban303 commented on GitHub (Mar 31, 2023):

Yeah there is no functional difference. I just habitually drop the subdomain from webhook URLs out of an abundance of caution.

<!-- gh-comment-id:1492245485 --> @dziban303 commented on GitHub (Mar 31, 2023): Yeah there is no functional difference. I just habitually drop the subdomain from webhook URLs out of an abundance of caution.
Author
Owner

@TheLovinator1 commented on GitHub (Mar 31, 2023):

I am now checking that webhook works instead of just checking if it starts with https://discord.com/api/webhooks/ :-)

<!-- gh-comment-id:1492710310 --> @TheLovinator1 commented on GitHub (Mar 31, 2023): I am now checking that webhook works instead of just checking if it starts with https://discord.com/api/webhooks/ :-)
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TheLovinator/discord-twitter-webhooks#17
No description provided.