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
is this issue currently blocking your project? (yes/no): no
is this issue affecting a production system? (yes/no): no
Context
node version: 20.6.1
module version with issue: 21.3.2
last module version without issue: ?
environment (e.g. node, browser, native): node
used with (e.g. hapi application, another framework, standalone, ...): hapi application
any other relevant information:
What are you trying to achieve or the steps to reproduce?
I have a valid, large JSON example that complies with a Joi spec, which I verified as follows:
// array of large json documentsimportinputExamplesfrom'../data/input-data.json'assert{type: 'json'}// joi schemaimportinputSpecfrom'../specs/input.js'// logs value and no errorconsole.log(inputSpec.validate(inputExamples[0]))
There is no error importing or validating the JSON example.
What was the result you got?
Sending the exact same validated JSON example to a Hapi endpoint results in a rapidly returned:
I have over-allocated maxBytes for payloads to ~100MB server-wide (the request body is ~1MB). I have enabled debug mode request logging (*). I have added logging to the route handler. I have added failAction handlers with logging to the route's payload and response validation configurations. The large request seems not to reach any of these handlers. Sending a much smaller JSON example to the endpoint works.
What result did you expect?
I expect the large request to reach the same handlers that the small request does, since they are both valid and under size limit.
The text was updated successfully, but these errors were encountered:
I did some analysis with Bourne.parse and JSON.parse. The issue is unrelated to request size and is only related to JSON string formatting. Consider the following examples:
Support plan
Context
What are you trying to achieve or the steps to reproduce?
I have a valid, large JSON example that complies with a Joi spec, which I verified as follows:
There is no error importing or validating the JSON example.
What was the result you got?
Sending the exact same validated JSON example to a Hapi endpoint results in a rapidly returned:
I have over-allocated maxBytes for payloads to ~100MB server-wide (the request body is ~1MB). I have enabled debug mode request logging (*). I have added logging to the route handler. I have added failAction handlers with logging to the route's payload and response validation configurations. The large request seems not to reach any of these handlers. Sending a much smaller JSON example to the endpoint works.
What result did you expect?
I expect the large request to reach the same handlers that the small request does, since they are both valid and under size limit.
The text was updated successfully, but these errors were encountered: