npm / registry-issue-archive

An archive of the old npm registry issue tracker
https://npm.community
249 stars 47 forks source link

Search errors with "GET is not allowed" #332

Open arve0 opened 6 years ago

arve0 commented 6 years ago

When trying to get https://registry.npmjs.com/-/v1/search?text=npm the registry responds with

{"code":"MethodNotAllowedError","message":"GET is not allowed"}

and headers

:status: 405
Content-Type: application/json
Date: Sun, 27 May 2018 16:50:39 GMT
Server: cloudflare
Content-Length: 63
cf-ray: 4219fb4eab3242bb-OSL
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
allow: PUT, POST

Expected a response with status 200 as documented here.

arve0 commented 6 years ago

Works today. Cloudflare cache misconfigured?