Yarn install periodically fails with error "Unexpected end of JSON input"


Bitrise Build Issue Report template

Description of the issue

yarn install step fails - it seems like the JSON does not fully load each time we build…


Xcode 10.3.x on macOS 10.14’
yarn @ 0.0.8


Intermittently get the error - but very often. Rebuild does seem to resolve it.

  • _Does a “Rebuild” help? YES
  • _Does a rebuild without caches help? NO
  • Does the issue happen sporadically, or every time? : SPORADIC
  • Does upgrading the build Step to the latest version help? : NO
  • When did the issue start? : MONTHS AGO - JUST GOT WORSE

Local reproduction

_Can it be reproduced on your own Mac/PC by following our local debug guide? NO

Local reproduction: Linux / Android (docker based) stack builds

_Can it be reproduced by running the build locally, after doing a new git clone of the repository into the /tmp directory and running the build from there with the Bitrise CLI ( https://www.bitrise.io/cli )? If no, can it be reproduced with Docker (using the same docker images / environment we use on bitrise.io)? SERIOUSLY?

Build log

error An unexpected error occurred: “/Users/vagrant/git/node_modules/core-js: /Users/vagrant/git/node_modules/core-js/package.json: Unexpected end of JSON input”.

Please copy paste the build’s bitrise.io URL here (or if the issue happens somewhere else then the full logs), or if you can’t share the url / log here then send the url or full log through a private channel (e.g. email - https://www.bitrise.io/contact ), with a link to the related Discuss issue.


closed #2

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.