HTTP Request activity drops username

Hi there.

I’m using the HTTP Request quite often and for authentication i’m using the “Simple Authentication” in properties. My username and password are saved in a Credential in Orchestrator and thus the password is fetched as a secure string which I can only input that way and not directly in the HTTP Request Wizard.
However I’m experiencing, quite often, that the activity drops the username variable and then fails in authentication. That’s quite anoying. I don’t see a patern, it’s pretty random when it does it but it happens often! I then have to put in the variable again.

Is it a bug, or does any of you guys have a solution for this?

Hello @Kristine_BH

Does the username variable dissappear entirely from the Variables Panel or simply gets unassigned from the HTTP Request activity?

If the latter is the case, then perhaps drag in the HTTP Request activity again and fill it out from scratch to see if that helps.

Regards
Soren

Hi @SorenB.

No, it doesn’t dissappear completely. It’s just unassigned from the activity. It happens with every HTTP Request Activity I’m using in every project. So it doesn’t help to delete it and insert it again, I’ve tried that.

Ah okay.

Are you running the newest version of Studio and are all your dependencies up to date?

Studio version 2024.10.6 and yes - all dependencies are up to date.

I’m not sure how to update my Studio version. Do you think that could be it?

I would think that the dependencies are the most important thing in this case, but perhaps the Studio version could help.

The newest version can be downloaded from the following link, and you can simply run the installer and upgrade the existing.

https://download.uipath.com/UiPathStudio.msi

I’ll try with the newest version and see if the problem persists. Thanks so far.

1 Like

No problem.

To troubleshoot you could try and make a new .xaml file with a similar setup of the HTTP Request activity, and simply ignore it from publish.
Then keep an eye on this file when observing the error on the main HTTP Request activity.
This could give a clue to whether the error has something to do with the file or Studio/project related.

Regards
Soren

1 Like

@Kristine_BH

Most of the times this is observed when import is opened after giving variables..is that the case?

Alternately try to change the webapi package version and check if that works

Cheers

Hi Anil.

No, I haven’t used Import at any time for these. I’ve tried downgrading the webapi package and will see if that works.

1 Like