Title: AttributeError: 'NoneType' object has no attribute 'from_call' · Issue #659 · googleapis/python-api-core · GitHub
Open Graph Title: AttributeError: 'NoneType' object has no attribute 'from_call' · Issue #659 · googleapis/python-api-core
X Title: AttributeError: 'NoneType' object has no attribute 'from_call' · Issue #659 · googleapis/python-api-core
Description: In exceptions.py, if grpcio-status is not installed, rpc_status is set to None python-api-core/google/api_core/exceptions.py Lines 31 to 43 in d96eb5c try: import grpc try: from grpc_status import rpc_status except ImportError: # pragma:...
Open Graph Description: In exceptions.py, if grpcio-status is not installed, rpc_status is set to None python-api-core/google/api_core/exceptions.py Lines 31 to 43 in d96eb5c try: import grpc try: from grpc_status import ...
X Description: In exceptions.py, if grpcio-status is not installed, rpc_status is set to None python-api-core/google/api_core/exceptions.py Lines 31 to 43 in d96eb5c try: import grpc try: from grpc_status import ...
Opengraph URL: https://github.com/googleapis/python-api-core/issues/659
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AttributeError: 'NoneType' object has no attribute 'from_call'","articleBody":"In `exceptions.py`, if `grpcio-status` is not installed, `rpc_status` is set to `None`\r\n\r\nhttps://github.com/googleapis/python-api-core/blob/d96eb5cdd8120bfec97d62b09512c6fecc325be8/google/api_core/exceptions.py#L31-L43\r\n\r\nIn `_parse_grpc_error_details`, when `rpc_status` is `None`, this leads to `AttributeError: 'NoneType' object has no attribute 'from_call'`\r\nhttps://github.com/googleapis/python-api-core/blob/d96eb5cdd8120bfec97d62b09512c6fecc325be8/google/api_core/exceptions.py#L562-L566\r\n\r\nWe should add a check to make sure `rpc_status` is not `None` before calling `rpc_status.from_call(rpc_exc)`","author":{"url":"https://github.com/parthea","@type":"Person","name":"parthea"},"datePublished":"2024-05-24T09:30:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/659/python-api-core/issues/659"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:40e2b38e-2277-fb79-8ee1-d7673eb9e3f3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E5FA:1D90CC:21E9994:2EA5530:6A4F3A74 |
| html-safe-nonce | 9974fe32e97a8608fd6e79b80a3d2062539ed879c5c8d0686afd0b5c9fea1d5c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUZBOjFEOTBDQzoyMUU5OTk0OjJFQTU1MzA6NkE0RjNBNzQiLCJ2aXNpdG9yX2lkIjoiODE3NDI2MzczNzU3MTU1NTk1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 14684833e480ff5dacf040f4e1d0cf2d237239f7c467117c7de9b1e442c98dd9 |
| hovercard-subject-tag | issue:2314918168 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/python-api-core/659/issue_layout |
| twitter:image | https://opengraph.githubassets.com/92c389ce2ac396a8d65777f069ff23a727f700a251448cc457a94b52192b0139/googleapis/python-api-core/issues/659 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/92c389ce2ac396a8d65777f069ff23a727f700a251448cc457a94b52192b0139/googleapis/python-api-core/issues/659 |
| og:image:alt | In exceptions.py, if grpcio-status is not installed, rpc_status is set to None python-api-core/google/api_core/exceptions.py Lines 31 to 43 in d96eb5c try: import grpc try: from grpc_status import ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | parthea |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-api-core git https://github.com/googleapis/python-api-core.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 226992456 |
| octolytics-dimension-repository_nwo | googleapis/python-api-core |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 226992456 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-api-core |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width