Question
Lantiqx Systems India Private Limited
IN
Last activity: 1 Nov 2024 8:07 EDT
Error while using Pega Knowledge Buddy Gadget (Constellation - Community Edition)
Hi,
I was successfully able to add the Pega Knowledge buddy component into my application on community edition instance.
Added the Knowledge buddy widget in one of the landing pages. Widget is visible on UI but when we ask a question it is throwing an error. Seems some issue with the OAuth client creation.
I have done all the required configurations after importing the component like updating DSS, Authentication profile and app studio configurations.
Error on UI: An internal error occurred while fetching the results using data view. Please contact administrator.
Error in tracer: D_KnowledgeBuddy_Query : Access token endpoint invocation failed : {ErrorMessage=Response status : 401 , statuscode=401}
Logs: com.pega.pegarules.pub.PRRuntimeException: Unable to obtain access token for client details in authentication profile configured for connector. Please check the logs for more details.
Please do let me know if I have missed any other configurations to be done.
I have attached all the screenshots in the document.
Thanks in advance
-
Reply
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 31 Jul 2024 7:06 EDT
Pegasystems Inc.
GB
Hi @Nazia Firdose - I am guessing you are not licensed for Knowledge Buddy. If you are licensed then you will be provisioned with a vector store service which is a requirement for using Buddy. If you are licensed, please file a ticket with support. Note: Buddy ONLY works on a Cloud-3 instance. There is no other place to install a buddy and have it supported.
Updated: 19 Jul 2024 8:49 EDT
Pegasystems Inc.
GB
@Nazia Firdose can you confirm your Pega Community Edition version? I believe the community trial edition is in INFINITY-24.1.0.
Did you download the gadgets from the Marketplace here?
Pega Knowledge and Buddy Gadgets
You have provided a very clear document - hopefully another forum user will be able to help you further.
Pega GenAI™ Knowledge Buddy '24.1
Configuring the implementation application for widget integration
Enabling Pega Knowledge Buddy for an IVA
@Nazia Firdose can you confirm your Pega Community Edition version? I believe the community trial edition is in INFINITY-24.1.0.
Did you download the gadgets from the Marketplace here?
Pega Knowledge and Buddy Gadgets
You have provided a very clear document - hopefully another forum user will be able to help you further.
Pega GenAI™ Knowledge Buddy '24.1
Configuring the implementation application for widget integration
Enabling Pega Knowledge Buddy for an IVA
Below the GenAI answer based on the info you provided:
Based on the error messages you provided, it seems like there might be an issue with the OAuth setup for the KM_OAuth_EndUser and KM_OAuth_Admin authentication profiles.
Please verify the OAuth setup for these profiles. Make sure that the client secret, access token endpoint, and revoke token endpoint details are correctly updated in these profiles.
Also, ensure that the system is HTTPS enabled and try restarting the system. If the issue persists, you might need to re-generate the client secret for these profiles and update them again. If you're still facing issues, please check the PegaRules log for more detailed error information.
⚠ This is a GenAI-powered tool. All generated answers require validation against the provided references.
Trobleshooting Knowledge widget issues
Unable to call the Pega REST Serivce with OAUTH 2.0 enabled
-------------
Note: I am aware of a bug which generates the same error as you experienced, which is not fixed until Pega 24.1.1 via BUG-858237.
*** It may be totally unrelated to your issue **.
This bug is that a runtime exception was generated when trying to log in with OAuth2, specifying "Unable to fetch token page using key ac_pega-authorizationcode-openid profile email". Investigation traced this to an additional space character added after email in the key, and it has been resolved by adding trim to the scope while constructing the key.
23.1.2: BUG-858239
24.1.1: BUG-858237
See the Pega Platform 24.1.1 Patch Resolved Issues
----------------
@JamesCarstairs can you help with this?
Lantiqx Systems India Private Limited
IN
Yes, I have downloaded the 24.1 version from the same place which you have mentioned.
Thanks for your response.
Accepted Solution
Updated: 31 Jul 2024 7:06 EDT
Pegasystems Inc.
GB
Hi @Nazia Firdose - I am guessing you are not licensed for Knowledge Buddy. If you are licensed then you will be provisioned with a vector store service which is a requirement for using Buddy. If you are licensed, please file a ticket with support. Note: Buddy ONLY works on a Cloud-3 instance. There is no other place to install a buddy and have it supported.
Lantiqx Systems India Private Limited
IN
@JamesCarstairs Thank-you for your response.
I am trying to use Buddy on community edition itself. Is that not considered as Cloud instance?
Pegasystems Inc.
GB
@Nazia Firdose no I don't believe it is considered 'licensed'. See the instructions in my previous post about GenAI enabling.
cc @MattE
Pegasystems Inc.
GB
@Nazia Firdose You must have a license and be provisioned your own hardware in order to use buddy.
Novitates
IN
@Nazia Firdose have you got the solution for this ? have you tried using post man ?
Please let us know so that i will help others who face the same issue.
Thanks,
Vikram
Updated: 1 Nov 2024 8:07 EDT
Pegasystems Inc.
GB
@Vikky22 see SME response: "You must have a license and be provisioned your own hardware in order to use buddy."