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);"
)
Most likely cause:
caused by
undefinedto be returned from: