That isn't your base url, that's your authentication url....your base url is the one you would call to make your rest call....just remove jwt/login and you might be good.
Thanks for your reply.
I am still getting the same error even after removing jwt/login.
This working fine when tried with Postman.
What does a filter log show?
These are the logs for rest call.
I have tried with alternate method using custom headers
The REST call is successful. But When I try to map response i.e. get sessiontoken it throws 'Unknown system error (ARERR 8790)'
And arapi logs shows JsonParseException as ARLogin REST call gives us sessiontoken in text
Is there any way to accept plain text from REST call response?
1 of 1 people found this helpful
it seems like you are making authentication calls to get a token, instead of using the process to allow authentication to happen as designed, and make the call you want the results from.
In relation to the parsing error...no, it's expecting a JSON response, which is why you don't make a call directly to the authentication...you make a call to get the results you want.