Error on creating intent after createbotlocale

0

I am getting this error when I try to create bot locale and then intent after that, how can I handle this in java please ?

Create operation can not be performed on Intent when BotLocale is in Creating state. Retry your request after the BotLocale is created

I understand what it means but not sure how to handle this in the code. Can you please help ?

I am using java sdk lexv2.

질문됨 2년 전332회 조회
1개 답변
0

A bot locale is not immediately available after successfully invoking the CreateBotLocale API. The "botLocaleStatus" attribute in the response of CreateBotLocale and DescribeBotLocale will tell you the current status of the bot locale. You need to verify that the bot locale is in a valid state (NOT_BUILT) after invoking CreateBotLocale to successfully create intents in that bot locale. In the Java SDK, you can do this in two ways:

  1. Create a loop to poll for the status of the bot locale using DescribeBotLocale API
  2. Use a SDK waiter to poll that the bot locale is created and available. More info on SDK waiters
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠