Comments (5)
V3 SDK issue
from botbuilder-v3.
@Eli2590 I'm unable to replicate this. Can you:
- Verify that you're using the latest V3 packages?
3.30.0
- Copy/paste your entire
FormDialog.cs
and any other relevant code?
Also note: It would be a good idea to start migrating to Botframework v4.
from botbuilder-v3.
- Yes, I am using the latest V3 packages.
- This is the FormDialog.cs:
using System;
using System.Threading.Tasks;
using KusBot.Common;
using KusBot.Forms;
using Kusto.Cloud.Platform.Utils;
using Microsoft.Bot.Builder.Dialogs;
using Microsoft.Bot.Builder.FormFlow;
namespace KusBot.Dialogs
{
[Serializable]
public class FormDialog : IDialog<string>
{
private readonly IDialog<RequestFormBase> m_requestForm;
public FormDialog(IDialog<RequestFormBase> requestForm)
{
m_requestForm = requestForm;
}
public async Task StartAsync(IDialogContext context)
{
try
{
context.Call(m_requestForm, CompleteForm);
}
catch (Exception exception)
{
DiagnosticsTrace.TraceException($"Failure to complete request form.", exception, PrivateTracer.Tracer);
await context.PostAsync(Prompts.FormExceptionMessage);
context.Done(string.Empty);
}
}
public async Task CompleteForm(IDialogContext context, IAwaitable<RequestFormBase> result)
{
try
{
var requestForm = await result;
await requestForm.CompleteForm(context);
}
catch (Exception exception)
{
HandleFormException(context, exception);
context.Done(string.Empty);
}
}
public static async void HandleFormException(IDialogContext context, Exception exception)
{
if (exception is FormCanceledException)
{
string reply;
if (exception.InnerException == null)
{
// User cancelled the form
reply = "It was great talking to you! I hope I was helpful.";
PrivateTracer.Tracer.TraceInformation("User decided to quit the form");
}
else
{
// Exception was thrown
reply = Prompts.FormExceptionMessage;
DiagnosticsTrace.TraceException($"Failure to complete form. Exception:", exception, PrivateTracer.Tracer);
}
await context.PostAsync(reply);
}
else
{
DiagnosticsTrace.TraceException($"Failure to open request ticket. Exception:", exception, PrivateTracer.Tracer);
await context.PostAsync(Prompts.FormExceptionMessage);
}
}
#region Tracer
private class PrivateTracer : TraceSourceBase<PrivateTracer>
{
/// <summary>
/// The string that identifies this trace source
/// </summary>
private const string c_identifierString = "KusBot.FormDialog";
/// <summary>
/// Implements <see cref="TraceSourceBase{T}.Id"/>
/// </summary>
public override String Id
{
get { return c_identifierString; }
}
/// <summary>
/// Implements <see cref="TraceSourceBase{T}.DefaultVerbosity"/>
/// </summary>
public override TraceVerbosity DefaultVerbosity
{
get { return TraceVerbosity.Verbose; }
}
}
#endregion
}
}
from botbuilder-v3.
@Eli2590 Looking at the error closer, it looks like it may actually be in your ChangePermissionForm
. Can you link me to all of your code and provide steps to reproduce? At the very, very least, I'd need to see ChangePermissionForm
.
from botbuilder-v3.
Closing the issue as @Eli2590 will be focusing time on upgrading to v4 (discussed over Teams).
from botbuilder-v3.
Related Issues (20)
- Link to BotBuilder example is not available anymore HOT 1
- POST to 'https://facebook.botframework.com/v3/conversations/9838851111469094-906008411166152/activities/lOdKu9yrLed5iyVk3vbBaQJ5mCJPyp12345678fd2Ta0xQ3R_I12345678pmlNxrQ' failed: [400] Bad Request HOT 9
- Hostname/IP does not match certificate's altnames HOT 34
- Question: Will bot services (written with NodeJS SDK v3.14, using DirectLine v3 APIs) stop working after Dec 31, 2019? HOT 2
- Error: Refresh access token failed with status code: 400 HOT 3
- problem when try to call an another Rest-api at Botframework-V3+C#.net HOT 2
- MessageReceivedAsync will not get called sometimes HOT 7
- Extend v3 SDK to support Skills (DotNet) HOT 3
- Extend v3 SDK to support Skills (JS) HOT 1
- Enable SignIn from a Skill HOT 1
- IDialog method execution finished with multiple resume handlers specified through IDialogStack. invalid need: expected Call, have Wait (Microsoft.Bot.Builder.Internals.Fibers.InvalidNeedExceptio) HOT 18
- [Question, bug] Bot framework fails to save state to Doc DB in Teams 1:1 conversation (and errors dialogue) HOT 8
- Message card rendering issue in bot framework v3 HOT 14
- Port: "Enable multiple scopes for single serviceUrl host" to javascript v3 sdk HOT 1
- Can we send adaptive card to particular group instead of channel HOT 1
- How can get Activity after user submit action in adaptive card using java HOT 1
- System.ArgumentNullException: Value cannot be null. (Parameter 'clientId') in bot V 3.30.0 HOT 1
- Data breach observed when two concurrent send message requests are made to different tenants HOT 8
- This repo is missing important files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from botbuilder-v3.