Service error 'Unknown' when attempting to send a (non-reply) message

%3CLINGO-SUB%20id%3D%22lingo-sub-1781956%22%20slang%3D%22en-US%22%3EService%20error%20'Unknown'%20when%20attempting%20to%20send%20a%20(non-reply)%20message%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1781956%22%20slang%3D%22en-US%22%3E%3CP%3EHi!%3C%2FP%3E%3CP%3EI%20am%20using%20the%20Bot%20Framework%20Rest%20API%20with%20Node.%20I%20am%20successfully%20sending%20reply%20messages%20upon%20a%20user%20sending%20a%20message%20(in%20MS%20Teams).%3C%2FP%3E%3CP%3EI%20am%20now%20trying%20to%20%3CSTRONG%3Estart%3C%2FSTRONG%3E%20%3CSTRONG%3Ea%20conversation%20and%20send%20a%20message%3C%2FSTRONG%3E%2C%20to%20which%20the%20response%20comes%20back%20successful%2C%20with%20a%20conversation%20id.%3CBR%20%2F%3E(%20POST%20%2Fv3%2Fconversations%20returns%20me%20an%20id%20-%20great!)%3C%2FP%3E%3CP%3EThen%2C%20I%20try%20to%20send%20a%20message%20to%20that%20conversation%20id%20and%20I%20keep%20getting%20Service%20error%20'Unknown'.%20I%20have%20tried%20everything..%3C%2FP%3E%3CP%3EGet%20token%20function%20(works%20fine)%3CBR%20%2F%3E!%5Bimage%5D(%3CA%20href%3D%22https%3A%2F%2Fuser-images.githubusercontent.com%2F2596623%2F96007424-775e5780-0e0c-11eb-8011-3aa713672d36.png%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fuser-images.githubusercontent.com%2F2596623%2F96007424-775e5780-0e0c-11eb-8011-3aa713672d36.png%3C%2FA%3E)%3C%2FP%3E%3CP%3ECreate%20a%20conversation%20(works%20fine)%3CBR%20%2F%3E!%5Bimage%5D(%3CA%20href%3D%22https%3A%2F%2Fuser-images.githubusercontent.com%2F2596623%2F96007656-b1c7f480-0e0c-11eb-99fd-c00dfa31d340.png%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fuser-images.githubusercontent.com%2F2596623%2F96007656-b1c7f480-0e0c-11eb-99fd-c00dfa31d340.png%3C%2FA%3E)%3C%2FP%3E%3CP%3EUsing%20the%20conversationId%20above%2C%20send%20a%20message%20(Not%20working)%3A%3CBR%20%2F%3E!%5Bimage%5D(%3CA%20href%3D%22https%3A%2F%2Fuser-images.githubusercontent.com%2F2596623%2F96012082-c1960780-0e11-11eb-8541-5849efeea6c8.png%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fuser-images.githubusercontent.com%2F2596623%2F96012082-c1960780-0e11-11eb-8541-5849efeea6c8.png%3C%2FA%3E)%3CBR%20%2F%3E!%5Bimage%5D(%3CA%20href%3D%22https%3A%2F%2Fuser-images.githubusercontent.com%2F2596623%2F96012131-cf4b8d00-0e11-11eb-82b7-da75fe92378e.png%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fuser-images.githubusercontent.com%2F2596623%2F96012131-cf4b8d00-0e11-11eb-82b7-da75fe92378e.png%3C%2FA%3E)%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EI%20am%20following%20the%20documentation%20provided%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fbot-service%2Frest-api%2Fbot-framework-rest-connector-api-reference%3Fview%3Dazure-bot-service-4.0%23create-conversation%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fbot-service%2Frest-api%2Fbot-framework-rest-connector-api-reference%3Fview%3Dazure-bot-service-4.0%23create-conversation%3C%2FA%3E%3C%2FP%3E%3CP%3EStep%201%2C%20create%20a%20conversation%3A%3CBR%20%2F%3E!%5Bimage%5D(%3CA%20href%3D%22https%3A%2F%2Fuser-images.githubusercontent.com%2F2596623%2F96020735-7cc39e00-0e1c-11eb-983f-59066009e888.png%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fuser-images.githubusercontent.com%2F2596623%2F96020735-7cc39e00-0e1c-11eb-983f-59066009e888.png%3C%2FA%3E)%3CBR%20%2F%3E!%5Bimage%5D(%3CA%20href%3D%22https%3A%2F%2Fuser-images.githubusercontent.com%2F2596623%2F96020754-8220e880-0e1c-11eb-92dd-270b4afd15c3.png%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fuser-images.githubusercontent.com%2F2596623%2F96020754-8220e880-0e1c-11eb-92dd-270b4afd15c3.png%3C%2FA%3E)%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EStep%202%2C%20send%20message%20using%20conversation%20id%20from%20above%3A%3CBR%20%2F%3E!%5Bimage%5D(%3CA%20href%3D%22https%3A%2F%2Fuser-images.githubusercontent.com%2F2596623%2F96020790-8cdb7d80-0e1c-11eb-845c-1af8ff58ed70.png%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fuser-images.githubusercontent.com%2F2596623%2F96020790-8cdb7d80-0e1c-11eb-845c-1af8ff58ed70.png%3C%2FA%3E)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1781956%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EBots%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EConversations%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1782058%22%20slang%3D%22en-US%22%3ERe%3A%20Service%20error%20'Unknown'%20when%20attempting%20to%20send%20a%20(non-reply)%20message%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1782058%22%20slang%3D%22en-US%22%3E%3CP%3EI%20see%20my%20formatting%20is%20really%20bad!%20I%20kind%20of%20copy%20pasted%20the%20content.%3CBR%20%2F%3E%3CBR%20%2F%3EHere%20is%20a%20second%20go%20at%20it%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3EI%20am%20using%20the%20Bot%20Framework%20Rest%20API%20with%20Node.%20I%20am%20successfully%20sending%20reply%20messages%20upon%20a%20user%20sending%20a%20message%20(in%20MS%20Teams)%20-%20but%20my%20goal%20is%20to%26nbsp%3Bsend%20a%20message%20to%20a%20user%20without%20the%20user%20messaging%20the%20bot.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20have%20read%20through%20proactively%20sending%20a%20message%20through%20the%20Graph%20API%20but%20it%20seems%20there%20is%20no%20REST%20API%20for%20it%20(%20dissappointed%20%3A(%3C%2Fimg%3E%20).%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EDo%20you%20know%20why%20this%20error%20is%20happening%20where%20I%20am%20getting%20service%20error%20'unknown'%3F%20I%20attached%20screenshots%20on%20this%20Github%20issues%20post%2C%20sorry%20for%20external%20linking%20but%20it's%20a%20bunch%20of%20screenshots..%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fbot-docs%2Fissues%2F1934%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fbot-docs%2Fissues%2F1934%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1784275%22%20slang%3D%22en-US%22%3ERe%3A%20Service%20error%20'Unknown'%20when%20attempting%20to%20send%20a%20(non-reply)%20message%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1784275%22%20slang%3D%22en-US%22%3E%3CP%3EHelp%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hi!

I am using the Bot Framework Rest API with Node. I am successfully sending reply messages upon a user sending a message (in MS Teams).

I am now trying to start a conversation and send a message, to which the response comes back successful, with a conversation id.
( POST /v3/conversations returns me an id - great!)

Then, I try to send a message to that conversation id and I keep getting Service error 'Unknown'. I have tried everything..

Get token function (works fine)
![image](https://user-images.githubusercontent.com/2596623/96007424-775e5780-0e0c-11eb-8011-3aa713672d36.png)

Create a conversation (works fine)
![image](https://user-images.githubusercontent.com/2596623/96007656-b1c7f480-0e0c-11eb-99fd-c00dfa31d340.png)

Using the conversationId above, send a message (Not working):
![image](https://user-images.githubusercontent.com/2596623/96012082-c1960780-0e11-11eb-8541-5849efeea6c8.png)
![image](https://user-images.githubusercontent.com/2596623/96012131-cf4b8d00-0e11-11eb-82b7-da75fe92378e.png)


I am following the documentation provided:

https://docs.microsoft.com/en-us/azure/bot-service/rest-api/bot-framework-rest-connector-api-referen...

Step 1, create a conversation:
![image](https://user-images.githubusercontent.com/2596623/96020735-7cc39e00-0e1c-11eb-983f-59066009e888.png)
![image](https://user-images.githubusercontent.com/2596623/96020754-8220e880-0e1c-11eb-92dd-270b4afd15c3.png)


Step 2, send message using conversation id from above:
![image](https://user-images.githubusercontent.com/2596623/96020790-8cdb7d80-0e1c-11eb-845c-1af8ff58ed70.png)

 

2 Replies
Highlighted

I see my formatting is really bad! I kind of copy pasted the content.

Here is a second go at it:

I am using the Bot Framework Rest API with Node. I am successfully sending reply messages upon a user sending a message (in MS Teams) - but my goal is to send a message to a user without the user messaging the bot.

 

I have read through proactively sending a message through the Graph API but it seems there is no REST API for it ( dissappointed :( ).

 

Do you know why this error is happening where I am getting service error 'unknown'? I attached screenshots on this Github issues post, sorry for external linking but it's a bunch of screenshots..

 

https://github.com/MicrosoftDocs/bot-docs/issues/1934

Highlighted