Error code 500 http request

Hello all i have auth with username /password
its works in postman, I pass the parameter in the body

{
“userId”: “user”,
“password”: “password”
}

but when i try from UiPath i always get 500 error!
i tried to add them as parameter and in the body but stuck with this error.
any work around this!
BR/Hazem

maybe you can share with us the CURL, which can be generated with POSTMan. So we can check for additional needed fields e.g. Headers…

Thanks for answering i found a away around it but not the solution
seems i have a wrong formatting if i read it from a file as text now its working,

but not sure how to format it correctly

curl --location ‘https://abc.com/oauth/login
–header ‘Content-Type: application/json’
–data ‘{
“userId”: “ENTER-USERNAME-HERE”,
“password”: “ENTER-PASSWORD-HERE”
}’

its stirghtforward !

When porting this curl to a HTTP Request
we ensure that all settings are configured
About the body payload - we ensure that a valid JSON is passed and keep in mind

"{""userId"": ""user"",""password"": ""password""}"

when defined within the property field

  • one line
  • inner escapes of " with an additional

It was a funny joke about the url. But for not conflicting with the Forum Guide Lines we will not follow up the case with this URL

EDITED:

  • raw formatting the CodeStatement
  • URL tracking: Above URL was changed from a non valid one to an acceptable one

Typooooo sorry for that,

:rofl: :rofl: :rofl:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.