You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, Algorand public APIs require an algod_token to be consumed. However, it also allows the option to disable API authentication. When API auth is disabled, the request to the algod node can't be done since the algod token is always required by the client in go-algorand-sdk
Solution
A potential solution could be to include a condition on client.apiToken
if len(client.apiToken) > 0 {
req.Header.Set(client.apiHeader, client.apiToken)
}
The text was updated successfully, but these errors were encountered:
Problem
By default, Algorand public APIs require an algod_token to be consumed. However, it also allows the option to disable API authentication. When API auth is disabled, the request to the algod node can't be done since the algod token is always required by the client in go-algorand-sdk
Solution
A potential solution could be to include a condition on client.apiToken
The text was updated successfully, but these errors were encountered: