Flow designer Rest API call with Basic auth. report auth failed, but works in Postman

William Mo
Tera Contributor

I am trying to use Flow Designer Rest Step to call a API with basic auth. Here is the result from Postman. It is working fine.

find_real_file.png

Here is the snapshot in the flow designer

find_real_file.png

 

find_real_file.png

 

here is the API response

find_real_file.png

could anyone share some ideas?  and how could I retrieve the header info in the header after the call returned successfully? 

 

5 REPLIES 5

Maik Skoddow
Tera Patron
Tera Patron

Hi

why do you use a MID server? Is it really necessary?

Kind regards
Maik

the API host is a internal server. so I use MID server to access that

Richard Hine
Tera Guru
Tera Guru

Looks like you need to add the credential to the request as it is not automatically being used.

According to the Zerto documentation, you need to an Authorization header with value of 'Basic {credential}'

You can drag {credential} from the 'Credential Value' variable data pill from your REST step and it should work.

As an aside, I would always advocate using Connection and Credential Aliases rather than define inline connections, it means you don't need to change/release the Action each time you want to connect it to a different URL.

Hope this helps,

Richard

Thanks. I did use connection and credential aliases, but it didn't work. so I try to use inline to do some debugs.

I tried following, but still the same error.

find_real_file.png