mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 06:55:53 +03:00
[GH-ISSUE #576] Discord integration something went wrong #419
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#419
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Johannp02180 on GitHub (Oct 19, 2021).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/576
Hello, when settings up discord, I can access the link login, and select my server and channel. It then redirects back to healthcheck and I get a something went wrong error:

I'm not sure if this in the logs will help:
[pid: 301|app: 0|req: 22/50] 10.253.0.5 () {36 vars in 971 bytes} [Tue Oct 19 18:19:35 2021] GET /integrations/add_discord/?code=niRz7OE46ONlmtDO4ztVJkvsNf5XLv&state=b6Ha5yiDz2FrAoyUbotyQog2rgyKqDciKEbHPbTebFE&guild_id=661424797208674314 => generated 0 bytes in 118 msecs (HTTP/1.1 302) 10 headers in 610 bytes (1 switches on core 0)@Enissay commented on GitHub (May 30, 2023):
@Johannp02180 I've got the same, how have you fixed it ?
@cuu508 commented on GitHub (May 30, 2023):
It produces the "Something went wrong." message during the OAuth2 flow, when exchanging auth token for an access token, if the response from the server does not contain an "access_token" field.
@Enissay are you seeing this error on a self-hosted instance? If so, to better understand the issue, add a debug statement in hc/front/views.py,
add_discord_completefunction:@Enissay commented on GitHub (May 30, 2023):
@cuu508 Yes, a docker instance. Sadly it seems to require a restart which looses the change since it is not persistent :-/
Or, how can I restart the app it inside the running container ?
@Enissay commented on GitHub (May 31, 2023):
Okay, finally I trigger a restart of uwsgi by killing it
kill -HUP 174...I can see the following:
@Enissay commented on GitHub (May 31, 2023):
Finally it was solved.
I had to reset
DISCORD_CLIENT_SECRETand get a new one. Which means the old one somehow was wrong >_>I thought to do it yesterday but then I told myself it was unlikely...
Anyhow, I hope this would help future lost souls...
Thank you @cuu508 for you fast reactivity and putting me on the right path <3