Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Does not set status codes on operation errors #15

Closed
@larkee

Description

@larkee

Raised in a Cloud Spanner issue, the returned GoogleAPICallError has a code and grpc_status_code of None.

The issue seems to be at:
https://github.com/googleapis/python-api-core/blob/master/google/api_core/operation.py#L135

The GoogleAPICallError constructor does not set the code from the errors argument so the error code contained within it is being lost.

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions