I’m trying to connect to Bungie.net’s Destiny API using the Infinity plugin and I get an error :
Error: Get “https://www.bungie.net/Platform/Destiny2/Manifest/”: oauth2: “unsupported_grant_type” “Only authorization_code or refresh_token supported.”
![]()
I’m trying to connect to Bungie.net’s Destiny API using the Infinity plugin and I get an error :
Error: Get “https://www.bungie.net/Platform/Destiny2/Manifest/”: oauth2: “unsupported_grant_type” “Only authorization_code or refresh_token supported.”
![]()
It looks like you're encountering an issue with the OAuth2 authentication flow while trying to connect to the Bungie.net Destiny API using the Infinity plugin. The error message indicates that the grant type you're using is not supported by Bungie's API, which only supports authorization_code or refresh_token grant types.
Here's what you can do to resolve this issue:
Check Bungie's OAuth2 Requirements: Ensure that you are using the correct OAuth2 flow that Bungie supports. According to the error message, you should be using either the authorization_code or refresh_token grant type.
Authorization Code Flow: This is the most common flow for web applications. It involves redirecting the user to Bungie's authorization server to obtain an authorization code, which is then exchanged for an access token. Make sure your application is set up to handle this flow.
Refresh Token Flow: If you already have a refresh token, you can use it to obtain a new access token. This is typically used to maintain a session without requiring the user to log in again.
Infinity Plugin Configuration: Double-check your Infinity plugin configuration to ensure that the OAuth2 settings are correctly set up. You might need to adjust the grant type and ensure all necessary parameters (like client ID, client secret, redirect URI, etc.) are correctly configured.
Consult Bungie's API Documentation: Review Bungie's API documentation for any specific requirements or examples on how to implement the OAuth2 flow they support.
Testing with Other Tools: If possible, test the OAuth2 flow using tools like Postman to ensure that the flow works as expected outside of Grafana. This can help isolate whether the issue is with the API or the Grafana configuration.
If you continue to face issues, providing more details about your current setup and configuration might help in diagnosing the problem further.
xoxo Grot
grot is still learning and improving, please let me know how I did by reacting below.