Unauthorized Error 401. Tried to regenerate tokens but still issue persists
I am using python sample code provided in the repository. But I am getting "builtins.Exception: (401, '{\n "title": "Unauthorized",\n "type": "about:blank",\n "status": 401,\n "detail": "Unauthorized"\n}')" error whenever I try to fetch data using any Endpoint. I tried to regenerate tokens with Read, Write Permissions but still the issue persists.
Have you set the correct environment variables? Which sample are you running?
Yes - to follow up. Same thing happening to me intermittently. Not sure if it is the control c exit not working properly in node.js, but once it quits on a timeout, it gives me a 401 error when i re open.
I do have same error. Making a recent searce with axios (Js) and header contains a bearer token which keeps responding Unauthorized. tried using it on Postman too with the same error. I have regenerated to no avail.
I am having the same problem running the sample code "Filtered-Stream" with either needle or axios with node.js. The environment variable is correct, I re-generated a bearer token, to no avail. Error: Unauthorized 401 Error: { "title": "Unauthorized", "type": "about:blank", "status": 401, "detail": "Unauthorized" }
- Is the app part of a project with v2 access?
- What level of access do you have to the API (this should work fine with Essential Access but just want to check)
It is part of v2 access and so far I have Essential account. I managed to get it to work with needle (maybe temporary issue from twitter side?) but still get some error with axios. Not sure where the problem is but for now I have a working implementation so I will dig further!
I keep getting the same error, both using Python and Postman..
this case it's still open , omg why ? why nobody helps us ? i have same problem :/
401
Traceback (most recent call last):
File "c:\Users\dell\Desktop\try_1\tw_se_3.py", line 41, in
[Done] exited with code=1 in 2.356 seconds