Title: Handle data dict type in retry.is_etag_in_json(data) · Issue #481 · googleapis/python-storage · GitHub
Open Graph Title: Handle data dict type in retry.is_etag_in_json(data) · Issue #481 · googleapis/python-storage
X Title: Handle data dict type in retry.is_etag_in_json(data) · Issue #481 · googleapis/python-storage
Description: retry.is_etag_in_json(data) is a helper method for conditional retries. It returns a boolean whether or not an etag is contained in the JSON body. There seem to be use cases in which a dictionary type of data is passed into retry.is_etag...
Open Graph Description: retry.is_etag_in_json(data) is a helper method for conditional retries. It returns a boolean whether or not an etag is contained in the JSON body. There seem to be use cases in which a dictionary t...
X Description: retry.is_etag_in_json(data) is a helper method for conditional retries. It returns a boolean whether or not an etag is contained in the JSON body. There seem to be use cases in which a dictionary t...
Opengraph URL: https://github.com/googleapis/python-storage/issues/481
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Handle data dict type in retry.is_etag_in_json(data)","articleBody":"`retry.is_etag_in_json(data)` is a helper method for conditional retries. It returns a boolean whether or not an `etag` is contained in the JSON body. \r\n\r\nThere seem to be use cases in which a dictionary type of data is passed into [`retry.is_etag_in_json(data)`](https://github.com/googleapis/python-storage/blob/cb2a89b0b696defd56c4c1eee5a1cad67ae4cb43/google/cloud/storage/retry.py#L128). Currently the method is unable to handle dict type data correctly: a `JSONDecodeError` is caught before examining if an etag is contained within.","author":{"url":"https://github.com/cojenco","@type":"Person","name":"cojenco"},"datePublished":"2021-06-25T23:31:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/481/python-storage/issues/481"}
| 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:376100fa-9d04-7c67-3fb8-da067e4b1d27 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9DFA:12F35E:41FC057:5E12B38:6A4FEBF3 |
| html-safe-nonce | 5cfeb75dd6017cb7cab06518fcd3ab8af4e0b80250ef73e5a829234429d2c792 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REZBOjEyRjM1RTo0MUZDMDU3OjVFMTJCMzg6NkE0RkVCRjMiLCJ2aXNpdG9yX2lkIjoiNTMwNTgwMDU3Njg4NTMyMDY5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c343e322fe0f0124216cdcdda21fbe56db022dcb709fc8c0da3a3b3ca353aed5 |
| hovercard-subject-tag | issue:930561068 |
| 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-storage/481/issue_layout |
| twitter:image | https://opengraph.githubassets.com/327b27fd4b00a3965e9b55039ebe254cdb8a29be754e4e663dc0ab6db1d610af/googleapis/python-storage/issues/481 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/327b27fd4b00a3965e9b55039ebe254cdb8a29be754e4e663dc0ab6db1d610af/googleapis/python-storage/issues/481 |
| og:image:alt | retry.is_etag_in_json(data) is a helper method for conditional retries. It returns a boolean whether or not an etag is contained in the JSON body. There seem to be use cases in which a dictionary t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cojenco |
| hostname | github.com |
| expected-hostname | github.com |
| None | 19b98c3d9767bb8a56238a89ff8401d1cbdf3bc5c353799aacf49fe6c76b4b7c |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-storage git https://github.com/googleapis/python-storage.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 226992639 |
| octolytics-dimension-repository_nwo | googleapis/python-storage |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 226992639 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-storage |
| 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 | f7e270be010aa4de2871991025fbb97f3afe2bcb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width