This guide covers common issues and errors you might encounter while setting up or running the Discord GitHub Profile Widget, along with steps to resolve them.
If you receive an error like:
Sync failed: Discord API returned status 400: {"message": "Invalid Form Body", "code": 50035, "errors": {"provider_issued_user_id": {"_errors": [{"code": "APPLICATION_IDENTITY_PROVIDER_USER_ID_MISMATCH", "message": "Provider user ID *** does not match existing identity record"}]}}}
This is not an issue with this project. It means your Discord account already has an existing application identity, so Discord won't create a new one until the old identity is removed.
- Go to Discord Settings → Authorized Apps and Deauthorize the application.
- Open the Discord Developer Portal and select your application.
- Open the OAuth2 page.
- Under Redirects, make sure
https://discord.comis added as a Redirect URI. - In the OAuth2 URL Generator section:
- Select the
openidandsdk.social_layerscopes. - Select the
https://discord.comRedirect URI. - Copy the generated URL.
- Select the
- Modify the copied URL to change
response_type=codetoresponse_type=token. Example:- Original URL:
https://discord.com/oauth2/authorize?client_id=123456789012345678&response_type=code&redirect_uri=https%3A%2F%2Fdiscord.com&scope=openid+sdk.social_layer - Modified URL:
https://discord.com/oauth2/authorize?client_id=123456789012345678&response_type=token&redirect_uri=https%3A%2F%2Fdiscord.com&scope=openid+sdk.social_layer
- Original URL:
- Paste and open the modified URL in your web browser, then authorize the application again.
Deauthorizing the application removes the existing identity. Authorizing it again creates a new one.