Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stream API get Error: Status Code: 403 #359

Open
guxuanye opened this issue Mar 27, 2023 · 1 comment
Open

Stream API get Error: Status Code: 403 #359

guxuanye opened this issue Mar 27, 2023 · 1 comment

Comments

@guxuanye
Copy link

guxuanye commented Mar 27, 2023

I write the code, but get an error

client.stream("statuses/filter", { track: "twitter" }, function (stream) { stream.on("data", function (tweet) { console.log(tweet.text); }); stream.on("error", function (error) { console.log(error); }); });

The error is:
Error: Status Code: 403 at Request.<anonymous> (D:\WebCode\TestAPI\node_modules\twitter\lib\twitter.js:277:28) at Request.emit (node:events:513:28) at Request.onRequestResponse (D:\WebCode\TestAPI\node_modules\request\request.js:1059:10) at ClientRequest.emit (node:events:513:28) at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:701:27) at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17) at TLSSocket.socketOnData (node:_http_client:542:22) at TLSSocket.emit (node:events:513:28) at addChunk (node:internal/streams/readable:324:12) at readableAddChunk (node:internal/streams/readable:297:9)

@Jgamber
Copy link

Jgamber commented Mar 27, 2023

Same issue here. Also says I have "elevated" access in developer dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants