GoogleChromeLabs / lighthousebot

Run Lighthouse in CI, as a web service, using Docker. Pass/Fail GH pull requests.
Apache License 2.0
2.24k stars 127 forks source link

Error from CI backend. invalid json response body #76

Open bronz3beard opened 4 years ago

bronz3beard commented 4 years ago

I left the same comment here not sure if it would be seen on a closed issue. #41

Hi @ebidel I have recently had the same or a similar issue running lh-bot, i was hoping you might be able to help me troubleshoot it.

This is the error: (I have had the same error occur on 3 different PRs, and have not yet been able to get the bot to comment in the pr) "Error from CI backend. invalid json response body at https://builder-dot-lighthouse-ci.appspot.com/ci reason: Unexpected token U in JSON at position 0"

This is the PR in staging: https://website-ssr-pr-14.herokuapp.com/

Travis yaml: sudo: false language: node_js node_js:

'10'
install:
node -v
before_script:
yarn
cache:
directories:
    node_modules
    yarn: true
    git:
    depth: 3
    script:
    yarn build
    after_success:
    sleep 4m
    yarn run lhbot https://website-ssr-pr-$TRAVIS_PULL_REQUEST.herokuapp.com/ 

End of Travis Job Log: $ sleep 4m after_success.2 $ yarn run lhbot https://website-ssr-pr-$TRAVIS_PULL_REQUEST.herokuapp.com/ yarn run v1.15.2 $ lighthousebot -- --pwa=95 --perf=95 --seo=95 --a11y=95 --bp=95 https://website-ssr-pr-14.herokuapp.com/ Using runner: chrome New Lighthouse scores: "Error from CI backend. invalid json response body at https://builder-dot-lighthouse-ci.appspot.com/ci reason: Unexpected token U in JSON at position 0" Done. Your build exited with 0.

Please let me know if you need any other information from me im really keen to get this working 😃

ebidel commented 4 years ago

Sorry, I haven't worked on this project for some time. I'm sure the team is maintaining the endpoint anymore.