Why isn't my API endpoint not accepted?

Hello there,

I’m a huge fan of the video’s of Automate with Rakesh.
Now I want to pick up the playlist about API.
In the video (API | UiPath API Automation - YouTube) Rakesh uses the site https://randomuser.me/api/ as endpoint.
When I do the same I get an error when I fill in this URL: BC30198: ‘)’ expected; BC30035: Syntax Error and BC30451: ‘https’ is not declared.

What am I doing wrong?

@Bureau_G Hi can you show us you HTTPS Request Activity Properties.

@Bureau_G
I used same URL and I able to get data from it. did you preview it to just test.


Make sure you give your end points in double qoutes:

Hi @Bureau_G

When you are giving the API URL in the End point make sure to give the API URL in double quotes.

"https://randomuser.me/api/"

Give it like this.
image

Hope it helps!!

Thanks for your replies. I tried the Endpoint with and without quotes. In both cases I received the error message. Also when I used a variable as endpoint. But it is the same as going to the doctor: A week long your back is hurting like h*ll, but after you made an appointment with the docter the pain is gone. In this case after your answers the endpoint with quotes works just fine. Again: thanks for the replies!!!

2 Likes

Such a good reaction from you @Bureau_G.
Thanks for your applause.

Happy automation!!

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