-
Notifications
You must be signed in to change notification settings - Fork 10
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
401 Unauthorized returns nondescript error #118
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If the API returns a 401, like if a bad token is passed into the client constructor, all errors will appear as
internal error, response body doesn't match error type signature
.This is caused by the error message being non-standard from the API in:
planetscale-go/planetscale/client.go
Lines 196 to 211 in 3f6f5f8
The response from the API is:
The TODO is almost a year old. Is it worth adding a 2nd (deprecated)
ErrorResponse
type to handle this other structure?The text was updated successfully, but these errors were encountered: