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

ERR! Cannot read property 'status' of undefined

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 4.0.0
    • 3.1.0
    • Yes
    • Maintenance 7
    • 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

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD