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.

Do you want to learn more about this Actor?

Get a demo
PG

Error Message in many scrape runs

Closed

pixray_gmbh opened this issue
9 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 ... [trimmed]

alexey 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!

PG

pixray_gmbh

9 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!

alexey 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

PG

pixray_gmbh

9 months ago

Hi Alexey –

that is perfect! Thank you very, very much!

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

Dennis

zuzka avatar

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

Developer
Maintained by Apify

Actor Metrics

  • 70 monthly users

  • 9 stars

  • >99% runs succeeded

  • 13 hours response time

  • Created in Nov 2022

  • Modified 18 hours ago