Skip to content

[Bug]: Twitter example not working due to deprecation of v1 stream endpoint #21952

Open
@kisaga

Description

@kisaga

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 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions