06-10-20 05:27 PM
I am referring to the page:
https://bpdocs.blueprism.com/bp-6-8/en-us/helpResourcePCCommands.htm?tocpath=Interface%7CAdvanced%20options%7C_____4
I can see that BP provides various resource PC commands including creating and running a session via api.
To run a process in resource PC we need to pass a token which we will get via the /getauthtoken command as mentioned in the above page.
But I am getting an invalid parameter error when I pass the request as below:
Request : http://192.168.0.123:8181/user%20name%20admin&password%20admin321&getauthtoken%20C7FXXXXX-XXXX-4804-9AAD-5284E5XXXXXX%20admin321
C7FXXXXX-XXXX-4804-9AAD-5284E5XXXXXX is the user ID
Response :
USER SET
USER AUTHENTICATED
INVALID PARAMETERS
Can someone tell me what is wrong here?
I have also checked various other options below:
Request:
http://192.168.0.123:8181/user%20name%20admin&password%20admin321&getauthtoken%20name%20admin%20admin321
Response:
USER SET
USER AUTHENTICATED
Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
I have passed the user name instead of user ID still it does not work.
Can someone help me with this?
Answered! Go to Answer.
07-10-20 01:05 PM
07-10-20 01:05 PM
07-10-20 03:08 PM
@ewilson . Thank you for the information. It works now. It would be great if the online documentation can be updated as everyone may land here by default.
Thanks a lot.
18-06-21 09:06 PM
getauthtoken 08375907-XXXX-ZZZZ-XXXX-72DD22798B7C admin admin123
somites i also get the error that the dashes are in the wrong position for GUID parsing.
21-06-21 06:20 PM
21-06-21 10:32 PM
getauthtoken 12A064FB-XXXX-XXXX-AAAA-E64450310013 58703521-XXXX-XXXX-9352-A1E2416EAD26 admin
The response to this request was:
Object reference not set to an instance of an object.
Any idea what could be wrong?
Thank you!
------------------------------
S D
consultant
NoName
Europe/London
------------------------------
21-06-21 11:12 PM
21-06-21 11:26 PM
http://xxxxx:XXX/getauthtoken%2012A064FB-XXXX-XXXX-XXXX-E64450310013%2058703521-XXXX-XXXX-XXXX-A1E2416EAD26%20admin
Http response I get:
Object reference not set to an instance of an object.
Any idea what could be wrong? Or it is a bug?
Update:
I tried the http-request solution for two different BP versions: For 6.4. the error occurs.
For 6.9 this solution seems to work.
------------------------------
S D
consultant
NoName
Europe/London
------------------------------
21-06-21 11:51 PM
22-06-21 12:07 AM
http://xxxx:8181/deleteas%20GENERATEDTOKEN%20SESSIONID