@Hoa Vu I tried the same code with my resource in West Europe and it works as expected. Have you used both CreateConversationAsync()
and JoinConversationAsync()
samples in your Program.cs
? Based on the line number in your error message I think you have added both. Try only using the CreateConversationAsync()
method first to run the sample and then create a conversation from [ https://translator.microsoft.com] and replace CreateConversationAsync()
with JoinConversationAsync()
Also, the parameter in your request to create a conversation seems to use en-US
as from language and en
as to language. Try to use different languages as mentioned in the sample in the config.
string fromLanguage = "en-US";
string toLanguage = "de";
Screen shot of the run from my machine:
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.