google / google/googleapis.dart

DetailedApiRequestError.toString() should print more information

Open
#70 0 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
Dart
Stars
419
Forks
136
Avg merge
1h 21m
Merged PRs (30d)
5

Description

I've often found the `DetailedApiRequestError.jsonResponse` to contain critically important information about errors...

Maybe we could just dump that as part of the error messages using `toString()`, if we pretty print it with indentation it probably doesn't matter so much if it's a huge blob.

----
I'm not entirely sure if any APIs would include sensitive information in error messages that you wouldn't want to risk leaking into logs. But I suspect that's not the case, although it can never be excluded as users could be doing anything..

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.