Virtual Path not working

Hi all - I’m rather new to this and I can’t seem to get the JS working in a Virual Path. I’m testing out a standalone setup with the gateway, dashboard, and pump. When I create a Virtual Path, I can’t for the life of me get anything to happen. All I see in the logs (no matter what I put into the JS window) is:

May 13 05:32:04 ip-192-168-1-4 tyk[1493]: time=“May 13 05:32:04” level=error msg=“Failed to decode virtual endpoint response data on return from VM: invalid character ‘u’ looking for beginning of value”

I’m unsure how to go about troubleshooting this and any tips would be appreciated.

That ‘u’ will be an “undefined”, you likely have a syntax error in your JS

Ok - it wasn’t a syntax error, but I was misinterpreting how this was setup. I wasn’t naming my function the same as the function name in the JS function to call input box. I’m not sure what I was thinking.

1 Like