scraper: ss: cannot parse response: "invalid character 'F' looking for beginning of value

Ok so I’ve seen a few posts regarding similar messages but can’t seem to see how to rectify this. I was running a scrape with ss credentials and it was going fine then all of a sudden I started seeing that error:

ss: cannot parse response: "invalid character 'F' looking for beginning of value

I removed my credentials from the scraper.sh script and tried again and it processed fine … for a little while then the errors started again. I dropped everything for a bit and tried again with credentials and same thing … worked for a little while and then started seeing the same error. When there’s a “hash not found” it processes really quick but these invalid character errors take forever to get through. I’m wondering if they’ve implemented something to restrict # of scrapes from even registered accounts and the code isn’t understanding the response?

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Reactions: 3
  • Comments: 15 (3 by maintainers)

Most upvoted comments

I am also getting: ss: cannot parse response: “invalid character ‘F’ looking for beginning of value”

Is there anything we can do about it? I cannot scrape anything for such classics as Mario Bros or Sonic the Hedgehog…

It looks like maybe api2 is up but api is down. Requests to api2 work, but the response format is different: name and synopsis are arrays for different languages.

www.screenscraper.fr/api/jeuInfos.php appears to returning “File not found” which scraper is trying to parse as json.

But in reality that should not be returning 200 OK and would’ve been caught earlier in my code.

I’m not sure you’re actually checking the return code currently. I’ve submitted a PR to fix this: https://github.com/sselph/scraper/pull/261

The better question though is why ScreenScraper is returning a 404