Uploaded image for project: 'Magnolia CLI'
  1. Magnolia CLI
  2. NPMCLI-239

ERR! Cannot read property 'status' of undefined

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.1
    • Labels:
    • Release notes required:
      Yes
    • Sprint:
      Maintenance 7
    • Story Points:
      1

      Description

      A bug reported by multiple users in the comments of NPMCLI-227 makes jumpstart fail.

      It looks like there is some sort of HTTP error to begin with, but that the snippet handling errors fails early due to an undefined object, and we therefore do not know what actually happened.

      I would suggest making the following block safer with checks on err, err.response and err.response.status: https://git.magnolia-cms.com/projects/BUILD/repos/npm-cli/browse/lib/download.js#29-35

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              fgrilli Federico Grilli
              Reporter:
              mmichel Maxime Michel
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: