Title: RetryErrors obscure actual errors - Language API · Issue #3900 · googleapis/google-cloud-python · GitHub
Open Graph Title: RetryErrors obscure actual errors - Language API · Issue #3900 · googleapis/google-cloud-python
X Title: RetryErrors obscure actual errors - Language API · Issue #3900 · googleapis/google-cloud-python
Description: Similar to #3083 I am having the exact issue but with the google-cloud-language package. I am streaming tweets (working with Apache Beam) to the Language Sentiment Analysis API but some of them seem to break it. class SentimentAnalyzerDo...
Open Graph Description: Similar to #3083 I am having the exact issue but with the google-cloud-language package. I am streaming tweets (working with Apache Beam) to the Language Sentiment Analysis API but some of them see...
X Description: Similar to #3083 I am having the exact issue but with the google-cloud-language package. I am streaming tweets (working with Apache Beam) to the Language Sentiment Analysis API but some of them see...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/3900
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"RetryErrors obscure actual errors - Language API","articleBody":"Similar to #3083\r\nI am having the exact issue but with the google-cloud-language package. I am streaming tweets (working with Apache Beam) to the Language Sentiment Analysis API but some of them seem to break it.\r\n```python\r\nclass SentimentAnalyzerDoFn(beam.DoFn):\r\n def process(self, element):\r\n \"\"\"Takes a parsed tweet as input and add to it its sentiment score and values\"\"\"\r\n from google.cloud import language\r\n client = language.LanguageServiceClient()\r\n document = language.types.Document(\r\n content=element['tweet'].encode('utf-8'),\r\n type='PLAIN_TEXT')\r\n response = client.analyze_sentiment(\r\n document=document,\r\n encoding_type='UTF8')\r\n sentiment = response.document_sentiment\r\n element['sentiment_score'] = sentiment.score\r\n element['sentiment_magnitude'] = sentiment.magnitude\r\n yield element\r\n```\r\n\r\nThe error I am getting is this: \r\n```python\r\nRetryError: Exception occurred in retry method that was not classified as transient [while running 'SentimentAnalasys']\r\n```\r\nIs there a way to investigate it?","author":{"url":"https://github.com/mr-ubik","@type":"Person","name":"mr-ubik"},"datePublished":"2017-08-29T20:21:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/3900/google-cloud-python/issues/3900"}
| 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:26b21a0d-eb2c-5bda-e5b2-90f005f707d4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D9B6:3CF0FA:A9DF4:EB5CB:6A4D26FC |
| html-safe-nonce | b5eb7e01a63b9e8e827b6be37f7450676a966b179f09cccd07c5a97e495bdd6a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUI2OjNDRjBGQTpBOURGNDpFQjVDQjo2QTREMjZGQyIsInZpc2l0b3JfaWQiOiIyMjkxOTM1MDkwODQ4OTAwODYwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e470c44822790bbbb9bbe31e1d97abae92f1f955c26df96869896ddde34c14b2 |
| hovercard-subject-tag | issue:253791631 |
| 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/3900/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b95c1c3de765699cba3dcfd2497c351fbf0a8472efed6a84dd4545dac7ba0f37/googleapis/google-cloud-python/issues/3900 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b95c1c3de765699cba3dcfd2497c351fbf0a8472efed6a84dd4545dac7ba0f37/googleapis/google-cloud-python/issues/3900 |
| og:image:alt | Similar to #3083 I am having the exact issue but with the google-cloud-language package. I am streaming tweets (working with Apache Beam) to the Language Sentiment Analysis API but some of them see... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mr-ubik |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| 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 | 93f17a978ee60bc4668e1d7b90e6bd2d622261fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width