Title: Error Calling DNS#QOUTAS · Issue #1650 · googleapis/google-cloud-python · GitHub
Open Graph Title: Error Calling DNS#QOUTAS · Issue #1650 · googleapis/google-cloud-python
X Title: Error Calling DNS#QOUTAS · Issue #1650 · googleapis/google-cloud-python
Description: When I tried to call the dns.qoutas method, I got the following errors. ... .../.virtualenvs/panda/lib/python2.7/site-packages/gcloud/dns/client.py", line 59, in quotas return dict([(key, int(value)) ValueError: invalid literal for int()...
Open Graph Description: When I tried to call the dns.qoutas method, I got the following errors. ... .../.virtualenvs/panda/lib/python2.7/site-packages/gcloud/dns/client.py", line 59, in quotas return dict([(key, int(value...
X Description: When I tried to call the dns.qoutas method, I got the following errors. ... .../.virtualenvs/panda/lib/python2.7/site-packages/gcloud/dns/client.py", line 59, in quotas return dict([(key, int(...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/1650
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error Calling DNS#QOUTAS","articleBody":"When I tried to call the [`dns.qoutas` method](https://github.com/GoogleCloudPlatform/gcloud-python/blob/dbb22a7fddcf12228bba7b191774f2c4a2adfe35/gcloud/dns/client.py#L59), I got the following errors. \n\n```\n...\n.../.virtualenvs/panda/lib/python2.7/site-packages/gcloud/dns/client.py\", line 59, in quotas\n return dict([(key, int(value))\nValueError: invalid literal for int() with base 10: 'dns#quota'\n```\n\nOn introspection, it turns out that the error stems from the attempt to cast the `values` within the `quota` dictionary as an integer, specifically this call: `int(value)` where some of the values are not strings. Except it breaks the client somewhere else, I don't see how what purpose the casting serves in the first place. \nHere's a snippet of the return value from the function call:\n\n```\n{u'quota': {u'kind': u'dns#quota', ...},...}\n```\n","author":{"url":"https://github.com/ojengwa","@type":"Person","name":"ojengwa"},"datePublished":"2016-03-23T15:51:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1650/google-cloud-python/issues/1650"}
| 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:face4d05-3906-442a-36a3-a600212e7ab0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8466:A3B49:D73C7B:126CF6E:6A4D5963 |
| html-safe-nonce | 68305869ac7a22aef61a2e4d8d868dfdd7ad026887895eddb5aca6f8a456628d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDY2OkEzQjQ5OkQ3M0M3QjoxMjZDRjZFOjZBNEQ1OTYzIiwidmlzaXRvcl9pZCI6IjQ0MjQ4NTMyNTQ5MTI2OTQ2MjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 59c112f6766338107383deace0d21700d49a974c389df46f4fc1be1d19761332 |
| hovercard-subject-tag | issue:142999417 |
| 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/google-cloud-python/1650/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5e56429c1cbf16ce3ba13c1c507d25e996e4335d76e21966947e9ac1011ac0dd/googleapis/google-cloud-python/issues/1650 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5e56429c1cbf16ce3ba13c1c507d25e996e4335d76e21966947e9ac1011ac0dd/googleapis/google-cloud-python/issues/1650 |
| og:image:alt | When I tried to call the dns.qoutas method, I got the following errors. ... .../.virtualenvs/panda/lib/python2.7/site-packages/gcloud/dns/client.py", line 59, in quotas return dict([(key, int(value... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ojengwa |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2a1443ff9733a3016431263ea73c93d8fe00c195eb4a7670ac30e7848f045441 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| 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 | f3bdd3157ea1f0fd738d408eceeead721acf1dc3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width