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.

Your request couldn't be processed

See original GitHub issue

Hi, I tried to log in with my account but I get the error:

File “…/main.py”, line 4, in <module> set_cookies(“facebook.com_cookies.txt”) File “…\Python38\site-packages\facebook_scraper_init_.py”, line 35, in set_cookies if not _scraper.is_logged_in(): File “…\facebook_scraper\facebook_scraper.py”, line 524, in is_logged_in self.get(‘https://m.facebook.com/settings’) File “…\facebook_scraper\facebook_scraper.py”, line 454, in get raise exceptions.UnexpectedResponse(“Your request couldn’t be processed”) facebook_scraper.exceptions.UnexpectedResponse: Your request couldn’t be processed

I tried another account and the login was successful but when I try to use this code:

set_cookies("facebook.com_cookies.txt") posts = get_posts('nintento', pages=10) print(len(posts))

It return 0

What can I do? Thanks

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:3
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
NielsOerbaekcommented, Aug 24, 2022

It can’t really find a pattern in these errors. From my quick tests it seems that backing off for a few seconds and then retrying fixes the issue in most cases.

I made a quick-and-dirty recursive hack to add retrying to the FacebookScraper.get method, which seems to work. I haven’t made a pull request yet, since im not 100p certain about the viability of the method.

But here are the changes i made:

  • Changed signature of get to def get(self, url, retry_count=0, **kwargs):
  • Added the block to line 925:
               elif title.text.lower() == "error":
                    if retry_count < 5:
                        import time
                        logger.warning("Error in request processing, waiting for 10 seconds and then retrying. Retry_count = %d" % retry_count)
                        time.sleep(10)
                        return self.get(url, retry_count=retry_count+1, **kwargs)
                    else:
                        logger.warning("Failed 5 times. Raising an UnexpectedResponse exception.")                  
                        raise exceptions.UnexpectedResponse("Your request couldn't be processed")
3reactions
curiousier-georgecommented, Aug 23, 2022

My impression is that Facebook is becoming stricter. Maybe they are specifically checking for facebook-scraper? I wonder what others’ experiences are …

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix: 'Your Request Couldn't Be Processed' on Facebook - Saint
“Your Request Couldn't be Processed” on Facebook? Here's the Fix! · 1. Re-Login to Your Account. · 2. Reload the Webpage and Restart...
Read more >
Can't log in on any account on my desktop, error message ...
Can't log in on any account on my desktop, error message says "Your Request Couldn't be Processed: There was a problem with this...
Read more >
Cannot login to Facebook, "Your request couldn't be processed".
When I try to log in to Facebook I am sent to a screen stating "There was a problem with this request. We're...
Read more >
Your Request Couldn't be Processed. - Meta for Developers
Hi, I have problems showing the page-plugin version of the Facebook Page Plugin on my page. The error message is Your Request Couldn't...
Read more >
How To Fix Facebook Your Request Couldn't be ... - Techsore
How To Fix Facebook Your Request Couldn't be Processed Problem Solved in Facebook · First, Reload that Webpage and Restart Your Mobile Device....
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