question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

invalid protocol when undefined

See original GitHub issue

Expected Behavior

before the new version published today, running lockfile-lint against my projects was passing.

Current Behavior

now seeing several projects failing with lots of failures similar to

detected invalid protocol for package: abbrev@1.1.1-8f0b92d6fc7847f731964a4f3ab3b7c1e53edee5
     expected: https:
     actual: undefined

https://travis-ci.com/travi-org/matt.travi.org/builds/147288295#L340-L2012

not sure if this was intentional with recent changes, but seems unexpected.

Possible Solution

Steps to Reproduce (for bugs)

  1. Clone from https://github.com/travi-org/matt.travi.org
  2. git checkout greenkeeper/lockfile-lint-3.0.10
  3. nvm install
  4. npm install
  5. npm run lint:lockfile

Context

Greenkeeper PRs to several of my projects failed

Your Environment

  • Library Version used: v3.0.10
  • Node.js version (e.g. Node.js 5.4): v10.18.1
  • Operating System and version (desktop or mobile): macOS Catalina 10.15.2

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
travicommented, Feb 4, 2020

fixed for me as well. thanks for the quick resolution 😃

1reaction
lirantalcommented, Feb 4, 2020

@fregante @travi thanks for opening the issue quickly, I fixed the regression with PR #59

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid protocol: undefined - NodeJS error on POST request
The issue here is that request should not take the body as the second parameter. request.post(post_options, function(err, res, ...
Read more >
API Error 400: Invalid request: {"protocol":["undefined is not a ...
Hi frined, today my app started giving errors while performing the purchase of some nfts. I upgraded the version 3.0.4 to version 4.0.2....
Read more >
Invalid protocol: undefined - NodeJS error on POST request
The issue here is that request should not take the body as the second parameter. request.post(post_options, function(err, res, resBody) is correct and the ......
Read more >
URL | Node.js v19.3.0 Documentation
Invalid URL protocol values assigned to the protocol property are ignored. ... Otherwise, if urlObject.protocol is not undefined and is not a string, ......
Read more >
How to consume on-prem services in public Node.JS API ...
Hi Prashant H Suryawanshi Patil ,. With the same approach i am getting 'Invalid protocol: undefined', can you advise on the below? Like...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found