google / google/googleapis.dart
Getting 400 error code without specific detail in getInfo Api
- Dominant language
- Dart
- Stars
- 419
- Forks
- 136
- Avg merge
- 1h 21m
- Merged PRs (30d)
- 5
Description
I'm getting this error:
```DetailedApiRequestError (DetailedApiRequestError(status: 400, message: No error details. HTTP status was: 400.))```
when trying to find scopes granted to a user using this code:
```
final oauth2Api = Oauth2Api(client);
final tokenInfo = await oauth2Api.tokeninfo();
final grantedScopes = tokenInfo.scope;
```
I verified that the client is not null and I'm fetching it using [this package](https://pub.dev/packages/extension_google_sign_in_as_googleapis_auth).
This error is very unpredictible and happens once in a while but it's breaking a major flow in our app. Please guide me what I'm doing wrong or how to debug it.
Contributor guide
Assessment
This issue has not been assessed yet.