Open frzsombor opened 3 years ago
Hi @frzsombor, what version of Node and Needle are your running? IIRC there was an issue with the nonce that was fixed a few releases ago.
I'm using Node v14.15.5 and I've tried v2.9.0 and v3.0.0 too, but none of them worked with this test script. Still don't know why, as this code works with Twitter API v2 and other libraries still work with the v1.1 API.
Here is my code I'm using V2 of the API, hope this helps:
In my project I'm using Twitter API user timeline (both v1 and v2) and filtered stream (v2) with needle successfully, but I can't get the v1 version of filtered stream (statuses/filter) working with needle.
I feel clueless, as needle's streaming works fine with API v2 (just like the official example) and I've tested the authentication part (OAuth) of my v1 code and verified that it works well (response code: 200) - yet I'm not getting any data from the stream.
I even tried finding the problem by setting up Fiddler as a proxy of needle, but I saw nothing strange.
I've created an extracted, stand alone version of the v1 streaming module, hoping that someone can spot the issue/bug.