Every POST request to the following API get 403 forbidden :
https://facebook.botframework.com/v3/conversations/{{conversation_id}}/activities
https://facebook.botframework.com/api/v1/bots/{{bot_name}} ; which is webhook url registered at facebook bot
Noted :
Bot framework already is Bot Service Azure before 2018 March 31
Facebook channel at Bot Service Azura worked well about 6 months. And these issues just happens from 2018, 19th April
Tested facebook bot worked well with my own webhook url
Tested skype channel at Bot Service Azura still worked well.
All configure of facebook channel at Bot Service Azure are right.
After three days failed and there is no facebook message come to my system via Bot Service Azure. Finally, my Facebook channel at Bot Service Azure is up again at 2018 April 23. The issues solved.
Related
My bot in Telegram worked fine for many months, and suddenly...
ErrorResponseException: "The bot referenced by the 'from' field is unrecognized"
It throws each time when my bot tries to reply to an incoming message.
The from field didn't change. The bot id in Telegram can't change.
I checked: the bot HTTP Request is sent with the correct bot id in the from.id field.
I use Microsoft.Bot.Builder v3.15.3 Nuget package
I had to renew the Telegram Bot access token
I went to #BotFather in Telegram and invoked the /revoke command to change the token to access HTTP API.
Then I went to my Functions bot in the Azure Portal, and on Channels section clicked on "Edit" on my Telegram bot. I pasted the new Access token, saved, and it works again!
What caused it?
Looks like the token somehow expired. I created my bot 355 days ago (Dec 14, 2017), and haven't changed the token since then.
But I'm not sure if it's the reason.
See how similar solution helped for Facebook bot.
I faced with the same issue for the Skype for Business channel. I haven't changed the from.id but the bot stoped to work correct. I seems Microsoft started to validate this field and before I had incorrect value of this one.
I just went throught the documentation (https://learn.microsoft.com/en-us/skype-sdk/skype-for-business-bot-framework/docs/overview) one more time and saw my mistake:
"from": {
"id": "sip:user#contoso.com",
"name": "Contoso User"
}
I am using Microsoft Botframework to publish a bot (Channel Registration). When I try enabling the channels , I see the bot to be working in Slack , Skype, MS Teams & Web chat . However (despite following the steps to enable bot in SFB) I could not get the bot working in Skype for Business. I keep getting the error.
"Sorry, we ran into a problem at our end."
Neither do I see any log to debug.
Waited more than 24 hrs to ensure it is not the sync issue. But issue still remains. Any help appreciated !!
I am not clear with the error as to from which end it is being thrown.
I need you to follow the below steps:
Publish Bot in azure as an app service, through VS if you are coding through c#.
Create a "Bot channel registration" in azure and connect the above app service and Bot channel registration(simple use the URL of the app service append it with /api/messages and insert the same as messaging endpoint in Bot channel registration).
use the app id and app secret in bot solution and republish the app service.
Inside Bot channel registration click on channel and enable it for Skype for business(you will find your BOT in SFB using the credentials you have used to create the bot channel registration).
Finally got it working. What i noticed is the following
I faced the issue when I used the SIP URI as somebot#mydomain.com to register the bot in my tenant.
And i got it working when I used the SIP URI as somebot#mydomain.onmicrosoft.com.
Unsure on the reasoning though :)
And btw thanks #Tanmoy for your answer aswell !!
I need enable channel messenger for botframework.
i make follow this guide: https://learn.microsoft.com/en-us/azure/bot-service/bot-service-channel-connect-facebook#enable-messenger
exclude "submit for review". i want test before submit review.
Until an app is published, it is in Development Mode. Plugin and API functionality will only work for admins, developers, and testers.
i am administrator for app & that page.
i try chat but bot not working.
Env info:
Facebook API version: 2.12
Bot framework ver: 3.14
And i has migrated to azure bot service.
My bot screenshots:
Facebook app & web hook setting
Bot setting
Channel status
Skype channel status is ok
In messenger bot not working
Any one can help me ?
Thank in advance!
Problem solved!
My problem is: i detected a problem about my account "Your free credit has expired after i create new bot service.
then i fix above issue, and bot worked.
Hope Azure service will show alert when create new channel for trial program.
If you just channel messenger for botframework about yesterday, so I think that your issues relate to my issues:
403 forbidden with POST request on https://facebook.botframework.com
My facebook channels bot framework worked well about 6 months till 2018, 19 April. All request suddendly response 403 forbidden.
And I am trying to find any document which mentioned to any change or update API from microsoft bot server at 2018, 19 April.
The following is some steps for facebook set up which help me on the succcess:
step1 - Get app_id and app_secret
https://i.stack.imgur.com/WCdKH.jpg
step2 - Webhooks for page
https://i.stack.imgur.com/1Ve8u.jpg
step3 - Webhooks for page - enter microsoft bot service callback and verify token
https://i.stack.imgur.com/HX2qR.png
step 4- Messenger setting - subscribe page and get page access_token
https://i.stack.imgur.com/wwwj4.jpg
step 5 - Get page_id at facebook page
https://i.stack.imgur.com/JL78m.jpg
I tried to connect a bot built using Microsoft botframework to Microsoft team with no luck.
If I use other channels like webchat it works like a charm ! , I've tried to create new simple bot using Azure Bot services. In a matter of fact, I left the generated echo bot code as is , when I tried to connect to Teams channel I got an error message "Oops something went wrong" as you can see in this screen capture
Bot Service Azure Error
tried to use the Microsoft ID and add the bot to MS teams app package however the same behavior applies (bot is never responding)
if the bot is running locally using ngrok there is no message been logged to ngrok endpoint at all as if msteams client is not sending the conversation at all.
I suspect there is a problem with bot registration.
P.S. Skype channel is not working as well.
Thanks,
Amr
I have registered an MS bot on over Skype for business channel, the bot was searchable and responding for few days but no I am getting below error in "Bot Channel registration">channels> issues
"There was an error sending this message to your bot: HTTP status code NotFound".
On SFB I get error
"Error happened in Skype for Business service when reaching bot service".
Bot is hosted over azure in web API working and fine in Web channel, whereas with SFB its not hitting the API endpoint.
Every time I send a message from skype for businesss, I get the same error on bot channel registration.
Environment is a hybrid of Lync 2010 and Skype for business online and after registration bot was searchable and responding to users on SFB online.
What could be the possible reason for this error?
For my situation I realized that if I dont change messaging endpoint area everything goes well.I mean I was adding Microsoft App Id to my endpoint like https://myendpoint/{{MicrosoftAppId}} after bot created .It is because you can have your microsoft app id after you create the bot.What is awkard is that despite messaging endpoint looks an editable area when I change it I am falling into error place where my endpoint is never called[again webchannel works fine , it looks Skype For Business needs some refactoring]. However I found that if I dont change this endpoint url bot works fine for Skype For Business and my endpoint is hit successfully .So keep your messaging endpoint constant and set it only when creating your bot.