Error: Request to 'https://state.botframework.com/v3/botstate/skype/conversations/XXX failed: [500] Internal Server Error
Guys,
Last few days the server sporadically returns error 500, from ChatConnector.prototype.authenticatedRequest
I message the bot via slack or skype and with it fails
Need help ASAP.
We have been observing the same issue. We also need help ASAP. Thanks
Hello, It's been happening the past two days for me as well.
Thanks
Not happening on every message...but on most of them to the point the bot is not usable.
Mar 04 16:41:12:
Request to 'https://state.botframework.com/v3/botstate/webchat/users/6wXVrG8ulRZ' failed: [500] Internal Server Error
Error: Request to 'https://state.botframework.com/v3/botstate/webchat/users/6wXVrG8ulRZ' failed: [500] Internal Server Error
at Request._callback (/home/ubuntu/node_modules/botbuilder/lib/bots/ChatConnector.js:452:46)
at Request.self.callback (/home/ubuntu/node_modules/request/request.js:187:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request.
We had a machine in the east data center that was producing lots of 500 errors. It's been restarted and is running smoothly now.
I have a similar error :/
Error: Request to 'https://facebook.botframework.com/v3/conversations/1367145196662340-1378693302187372/activities/mid.1488680182947%3Ad19634ae76' failed: [400] Bad Request
at Request._callback (/Applications/MAMP/htdocs/PokeBot/node_modules/botbuilder/lib/bots/ChatConnector.js:452:46)
at Request.self.callback (/Applications/MAMP/htdocs/PokeBot/node_modules/request/request.js:186:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request.
Any idea?
I just made it through an entire transaction with no 500 errors, so thank you for fixing that. I know I didn't originate this issue on github, but as far as I'm concerned, it can be closed.
I am having this issue in Teams (doesn't happen in Skype, web chat, or direct line) with one of my bots and not the other. Any ideas? I've tried restarting my bot in Azure but that doesn't remedy the issue.
we are currently running into this issue as well and it's happening quite often. It's basically making the bot generally unresponsive. Can anyone take a look again to see if internal servers are failing?
https://state.botframework.com/v3/botstate/facebook/conversations/1245305542257228-1373818812680492/users/1245305542257228' failed: [500] Internal Server Error
We are also getting [50x] errors when trying to post Skype and Facebook.
I've got these issues as well. Both [400] and [500] errors. The thing that makes this difficult is that it is not happening for all messages. In some cases the messages get through just fine. In other cases, these errors are thrown. I would say this is a all a fairly recent problem. Until very recently I would have considered the Skype Bot very stable. Now, I have no idea which messages are getting through, and which are not. The important information I want to convey here is that this all used to work. I feel like there is something going on on the botframework side that is causing this.
Example Errors
Error: Request to 'https://state.botframework.com/v3/botstate/skype/conversations/29%3A106iqDje1kQ2QdxrEYOLco405TR1CVBHOqmI9RD1yHDo/users/29%3A106iqD
je1kQ2QdxrEYOLco405TR1CVBHOqmI9RD1yHDo' failed: [500]
at Request._callback (/home/ubuntu/MyCode/node_modules/botbuilder/lib/bots/ChatConnector.js:452:46)
at Request.self.callback (/home/ubuntu/MyCode/node_modules/request/request.js:186:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request.
Error: Request to 'https://skype.botframework.com/v3/conversations/29%3A113Z2K3eU8VRG-cI9HGTDdMpW84fPuFj4L_RhloXVs-0/activities' failed: [400] Bad Re
quest
at Request._callback (/home/ubuntu/MyCode/node_modules/botbuilder/lib/bots/ChatConnector.js:452:46)
at Request.self.callback (/home/ubuntu/MyCode/node_modules/request/request.js:186:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request.
For people that are having this 400 or 500 errors, I solved it adding testers. In your developer interface on Facebook, click on your bot, and then on “roles”, “add testers".
And that's it!
the 400s are b/c of facebook permissions, but the 500s are new. These test users have been added a while (including myself) and have now started seeing these errors pop up in the logs. I'm only seeing 500s at this point.
To be clear, my errors are not related to facebook, so making test users (which doesn't scale, anyway, as a solution) doesn't help. I'm seeing the errors related to a Skype bot, not a Facebook bot.
Any updates? @carlosscastro
@sisense are you still experiencing this issue? Are you using C# or Node SDK for BotBuilder?
Not for the past few month.
On Apr 19, 2017, at 12:29 AM, Nils [email protected] wrote:
@sisense are you still experiencing this issue?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
I'm just spending my second day on Bot Framework and I've got 500 errors always. I've tested my bot in piece parts and every piece works. I basically took the bot template, and replaced one line to call a method from a new class I created as part of the project. Here is the new line of code calling my new class
string responseText = Bot_Application2.SilviaRestClass.GetRestResult(activity.Text);
SilviaRestClass goes out to our Silvia AI server and processes whatever was typed in to the bot as an utterance, and returns one or more utterances. I've taken out the credentials, but this class works fine.
//CREATE CORE from SILVIA SERVER
myURI = SILVIAUri + SILVIACore;
myURI = myURI.Replace("silName", silName);
myURI = myURI.Replace("unique", unique);
System.Net.WebRequest request = WebRequest.Create(myURI);
request.Headers["Ocp-Apim-Subscription-Key"] = SILVIASubKey;
if (sessionNew)
{
Random rnd1 = new Random();
unique = rnd1.Next().ToString() + "askgracie";
sessionNew = false;
WebResponse wResponse = request.GetResponse();
Stream dataStream = wResponse.GetResponseStream();
StreamReader reader = new StreamReader(dataStream);
responseFromServer = reader.ReadToEnd();
// Clean up the streams and the response.
reader.Close();
wResponse.Close();
}
//SEND UTTERANCE to SILVIA
holdit = null;
myURI = null;
myURI = SILVIAUri + SILVIASubmit;
holdit = restResponse;
// holdit = HttpUtility.UrlEncode(holdit);
myURI = myURI.Replace("hello", holdit);
myURI = myURI.Replace("unique", unique);
if (holdit == "exit")
{
exit = true;
myURI = SILVIAUri + SILVIARelease;
}
System.Net.WebRequest sendRequest = WebRequest.Create(myURI);
sendRequest.Headers["Ocp-Apim-Subscription-Key"] = SILVIASubKey;
WebResponse sendResponse = sendRequest.GetResponse();
Stream sendStream = sendResponse.GetResponseStream();
StreamReader sendReader = new StreamReader(sendStream);
string send_ResponseFromServer = sendReader.ReadToEnd();
// Clean up the streams and the response.
sendReader.Close();
sendResponse.Close();
holdit = send_ResponseFromServer;
forHold = holdit.IndexOf("success");
holdit2 = holdit.Substring(forHold + 9, 5);
if (holdit2 == isfalse)
{
var simpleUtterResponse = "The bot failed to send the utterance to SILVIA";
// return AlexaUtils.BuildSpeechletResponse(simpleUtterResponse, null, true);
}
//GETRESPONSES FROM SILVIA
returnMessage = null;
holdit = null;
responseFromServer = null;
myURI = SILVIAUri + SILVIARead;
myURI = myURI.Replace("unique", unique);
System.Net.WebRequest readRequest = WebRequest.Create(myURI);
readRequest.Headers["Ocp-Apim-Subscription-Key"] = SILVIASubKey;
WebResponse readResponse = readRequest.GetResponse();
Stream readStream = readResponse.GetResponseStream();
StreamReader readReader = new StreamReader(readStream);
string read_ResponseFromServer = readReader.ReadToEnd();
viewMessage = read_ResponseFromServer;
string lastRead = "ID ";
List<string> myArray = new List<string>(viewMessage.Split(new string[] { "\r\n" }, StringSplitOptions.None));
foreach (string s in myArray)
{
if (lastRead == "type: voice")
{
returnMessage = returnMessage + " " + s.Substring(8);
}
if (s.Length < 11)
{ lastRead = s;
}
else
{ lastRead = s.Substring(0, 11);
}
if (s.Length < 11)
{ lastRead = s;
}
else
{ lastRead = s.Substring(0, 11);
}
}`
```
It works great in my Alexa skill. So how do I get past this 500 error? Thanks!
I am resolving this since the OP is not longer experiencing the problem.
@bgarr33434 Please open a new issue or post your question on Stack Overflow using the tag #botframework so the community can share in the learnings.
getting this error.
same code base different days. One day its fine, next its broke. We are using ngrok to host locally. So i figured overnight requests fails and so facebook kills the bot. Reasonable enough to me.
So ...
we wipe down all the bots on facebook and on microsoft start fresh, we get (we have detailed manual scripts that really did work yesterday for this)
Error: Request to 'https://facebook.botframework.com/v3/conversations/1442241365883322-461352560912266/activities/mid.%24cAAGjmR5_4cVjZzCyJldNeuH0Vn9l' failed: [400] Bad Request
so whilst i am writing this and googling for answers (we have demos today ...) no config changes is my point it starts to work for one facebook user (the admin).
we are using node sdk.
Hi @MrTortoise I'm also currently having this issue.
I figured it might be related to the state storage as mentioned here: https://github.com/Microsoft/BotBuilder/issues/2272
However, after adding in:
bot.set('persistConversationData', false);
bot.set('persistUserData', false);
and console logging out the:
console.log(session.conversationData, '<<');
console.log(session.privateConversationData, '<<');
console.log(session.dialogData, '<<');
console.log(session.userData, '<<');
And seeing these fields empty, this is my console.log:
[0] {} '<<'
[0] {} '<<'
[0] { 'BotBuilder.Data.WaterfallStep': 0 } '<<'
[0] {} '<<'
That doesn't seem to be the case. Did you fix your issue and/or figure out what was going on?