question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi, I have configured twarc2

Your keys have been written to /home/aborruso/.config/twarc/config


✨ ✨ ✨  Happy twarcing! ✨ ✨ ✨

But when I run twarc2 conversation 1406852944784412675 I have

⚡ Client Forbidden

My log

2021-06-21 09:41:00,283 INFO using config /home/aborruso/.config/twarc/config
2021-06-21 09:41:00,283 INFO creating HTTP session headers for app auth.
2021-06-21 09:41:00,283 INFO getting ('https://api.twitter.com/2/tweets/search/recent',) {'params': {'expansions': 'author_id,in_reply_to_user_id,referenced_tweets.id,referenced_tweets.id.author_id,entities.mentions.username,attachments.poll_ids,attachments.media_keys,geo.place_id', 'user.fields': 'created_at,description,entities,id,location,name,pinned_tweet_id,profile_image_url,protected,public_metrics,url,username,verified,withheld', 'tweet.fields': 'attachments,author_id,context_annotations,conversation_id,created_at,entities,geo,id,in_reply_to_user_id,lang,public_metrics,text,possibly_sensitive,referenced_tweets,reply_settings,source,withheld', 'media.fields': 'duration_ms,height,media_key,preview_image_url,type,url,width,public_metrics', 'poll.fields': 'duration_minutes,end_datetime,id,options,voting_status', 'place.fields': 'contained_within,country,country_code,full_name,geo,id,name,place_type', 'max_results': 100, 'query': 'conversation_id:1406852944784412675'}}

If I run twarc filter covid I have no error. I’m using twarc v2.2.0.

Thank you

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
igorbrigadircommented, Jun 21, 2021

This can also come up if the bearer token / api keys you used to configure are not attached to a Project in your dashboard https://developer.twitter.com/en/portal/projects-and-apps

0reactions
igorbrigadircommented, Jan 13, 2022

@barripdmx

twarc2 search --archive blacklivesmatter tweets.jsonl IT DOES NOT WORK twarc2 search blacklivesmatter tweets.json IT WORKS

Judging by your screenshot you have Elevated access, and you can search for tweets in the last 7 days. To use --archive you have to have an “Academic Research” project after applying for academic access. You will then have 2 projects, 1 elevated and 1 academic.

Read more comments on GitHub >

github_iconTop Results From Across the Web

403 Forbidden Error: What It Is and How to Fix It - Airbrake Blog
The 403 Forbidden Error is an HTTP response status code that indicates an identified client does not have proper authorization to access the ......
Read more >
HTTP Error 403 Forbidden: What It Means and How to Fix It
The 403 response belongs to the 4xx range of HTTP responses: Client errors. This means either you, or your browser, did something wrong....
Read more >
What Is a 403 Forbidden Error (and How Can I Fix It)?
A 403 Forbidden Error occurs when you do not have permission to access a web page or something else on a web server....
Read more >
403 Forbidden - HTTP - MDN Web Docs - Mozilla
The HTTP 403 Forbidden response status code indicates that the server understands the request but refuses to authorize it.
Read more >
What Is the 403 Forbidden Error and How to Fix It (8 Methods ...
Often, HTTP 403 forbidden errors are caused by an access misconfiguration on the client-side, which means you can usually resolve the issue yourself....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found