Discord Notifications “Test settings” fails even when integration is working

Summary

Discord Notifications “Test settings” fails even when integration is working.

Steps to reproduce

  1. Follow the instructions at https://docs.gitlab.com/ee/user/project/integrations/discord_notifications.html
  2. Click the “Test settings” button

What is the current bug behavior?

The UI reports “Connection failed. Please check your settings.”

Not that the notifications actually reach Discord, so as far as I can tell the integration is actually working.

What is the expected correct behavior?

“Test successful” or something like that.

Relevant logs and/or screenshots

image

Output of checks

This bug happens on GitLab.com