openSUSE / npm-localhost-proxy

A localhost proxy serving NPM tarballs allowing npm install in a non-networked system.
GNU General Public License v3.0
3 stars 3 forks source link

ERROR/Bad Method requests showing in the log #3

Open jengelh opened 3 years ago

jengelh commented 3 years ago
[   25s] + local-npm-registry /home/abuild/rpmbuild/BUILD/documentserver-6.3.2.g2/modrepo install
[   29s] Serving 1158 packages
[   29s] { address: '127.0.0.1', family: 'IPv4', port: 43157 }
[   29s] request: (ERROR)/npm
[   29s] request: (ERROR)/npm
[   31s] request: (bad method)/-/npm/v1/security/advisories/bulk
[   31s] request: (bad method)/-/npm/v1/security/audits/quick

Is this a problem? Should the user do anything? I can't tell. Perhaps the log messages can be prefixed with "WARN" or "ERROR" to distinguish between the severity.

AdamMajer commented 3 years ago

Hi

This is not a problem. It just means there was no successful service to these audit endpoints. npm will ignore this problem and continue. I think the request is a POST hence the (bad method) -- only GET are served.

But I think there is a configuration to disable querying this or the npm version. I will investigate.