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
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:
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: