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
asked 2 months ago214 views
2 Answers
1
Accepted Answer

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
answered 2 months ago
profile picture
EXPERT
reviewed 2 months ago
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
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions