You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[500] https://www.11ty.dev/authors/usernotfound/ (lowercase, no user found, trailing /)
{ "error": "json.filter is not a function" }
Not sure if there's a way when using serverless to force the :name path to be lowercase. And intercept missing users and redirect or show a more meaningful error.
I honestly haven't tried playing w/ serverless paths yet, but it's high on my list now that 1.0 is released. ❤️
Summary
Given a URL
https:///11ty.dev/authors/:name/
- if:name
doesn't exist, or:name
contains uppercase characters, the serverless function fails.Details
When there's a trailing slash, the HTTP status code is 500. The response is a JSON object, instead of HTML. The object looks like this:
When the trailing slash is omitted, the status code is 404, and the object looks like this:
Notes
This may be a problem with the internal Serverless plugin, but I decided to start from the beginning of the chain.
The text was updated successfully, but these errors were encountered: