You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/20 17:41:17 UTC

[GitHub] [beam] kisaga opened a new issue, #21952: [Bug]: Twitter example not working due to deprecation of v1 stream endpoint

kisaga opened a new issue, #21952:
URL: https://github.com/apache/beam/issues/21952

   ### What happened?
   
   Recently I started getting involved in the OSS world and when I pulled this project and tried to run the java examples I met the following failure.
   
   ## Failure
   After getting credentials and overcoming the 401 responses I felt into the following:
   ```
   [Mon Jun 20 19:06:11 EEST 2022]403:The request is understood, but it has been refused. An accompanying error message will explain why. This code is used when requests are being denied due to update limits (https://support.twitter.com/articles/15364-about-twitter-limits-update-api-dm-and-following).
   <html>\n<head>\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>\n<title>Error 403 
   Please use V2 filtered and sample volume stream as alternatives
   </title>
   </head>
   <body>
   <h2>HTTP ERROR: 403</h2>
   <p>Problem accessing '/1.1/statuses/filter.json'. Reason:
   <pre>    
   Please use V2 filtered and sample volume stream as alternatives
   </pre>
   </body>
   </html>
   ```
   From [this announcement](https://twittercommunity.com/t/deprecation-announcement-removing-compliance-messages-from-statuses-filter-and-retiring-statuses-sample-from-the-twitter-api-v1-1/170500) I understood that a migration should be done to start using the v2 stream api. 
   
   The java twitter example should be migrated to the v2 endpoint. 
   
   ### Issue Priority
   
   Priority: 3
   
   ### Issue Component
   
   Component: examples-java


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] kisaga commented on issue #21952: [Bug]: Twitter example not working due to deprecation of v1 stream endpoint

Posted by GitBox <gi...@apache.org>.
kisaga commented on issue #21952:
URL: https://github.com/apache/beam/issues/21952#issuecomment-1160702345

   .take-issue


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] kisaga commented on issue #21952: [Bug]: Twitter example not working due to deprecation of v1 stream endpoint

Posted by GitBox <gi...@apache.org>.
kisaga commented on issue #21952:
URL: https://github.com/apache/beam/issues/21952#issuecomment-1160702263

   ## Obstacles and Approach
   After searching if a contribution on [twitter4j](https://github.com/Twitter4J/Twitter4J) can be made, I saw that the project is inactive and not updated for v2 Twitter API. Then I searched for any available clients of the v2 API and I found [this](https://github.com/twitterdev/twitter-api-java-sdk). I reverse engineered some of the twitter4j functionality, extracted the high level logic and transferred it to the twitter-api-java-sdk (there was already some functionality as an example) under [this PR](https://github.com/twitterdev/twitter-api-java-sdk/pull/27) (pending review).
   
   I am waiting for your feedback If there are any disagreements on the approach
   
   .take-issue


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org