I am getting error while generating token and using the same in subsquent API requests #2185
shiv-vsics
started this conversation in
Artillery
Replies: 2 comments 1 reply
-
Hi @shiv-vsics From the test you shared it seems the following part is where the issue happens: capture:
- json: $.access_token
as: token Can you check if the response from your API returns the token you are trying to capture in the exact format you are trying to capture it in? So it should be returning a JSON object with |
Beta Was this translation helpful? Give feedback.
1 reply
-
I get the same error. Please answer. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Could you please help me in this may be?
I have having one query related to how to generate token and then use the same token in subsequent request.
Below is given sample file code , i want to generate token from one token endpoint and then want to use the same in API endpoint. In the script which i written is givnig me error like:
return done(new Error('Failed capture or match'), context);
Error: Failed capture or match
test1.txt
test1.txt
Could you please help me it ? like why i am getting this error ?
Beta Was this translation helpful? Give feedback.
All reactions