HttpRequest not working as intended

Dear UiPathers

I have a problem where I get the following error “Could not generate view for HttpClient”. I need to perfom some POST and GET requests to an API using UiPath Studio, however, it is impossible since I can’t get my HttpRequest activity to work correctly.

Any help is greatly appreciated. Have a wonderful Monday

Yours sincrerely…
Nemanja. V

Hi @nmjvk

Could you restart UiPath Studio and check?

Dear @V_Roboto_V

I did, and that did not solve anything.

@nmjvk,

What’s the Studio version you are using?
Also, have you tried deleting existing and readding the activity?

dear @ashokkarale

My current Studio version is 2023.4.1

Regarding “ried deleting existing and readding the activity” I dont know what you quite mean? I have tried deleting the whole project and creating a whole new one, yes, if thats what you are asking. The same error appears.

@nmjvk, yes that’s what I was saying.

I found a older thread with similar issue and the user had resolved the issue by updating the Operating system. Can you check on that front as well.

Dear @ashokkarale

I already read that thread and it did not work for me. I have Windows 11 :((

hello @nmjvk have you tried uninstalling the WebAPI activities packages then reinstalling? Do you have this problem across all projects or just this one?

maybe try creating a new project?

Can you share here the main.xaml and project.json that is causing the error?
Do you get the error right after you add the activity to the workflow or only after you configure it?

Cheers

So usually this means there is an error in the .xaml but we need more information.
Firstly we need a screenshot of your dependencies in the project pane to make sure they are loaded correctly.
Next there should be a message in the output panel indicating some errors, we need those.

Once those are shared to issue should become clearer.

Hello everyone

Sorry for the delay in response. I get my HTTP request to work when I downgrade my “UiPath.WebAPI.Activities” all the way down to 1.18.0. Running it at 1.21.0, 1.20.0 or 1.19.0 does not work. Can anyone replicate this and confirm if this is true or not?

Also, here are all my dependencies:

Have a wonderful day forward.

Yours sincerely…
Nemanja. V