1) Give a description of the problem
im trying to do web request to retrieve a JSON response.
I have tested the URL and headers in postman and it works, retrieves a JSON output format correctly.
putting the same URL and headers into a web request and it fails with an error.
Type : Make a web request.
URL expression accountId is a valid Id i have obfuscated)
https://api-wired-prod-1-euw1.wrd-aws.com/commerce/v1/accounts/accountID/vehicles?country=GB
Method : Get
Send Variables : none
Header: (both obfuscated but valid)
ââapikey: âKAMEREON_API_KEYââ,âx-gigya-id_token: âx_gigya_id_tokenâââ
i have tried both of the above as Auth Headers as well but none seem to make any difference.
also just tried the same thing on https://reqbin.com/ and it works fine.
*note the x-gigya-id_token
is a string variable with the value of a JWT token.
2) What is the expected behaviour?
JSON response should be returned and attributes available under the $response variable.
- but the http response is failing.
3) What is happening/not happening?
âError executing external web request: groovyx.net.http.HttpResponseException: Unauthorizedâ
**4) Post a Green Snapshot of the piston!
i could post an image, but the make a web request
in the main piston view doesnt show all the options only the main URL and method type.
5) Attach logs after turning logging level to Full
log extract⌠- i have just included the part where he web request is made and obfuscated the account ID⌠- should the header options be shown in this log ?
+800ms | ââSending external web request to: api-wired-prod-1-euw1.wrd-aws.com/commerce/v1/accounts/accountID/vehicles?country=GB |
---|---|
+848ms | ââError executing external web request: groovyx.net.http.HttpResponseException: Unauthorized |
+849ms | ââExecuted virtual command httpRequest (51ms) |