Hello I’m using openAI API in my workflow with valid key (plenty of prepaid credits), the process failed after running for 2 hours and I got "Generate Chat Completion: Unauthorized - An invalid connection id, and/or Bearer token provided. " error msg.
when I restart everything works again. Just want to see if this is normal or is there something I could do to prevent this from happening again. thank you
UiPath got GenAI activities which supports multiple models including OpenAI.
You can leverage this to avoid these errors.
Thanks,
Ashok ![]()
Thank you! so the error msg is a bug or something? given the key is valid and working?
It’s due to your authentication token is getting expired every 2 hours.
Add logic to get the bearer token once you face this issue.
Thanks,
Ashok ![]()
thank you so much for your quick response!!
@ashokkarale I couldn’t find the GenAI package, how can I install it please?
You can refer this video for getting started with UiPath GenAI activities.
Do let me know if anything needed.
Thanks,
Ashok ![]()
thank you so much! I set up the connector and installed the package but I couldn’t find those activities in studio, please help?
Check if the package is installed - Integration Service Activities
Refer this sample code.
GenAI Demo.zip (33.9 KB)
Thanks,
Ashok ![]()
Thank you so much for your kind help!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
