AmazonQ Java API issue - ApplicationId Not found

0

Hi, I setup the AwsCredentials with a token/secret and creating a QBusinessClient. I get this error: Application Id "...." not found for Customer Id "...". (Service: QBusiness, Status Code: 404, Request ID: 436674fc-68f0-4145-a5e8-69bdf6cf26cf)

My application is successfully deployed and I can ask the bot trough the Web interface.

I am using an IAM user from the same account to use the Java SDK Api. (not a single-sign on user) Also, the user ID in the ChatSyncRequest, can it be any user ? It is for pricing purpose only ?

Thanks!

Simon
질문됨 3달 전224회 조회
2개 답변
1
수락된 답변

If you are certain that the application id is correct, then the first error ("not found") is likely because you are making the call in a different region than your application is in.

The user id controls what what responses the user can get (if your data source has access controls).

AWS
Gillian
답변함 3달 전
profile picture
전문가
검토됨 2달 전
0

You are right! Thank you so much! Also is the userId in the query the user who will count as part of the pricing plan or is it the IAM credentials used to make the call?

ChatSyncRequest.builder().applicationId("...").userId("THIS_USER").**userMessage("What is Phishing?").build();

Simon
답변함 3달 전

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

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

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

관련 콘텐츠