Closed KentonParton closed 4 years ago
Hi @KentonParton.
Thanks for reporting bug and for trying out nanoexpress
.
Here are some tips for you:
HttpResponse
from Validation
handler for avoiding like these issuesnanoexpress
instance does not required unless you are doing something with that instance@KentonParton Can you check update, it is fixes your application issue?
@dalisoft Thank you for your quick response. The update solved this issue.
Thank you for confirm. Have a nice day!
What version of nanoexpress are you using? 1.1.12
Context I am wanting to validate the structure of the request that is being send to "/uploadSchema". After the validation errors are returned, an "UnhandledPromiseRejectionWarning" is showing in the terminal. The structure of the request is incorrect deliberately.
Request being sent
Expected request structure
Your code
Response
After a few seconds the following was displayed in the terminal:
What results did you expect? I expected there to be no UnhandledPromiseRejectionWarning. I am not sure if this is due to a mistake on my end; however, I see that a recent issue was closed which I believe covers the same issue.