Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle cases when "undefined" is the error from wrapper. #10

Open
nsamarin opened this issue Apr 24, 2021 · 0 comments
Open

Handle cases when "undefined" is the error from wrapper. #10

nsamarin opened this issue Apr 24, 2021 · 0 comments

Comments

@nsamarin
Copy link
Member

Most likely cause:

        try:
            return json.loads(stdout)
        except json.decoder.JSONDecodeError as e:
            raise ScraperException(stdout) from None

caused by undefined to be returned from:

    api_script = (
        "var gplay = require('{}'){};"
        "gplay.{}({{{}}})"
        ".then(JSON.stringify).then(console.log).catch(console.log);"
    )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant