Skip to content

Filtered-stream example not working OOB #9

@maggz69

Description

@maggz69

Twitter Filtered stream example when making use of rules does not send the rules to Twitter before initiating the stream

Expected behavior

Running the Twitter Sample Srteam SDK

Actual behavior

Request fails with 409, Conflict
Body is {"title":"ConnectionException","detail":"You must define rules using the POST /2/tweets/search/stream/rules endpoint before connecting to filtered stream.","connection_issue":"RuleConfigurationIssue","type":"https://api.twitter.com/2/problems/streaming-connection"}

Steps to reproduce the behavior

Using a bearer token, run the filtered-stream.ts example as is on the examples page

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions