Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Error Message for Invalid Credentials #25

Open
4 tasks done
AlexCatarino opened this issue Nov 7, 2024 · 0 comments
Open
4 tasks done

Improve Error Message for Invalid Credentials #25

AlexCatarino opened this issue Nov 7, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@AlexCatarino
Copy link
Member

Similar to #16

Expected Behavior

401 Unauthorized explain that credentials are invalid.

Actual Behavior

We receive the following message which doesn't explain 401:

During the algorithm initialization, the following exception has occurred: Error getting cash balance from brokerage: CoinbaseApiClient.ExecuteRequest failed: [401] Unauthorized, Content: Unauthorized

Potential Solution

If the error code is 401. Ask user to verify credentials.
API Private Key is tricky since members need to remove \n which might lead to human error.

Reproducing the Problem

Deploy with old/invalid credentials.

Checklist

  • I have completely filled out this template
  • I have confirmed that this issue exists on the current master branch
  • I have confirmed that this is not a duplicate issue by searching issues
  • I have provided detailed steps to reproduce the issue
@AlexCatarino AlexCatarino added the enhancement New feature or request label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant