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
It appears that errors thrown in try Service_OperationSession(handler:handler, provider:provider).run(queue:queue) simply never return a result whatsoever to the client, instead of returning the appropriate StatusCode. Should this be changed, to at least let the client know that something bad happened instead of just going radio silent? It might also be nice to have the option to e.g. return custom status codes or messages to the client. A simple approach could simply try sending a response with an error status code in the catch block.
The text was updated successfully, but these errors were encountered:
(I've found #10 and #88 on this, but no further information, and not sure whether these are referring to this.)
Looking at the generated server code (see
Plugin/Templates/server.swift
) surfaces the following handler code:It appears that errors thrown in
try Service_OperationSession(handler:handler, provider:provider).run(queue:queue)
simply never return a result whatsoever to the client, instead of returning the appropriateStatusCode
. Should this be changed, to at least let the client know that something bad happened instead of just going radio silent? It might also be nice to have the option to e.g. return custom status codes or messages to the client. A simple approach could simply try sending a response with an error status code in the catch block.The text was updated successfully, but these errors were encountered: