Forum Discussion
yarl
New Contributor
yes I did.
against the user I gave user@domain
against the password- I gave the password (not long password)
against the domain- I left it blank and also tried giving the domain again
but same error
nmrao
7 years agoChampion Level 3
may be try the other format:
domain\user as username.
domain\user as username.
- yarl7 years agoNew Contributor
I did try that too. Thx
But same issue.
The reponse is coming back with 200-OK- if issue with user/pw then it should not return 200?
- richie7 years agoCommunity Herohi,
i had something very similar when attempting to run requests in readyapi! that failed even though the same request with the same creds worked in postman.
i got my request working by adding in an Authorization header parameter into the GET request despite the fact that i could see the Authorization header in the requests raw details.
so what i did.
1.run the GET request
2. check the raw details on the request and copy the Authorization headers value to clipboard.
3.add in a header parm with the name 'Authorization', paste the value from clipboard into the new header's value field.
4. save project and rerun the GET request.
i dont know if this will fix your problem but its analagous to the problem i had and the above fixed the issue for me.
cheers,
richie- richie7 years agoCommunity Heroalso relying on status codes for success is a little dodgy. i rely on an assertion for a 200 simply as a check to make sure the client and server are able to talk to each other and nothing else. you might expect a 401 or 403 for authentication failure but ig depends on your exception handling.
ive even had instances where ive had a 200 when i submitted an invalid request! that was due to rubbish exception handling.
cheers,
richie
Related Content
- 10 years ago
Recent Discussions
- 22 days ago