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
Apparently the workaround is to specify the path prefix (like /echo/{msg} and /echo) or setting a special token for the default value (like /{msg} vs /_) -- but is it possible to allow the path like this?
The text was updated successfully, but these errors were encountered:
I'm not sure what the correct behavior is here but it definitely isn't to crash. In your example if someone were to navigate to /, what would you expect the gRPC request to be since msg isn't defined? Just {"msg":""}?
Input proto:
This is for sending a message optionally, but it seems grpc-gateway doesn't accept the path like this? protoc fails with the following error:
An empty string (
get: ""
) goes into the panic:Apparently the workaround is to specify the path prefix (like
/echo/{msg}
and/echo
) or setting a special token for the default value (like/{msg}
vs/_
) -- but is it possible to allow the path like this?The text was updated successfully, but these errors were encountered: