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

Copper 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)

 

4 Replies

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