HTTP plugin: serve_http
: invalid multiple values to key date
in tree
#1618
Replies: 3 comments
-
Hey @FluffyDiscord 👋🏻 |
Beta Was this translation helpful? Give feedback.
-
You may override internal error code to any code you need. I'm against the practice of silently skipping errors. Since RR cannot parse the payload with errors, errors should be returned explicitly. Another question is: How to handle duplicates? As far as I remember, according to the RFC 7578 there is no clear answer on that. |
Beta Was this translation helpful? Give feedback.
-
I'm moving this issue to P.S. Please attach a curl/postman request to your issue to clearly reproduce this behavior.. |
Beta Was this translation helpful? Give feedback.
-
No duplicates 🥲.
What happened?
HTTP server seems o fail to handle the following payload:
I does make sense as this is user error, but it should not return status code 500 with plaintext message
serve_http: invalid multiple values to key 'XXX' in tree
, but instead silently skip that invalid key. This error is not logged inside PHP since it wont even reach the PHP runtime.If this is intended behavior, please add option we can toggle and silently skip this error. I would rather get half of the input that I can validate than nothing at all.
Version (rr --version)
2.12.3
How to reproduce the issue?
payload source, POST FormData
Relevant log output
No response
Beta Was this translation helpful? Give feedback.
All reactions