Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure Communication Service - While creating ChatThreadClient, getting error 401 #1559

Open
salujamanish opened this issue Dec 3, 2020 · 0 comments

Comments

@salujamanish
Copy link

salujamanish commented Dec 3, 2020

Hi Team,

I am following https://github.com/Azure/azure-docs-sdk-java/blob/master/docs-ref-services/communication-chat-readme-pre.md to setup chat client for azure communication service using Java Sdk.

I am able to get valid user access token but when I am trying to create chat thread using
ChatThreadClient chatThreadClient = chatClient.createChatThread(createChatThreadOptions);

I am getting below exception

Exception in thread "main" com.azure.communication.chat.models.ErrorException: Status code 401, (empty body)
at java.lang.Thread.run(Thread.java:748)
Suppressed: java.lang.Exception: #block terminated with an error
at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:99)
at reactor.core.publisher.Mono.block(Mono.java:1680)
at com.azure.communication.chat.ChatClient.createChatThread(ChatClient.java:59)
at App.main(App.java:59)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant