cloudflare / serverless-registry

A container registry backed by Workers and R2.
Apache License 2.0
997 stars 36 forks source link

Auth failure results in 500 #41

Closed broady closed 2 months ago

broady commented 3 months ago

Using basic auth. Invalid usernrame/password returns a 500. This is only when the password is incorrect. An invalid username returns a 401.

  "exceptions": [
    {
      "stack": "    at UserAuthenticator.checkCredentials (index.js:4054:24)\n    at Object.fetch (index.js:5789:42)",
      "name": "TypeError",
      "message": "Input buffers must have the same byte length.",
      "timestamp": 1724285669558
    }
  ],
Error 1101 Ray ID: 8b6ea929a8cf393a • 2024-08-22 00:14:06 UTC
Worker threw exception