Question Regarding Dynamic Endpoint in HTTP Request

Hi!

This is a follow-up to a previous post of mine regarding an API Call. We were successful in connecting this API and getting the data. I am now trying to figure out how to make the endpoint dynamic. I know it sounds basic, but for some reason it is giving us this error code when trying to incorporate variables into the endpoint string:

image

As you can see, we intend to use this HTTP Request in a loop but for some reason, it is giving us the error above whenever we put a variable in the endpoint string:

image

Has anyone else encountered an issue like this? I have looked at the forum and cannot see any instances of this happening.

@nico.marucchi

Can you try to print the end point url before http request activity and check it once. And also please make sure there are no spaces in the variables you are passing into the Endpoint url.

1 Like

Thanks for the input, Ganta! I did try this along with various other ways, but let me try this again and show you the results.

It still gives me the same error. I checked the string and it looks fine to me.

image

1 Like

Hey @nico.marucchi

So you need to pass the endpoint itself to the HTTP activity as a variable right ?

So when you made a request with static endpoint you were using HTTP activity or the Orchestrator HTTPS?

Thanks
#nK

1 Like

Hi! This is just the standard HTTP activity. I believe I diagnosed the issue where one of the Robots was not reporting its logs. I am still investigating but will let you know what I find out. I was a bit shocked that it kept erroring out there and this would make sense if it was an issue unrelated to the endpoint concatenation.

1 Like

Done @nico.marucchi

1 Like

@Nithinkrishna @lakshman Will purging the logs in Orchestrator allow us to get results? I can confirm the issue here seems to be unrelated to the string as half our bots are giving us perfect results while the other half are giving us error messages. Seems like we will need to purge the logs but I have not done this before.

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