I am trying to receive meber data of the iracing API. It needs to authenticate (https://members-ng.iracing.com/auth) to retrieve an ssoCookieValue wich i need to set as a value for a cookie in the following GET Request .
Authentication is no problem but in the GET Request i receive an 401.
What is the error message (if any)?
From HTTP Request
Error code
401
Full message
401 - "{\n \"error\": \"Unauthorized\",\n \"message\": \"Requests must be authorized.\"\n}"
1. Convert the username (email) to lowercase
2. Concatenate the output from step 1 to the end of the password
3. Create a SHA256 hash of the output from step 2 (this should be the binary format)
4. Encode the output from step 3 in Base64
5. Submit the output from step 4 in the `password` field of the login form
All this steps where needed in the first POST Request to authenticate and they were implemented. This is not the node that is failing
I also did find that Postman documentation but under Authorization the Option “inherit from Parents” is selected. Soooo i don’t really see how it is done.
If you have a moment, please share how you solved it.
Assuming you just needed to add the Response option on the HTTP Request node, enable the Include Response Headers and Status part (and maybe also the Never Error part), and then parse the value of ssoCookeValue from the set-cookie header in the response.