Facebook Photos Scraper avatar
Facebook Photos Scraper
Try for free

7 days trial then $20.00/month - No credit card required now

View all Actors
Facebook Photos Scraper

Facebook Photos Scraper

apify/facebook-photos-scraper
Try for free

7 days trial then $20.00/month - No credit card required now

Extract data from one or multiple Facebook images. Get image ID, Facebook photo URL, image URL, OCR text, and more. Download the data in JSON, CSV, and Excel and use it in apps, spreadsheets, and reports.

User avatar

Error Message in many scrape runs

Closed

pixray_gmbh opened this issue
2 months ago

Hi,

in many scrapes we get this error pattern:

WARN CheerioCrawler: Reclaiming failed request back to the list or queue. (string key) The "key" argument must be at most 256 characters long and only contain the following characters: a-zA-Z0-9!-.'() 2024-03-01T10:59:48.874Z at async handleApiFeed (file:///usr/src/app/src/src-meta-page-photos/routes.js:71:9) {"id":"hy4bMC5NKP3iuQP","url":"https://www.facebook.com/api/graphql/","retryCount":1} 2024-03-01T10:59:55.991Z WARN CheerioCrawler: Reclaiming failed request back to the list or queue. (string key) The "key" argument must be at most 256 characters long and only contain the following characters: a-zA-Z0-9!-.'() 2024-03-01T10:59:56.004Z at async handleApiFeed (file:///usr/src/app/src/src-meta-page-photos/routes.js:71:9) {"id":"hy4bMC5NKP3iuQP","url":"https://www.facebook.com/api/graphql/","retryCount":2} 2024-03-01T11:00:00.240Z WARN CheerioCrawler: Reclaiming failed request back to the list or queue. (string key) The "key" argument must be at most 256 characters long and only contain the following characters: a-zA-Z0-9!-.'() 2024-03-01T11:00:00.242Z at async handleApiFeed (file:///usr/src/app/src/src-meta-page-photos/routes.js:71:9) {"id":"hy4bMC5NKP3iuQP","url":"https://www.facebook.com/api/graphql/","retryCount":3} 2024-03-01T11:00:05.665Z WARN CheerioCrawler: Reclaiming failed request back to the list or queue. (string key) The "key" argument must be at most 256 characters long and only contain the following characters: a-zA-Z0-9!-.'() 2024-03-01T11:00:05.667Z at async handleApiFeed (file:///usr/src/app/src/src-meta-page-photos/routes.js:71:9) {"id":"hy4bMC5NKP3iuQP","url":"https://www.facebook.com/api/graphql/","retryCount":4} 2024-03-01T11:00:10.998Z WARN CheerioCrawler: Reclaiming failed request back to the list or queue. (string key) The "key" argument must be at most 256 characters long and only contain the following characters: a-zA-Z0-9!-.'() 2024-03-01T11:00:11.000Z at async handleApiFeed (file:///usr/src/app/src/src-meta-page-photos/routes.js:71:9) {"id":"hy4bMC5NKP3iuQP","url":"https://www.facebook.com/api/graphql/","retryCount":5} 2024-03-01T11:00:18.937Z WARN CheerioCrawler: Reclaiming failed request back to the list or queue. (string key) The "key" argument must be at most 256 characters long and only contain the following characters: a-zA-Z0-9!-.'() 2024-03-01T11:00:18.939Z at async handleApiFeed (file:///usr/src/app/src/src-meta-page-photos/routes.js:71:9) {"id":"hy4bMC5NKP3iuQP","url":"https://www.facebook.com/api/graphql/","retryCount":6} 2024-03-01T11:00:24.109Z WARN CheerioCrawler: Reclaiming failed request back to the list or queue. (string key) The "key" argument must be at most 256 characters long and only contain the following characters: a-zA-Z0-9!-.'() 2024-03-01T11:00:24.111Z at async handleApiFeed (file:///usr/src/app/src/src-meta-page-photos/routes.js:71:9) {"id":"hy4bMC5NKP3iuQP","url":"https://www.facebook.com/api/graphql/","retryCount":7} 2024-03-01T11:00:29.538Z WARN CheerioCrawler: Reclaiming failed request back to the list or queue. (string key) The "key" argument must be at most 256 characters long and only contain the following characters: a-zA-Z0-9!-.'() 2024-03-01T11:00:29.542Z at async handleApiFeed (file:///usr/src/app/src/src-meta-page-photos/routes.js:71:9) {"id":"hy4bMC5NKP3iuQP","url":"https://www.facebook.com/api/graphql/","retryCount":8} 2024-03-01T11:00:34.491Z WARN CheerioCrawler: Reclaiming failed request back to the list or queue. (string key) The "key" argument must be at most 256 characters long and only contain the following characters: a-zA-Z0-9!-_.'() 2024-03-01T11:00:34.496Z at async handleApiFeed (file:///usr/src/app/src/src-meta-page-photos/routes.js:71:9) {"id":"hy4bMC5NKP3iuQP","url":"https://www.facebook.com/api/graphql/","retryCount":9} 2024-03-01T11:00:38.241Z WARN CheerioCrawler: Reclaiming failed request back to the list or queue. The proxy server rejected the request with status code 590 (UPSTREAM503) 2024-03-01T11:00:38.243Z {"id":"hy4bMC5NKP3iuQP","url":"https://www.facebook.com/api/graphql/","retryCount":10}

Could you please have a look at this? It appears to be related to an issue in the scraper impelemtation.

Thanks, Dennis

User avatar

Hi! Thanks for feedback, looks like something specific about https://www.facebook.com/MCakarVoltHSK/photos_by internal format, will check in more details and fix in next few days!

User avatar

pixray_gmbh

2 months ago

Hi Alexey,

we get the same error pattern in a relatively high percentage of scrapes while many others work just fine.

We always go for the /photos_by path in all our scrapes!

Thanks for looking into this!

User avatar

Floating issue was randomly caused by photos_by postfix which (again, randomly) recognized as base64 encoded app_section:100064164336997:2305272732 while only 100064164336997 is valid ID for getting related data. Added parsing, so from now on its safe to use both https://www.facebook.com/MCakarVoltHSK/photos_by OR https://www.facebook.com/MCakarVoltHSK

Sample run https://console.apify.com/view/runs/RfJUFkKUOZFtR1iQ0

User avatar

pixray_gmbh

2 months ago

Hi Alexey –

that is perfect! Thank you very, very much!

We’ll give it a try right away!!!

Dennis

User avatar

I am going to close the issue now but feel free to reopen if the issue reappear.

Developer
Maintained by Apify
Actor metrics
  • 50 monthly users
  • 99.8% runs succeeded
  • 2.7 days response time
  • Created in Nov 2022
  • Modified 3 days ago