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
Request Incoming =========>
[RuntimeException] Left String type could not be a literal in main.vcl at line: 4, position: 14
<========= Request finished
Error field in simulator output should contain the actual error message.
Cause
This is happening because the simulator output struct Error field is the type error. The go builtin error type does not implement json.Marshaler and does not have any public fields so the resulting json output is an empty object.
The text was updated successfully, but these errors were encountered:
Kind of proposals
Describe the problem
When there is an interpreter error while handling a request in the simulator the error information is not properly marshaled to json.
VCL code that cause the problem / reproduceable
Expected behavior
Error field in simulator output should contain the actual error message.
Cause
This is happening because the simulator output struct Error field is the type
error
. The go builtinerror
type does not implementjson.Marshaler
and does not have any public fields so the resulting json output is an empty object.The text was updated successfully, but these errors were encountered: