Title: Vision API Error isn't thrown · Issue #3 · googleapis/python-vision · GitHub
Open Graph Title: Vision API Error isn't thrown · Issue #3 · googleapis/python-vision
X Title: Vision API Error isn't thrown · Issue #3 · googleapis/python-vision
Description: Was updating some samples and found when calling the Google Cloud Vision API with the python client library which has some handwritten helper methods making it a partial GAPIC library, that if the users passes a URL that the API can't re...
Open Graph Description: Was updating some samples and found when calling the Google Cloud Vision API with the python client library which has some handwritten helper methods making it a partial GAPIC library, that if the ...
X Description: Was updating some samples and found when calling the Google Cloud Vision API with the python client library which has some handwritten helper methods making it a partial GAPIC library, that if the ...
Opengraph URL: https://github.com/googleapis/python-vision/issues/3
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Vision API Error isn't thrown","articleBody":"Was updating some samples and found when calling the Google Cloud Vision API with the python client library which has some handwritten helper methods making it a partial GAPIC library, that if the users passes a URL that the API can't reach, the API returns an error message, but the client library doesn't `throw` the error rather returns it as part of the response.\r\n\r\nCall request: `response = client.text_detection(image=image)`\r\nIf you examine the response object from the api you'll find this:\r\n```\r\nerror {\r\n code: 3\r\n message: \"The URL does not appear to be accessible by us. Please double check or download the content and pass it in.\"\r\n}\r\n```\r\nSeems like we should throw this error.\r\n\r\nRelated PR that I discovered this in: https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2569","author":{"url":"https://github.com/nnegrey","@type":"Person","name":"nnegrey"},"datePublished":"2020-01-09T23:09:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/3/python-vision/issues/3"}
| 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:0b162055-21c1-7b2d-5e54-e1747f22d347 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B72C:2A6AA3:825D7:B2A61:6A4D50D6 |
| html-safe-nonce | 210f314eadd71ecdcf7c16e8d3275058e3df774ef60465a8f982e0e2e6102028 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzJDOjJBNkFBMzo4MjVENzpCMkE2MTo2QTRENTBENiIsInZpc2l0b3JfaWQiOiI2NDMxNjE4ODcwNzU5MjE1MzE4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | aff23462ed6433b32258292644e259e29831e5ad0d5778ab43d10cc41e8c97ad |
| hovercard-subject-tag | issue:559280672 |
| 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-vision/3/issue_layout |
| twitter:image | https://opengraph.githubassets.com/40ffb5ca7d156f8c2a302ae232ce42b19071ed14bb89d2f7bdb9dac1f2f57a4b/googleapis/python-vision/issues/3 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/40ffb5ca7d156f8c2a302ae232ce42b19071ed14bb89d2f7bdb9dac1f2f57a4b/googleapis/python-vision/issues/3 |
| og:image:alt | Was updating some samples and found when calling the Google Cloud Vision API with the python client library which has some handwritten helper methods making it a partial GAPIC library, that if the ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nnegrey |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-vision git https://github.com/googleapis/python-vision.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 226992672 |
| octolytics-dimension-repository_nwo | googleapis/python-vision |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 226992672 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-vision |
| 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 | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width