Imported Google Group message. Original thread at: Redirecting to Google Groups Import Date: 2016-01-19 21:31:24 +0000.
Sender:Saheed Chavarría
.
Date:Tuesday, 17 November 2015 02:36:49 UTC.
I created a virtual path (the sample included with Tyk) and tested the endpoint from JMeter with several threads ( 2 or more) sending at the same time and I got problems where it keeps telling me variables in JS are undefined, for example the session or request object (this is when I write a simple function that just returns a fixed value).
As I said, it is the included example “thisTest” that I used, and also wrote my own (a very simple one).
I’ll be very happy if you have any help for me.
thanks in advance.
INFO[1543] [JSVM] [LOG]: [Virtual Test] Making Upstream Batch Request
INFO[1543] [JSVM] [LOG]: [Virtual Test] Making Upstream Batch Request
INFO[1543] [JSVM] [LOG]: [Virtual Test] Making Upstream Batch Request
INFO[1543] [JSVM] [LOG]: [Virtual Test] Making Upstream Batch Request
INFO[1543] [JSVM] [LOG]: [Virtual Test] Making Upstream Batch Request
ERRO[1544] Failed to decode virtual endpoint response data on return from VM: invalid character ‘u’ looking for beginning of value
ERRO[1544] → Returned: undefined
ERRO[1544] Failed to decode virtual endpoint response data on return from VM: invalid character ‘u’ looking for beginning of value
ERRO[1544] → Returned: undefined
ERRO[1544] Failed to decode virtual endpoint response data on return from VM: invalid character ‘u’ looking for beginning of value
ERRO[1544] → Returned: undefined
INFO[1574] [JSVM] [LOG]: [Virtual Test] Making Upstream Batch Request
INFO[1574] [JSVM] [LOG]: [Virtual Test] Making Upstream Batch Request
ERRO[1574] Failed to decode virtual endpoint response data on return from VM: invalid character ‘u’ looking for beginning of value
ERRO[1574] → Returned: undefined
INFO[1574] [JSVM] [LOG]: [Virtual Test] Making Upstream Batch Request
INFO[1574] [JSVM] [LOG]: [Virtual Test] Making Upstream Batch Request
INFO[1574] [JSVM] [LOG]: [Virtual Test] Making Upstream Batch Request
ERRO[1574] Could not decode batch request, decoding failed: invalid character ‘u’ looking for beginning of value
ERRO[1574] Failed to decode virtual endpoint response data on return from VM: invalid character ‘u’ looking for beginning of value
ERRO[1574] → Returned: undefined
ERRO[1574] Failed to decode virtual endpoint response data on return from VM: invalid character ‘u’ looking for beginning of value
ERRO[1574] → Returned: undefined
ERRO[1574] Failed to decode virtual endpoint response data on return from VM: invalid character ‘u’ looking for beginning of value
ERRO[1574] → Returned: undefined