HTTP Request: An error occurred during encode or decode operation

Description

Hi All, My requirement is to extract my Aladdin user id/password from CyberArk ID Vault. I have the safe created in ID vault where my id/password, VDI name and Windows certificate is added. I’m sending a GET request using “HTTP Request” activity and getting-" An error occurred during encode or decode operation".
Same GET URL if I hit through my browser, I’m getting proper expected JSON Response but same hitting through UiPath is erroring out. Any solution. Please help.

Link

Date

2024-07-17

Related UiPath products

Orchestrator

Hi @amuinfy

Can you try through Postman could be a header missing or some issues with headers

I’m not fully sure how to do that via POSTMAN, as since its GET request so there’s no BODY . While hitting through browser, I only need to select the imported certificate (in my local) and allow access to private key and then I get response

image
do you have this enabled and how is UiPath sending your cert and key in the headers?

Also go to the network tab of your browser under dev tools and check the headers payload etc for your get request emulate it in UiPath

image

Under “Http Request” Activity in UiPath, we have field to pass certificate location and its password.

cool. So i am assuming you are passing the cert path and a string or secure string password. Also the extensions of the cert are .pfx or.p12 encoding should be X.509

Hi All, Thanks for the responses. The issue was with the certificate. When downloading directly from the SNOW website something was going wrong with encoding . I got it emailed and the issue resolved.