cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Conversational AI - Postman request returns internal server error

0 Kudos

On a webchat while having a conversation with the bot, we are facing an error at random times.

We investigated the issues by doing postman request to the url 'https://api.cai.tools.sap/build/v1/dialog/' with the following parameters:

{

"message": {

"type": "text",

"content": "hello" },

"conversation_id": "32d3d9cb-47ce-4143-b2f6-1248dfc1a755" }

}

and it return us this error message:

{

"results": null,

"message": "Internal Server Error",

"error": {

"error_code": "Botler-Api - 0022",

"uuid": "a36ef54b-22ef-4a5b-908e-b1328c393a69",

"origin_error_code": "JTech - 0001",

"details": [] }

}

Just to make sure about the error we tried to make the same request with a new Conversation ID and it works fine. Therefore we think that the conversation ID expires. Any idea to make it work ?

lenastodal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Mohammed,

Thank you for visiting SAP Community to get answers to your questions. I am here to help you to get the most out of it.

First of all, I recommend that you familiarize yourself with https://community.sap.com/resources/questions-and-answers (if you haven't done so already), as it provides tips for preparing questions that draw responses from our members.
Please also make sure you're using all appropriate tags, so the right experts can find your question. Overall, the more details you provide, the more likely it is that members will be able to assist you. Should you wish, you can revise your question by selecting Actions, then Edit (although once someone answers your question, you'll lose the ability to edit the question - but if that happens, you can leave more details in a comment).

Finally, if you're hoping to connect with readers, please consider adding a picture to your profile. Here's how you do it: https://www.youtube.com/watch?v=F5JdUbyjfMA&list=PLpQebylHrdh5s3gwy-h6RtymfDpoz3vDS. By personalizing your profile with a photo of you, you encourage readers to respond.

Best,
Lena (SAP Community Moderator)

Accepted Solutions (0)

Answers (1)

Answers (1)

dtephan
Participant
0 Kudos

Hi Mohammed,

the error you experience is related to the specific conversation as a lot of skills have been started but where never completed. In this special case an error occurs in the CAI backend - I will address this to the corresponding team.

As a workaround, using a different conversation_id resolves that situation as you already figured out.

Sorry for the inconvenience and best regards,
Stephan

0 Kudos

Hi Stephan,

thank you for your answer.

How can I avoid this error to occur? Once the error appear, the user can not continue the chat.

Thank you again.

Best regards

Mohammed

dtephan
Participant
0 Kudos

Hi Mohammed,

it looks like your bot is making heavy use of goto-wait for user input but the user is then continuing with a different skill. This will slowly increase the size of the skill stack which then leads to the issue. So as a workaround I would recommend to build the bot in a way that it doesn't put "unnecessary" skill on the skill stack - however, this is very hard to tell without knowing the use case and internals of your specific bot.

Corresponding team is already informed and will work on the issue as soon as possible.

Best,
Stephan