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.

Response Code 404 (Not Found) with local dependencies

See original GitHub issue

Hello all,

NO PROBLEM WITH NODE, SEE UPDATE BELOW

I have recently installed Node version 14.19.2 in my WSL. Since upgrading to this version, I can no longer create a licence report because the command returns a 404 Not Found Error.

In another WSL instance with Node version 14.18.2, the creation of the report works perfectly. I have attached 2 screenshots with debug logging.

Can you please take a look at the problem? Downgrading my WSL instance to a version <14.19 is unfortunately not an option.

Many thanks and kind regards Johannes

Output on Node 14.19.2: license_14 19 2

Output on Node 14.18.2: license_14 18 2

UPDATE

Issue has nothing to do with Node.

I found the problem. I have a local dependency in my package.json file: ... "local-dep": "file:ext/local-dep-2.13.6.tgz", ...

When I remove this dependency the generation of the license report works perfectly.

I also tried it with a colleague in his WSL, who was still using an older version of licence-report. The generation worked perfectly for him.

The output of the generated license-report with the local dependency was like this - which was OK for us: local-dep,n/a,n/a,n/a

After updating to the current version of license-report, he also got the “404 Not Found” error.

The problem has nothing to do with the Node version. The problem seems to be that license-report in the new version can no longer handle local dependencies. Unfortunately, I had installed different versions of license-report on my WSL instances and therefore immediately suspected that it was due to the Node version.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:12

github_iconTop GitHub Comments

2reactions
BePo65commented, Jun 1, 2022

That’s the minimum requirement - I just didn’t expect that there are “invalid” uris in the package-lock.json as I did not think about local dependencies - my fault.

So Step 1 is to catch errors and step 2 is to evaluate local dependencies.

But give me some days - I do not have the time for that the next few hours 😄

0reactions
thisisevanfoxcommented, Jun 14, 2022

Hi @BePo65,

can you please look into this again? The latest version on npm is still 5.0.2. Thank you.

Kind regards Johannes

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting '[Errno 14] HTTPS Error 404 - Not Found' ...
Generally, the [Errno 14] HTTPS Error 404 - Not Found error is observed due to inconsistent metadata of the repositories or if the...
Read more >
Yarn encounters 404 error installing local and remote ...
I'm encountering the following message when installing packages: YN0001: │ HTTPError: Response code 404 ( ...
Read more >
Bitbucket Server or Data Center displays a 404 error when ...
When attempting to access a repository, Bitbucket displays a 404 error page stating that " No repository with slug <REPOSITORY_SLUG> exists ...
Read more >
An unexpected error occurred: Request failed \"404 Not ...
I have a package which only depends on modules from the npmjs repository. They are predominantly public repositories, however 5 of them are ......
Read more >
20.04 problem updating/installing from local repository ...
list contents and a web browser pointing to the repository contents. Multiple errors indicate 404 not found which is appropriate for the file ......
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