Open KLarpen opened 11 months ago
Please review @tshemsedinov . The PR proposal may be created only based on an answer to the last question.
The question was reviewed at the community call 133 14.12.2023. Decision: the right behavior in the documentation, so it must be reported as issue into code repository impress
or metacom
.
The documentation section Error-handling guidelines contains the sentences https://github.com/metarhia/Docs/blob/3f3b82e5430687fa48b1b7b003a4eabe416051ae/content/en/LAYERS.md?plain=1#L163-L166
Trying to reproduce this behaviour with Example project brings unexpected results. The way I had tried:
api
WebSocket request and there on Messages tab. Check thatauth/signin
request was successful with the statuslogged
.await api.example.customException();
{message: "Custom ecxeption", code: 12345}
despite documentation says that unknown error code will generate: "Internal Server Error" with "code":500.application/api/example/customException.js
to404
. Save and check that update has been reloaded by server.await api.example.customException();
{message: "Custom ecxeption", code: 404}
instead of automatic replacement of the message with "Not found" as being told at the documentation.What is the desired latest behaviour: that mentioned in documentation OR that actually works in Example?