Comments (8)
@mdrichardson Did not encounter with the issue again. Thanks
from botbuilder-v3.
@Eli2590 Can you provide Conversation IDs for when the error appears or appId and timestamps? The stack trace of the error will help, as well.
I think I mentioned before we're only doing security bug-fixes in V3, but I can look to make sure there isn't something going on on the service side.
from botbuilder-v3.
@mdrichardson Here are the Conversation IDs
stack trace:
Caught unhandled exception. CancellationRequest = False.: at PostAsync in C:\source\Src\Tools\KusBot\Common\CustomPostToUser.cs: line 43
Message: {"Errors":["The input name is invalid. Ensure to provide a unique non-empty string less than '255' characters."]}
ActivityId: bcbb6c11-0ccd-4ebc-ac6c-f20d3c4fdab6, Request URI: /apps/2c77ff9f-6270-4ef5-9744-6cc65ce3cbc6/services/d5d35d6b-3e81-43cf-8162-bebae5951a60/partitions/0cd620c7-8883-4ce3-85ab-953198b18273/replicas/132327472190364493p/, RequestStats:
RequestStartTime: 2020-05-11T12:45:34.1858975Z, RequestEndTime: 2020-05-11T12:45:34.1858975Z, Number of regions attempted:1
ResponseTime: 2020-05-11T12:45:34.1858975Z, StoreResult: StorePhysicalAddress: rntbd://byaprdapp05-docdb-2.documents.azure.com:14059/apps/2c77ff9f-6270-4ef5-9744-6cc65ce3cbc6/services/d5d35d6b-3e81-43cf-8162-bebae5951a60/partitions/0cd620c7-8883-4ce3-85ab-953198b18273/replicas/132327472190364493p/, LSN: 1661295, GlobalCommittedLsn: 1661295, PartitionKeyRangeId: 0, IsValid: True, StatusCode: 400, SubStatusCode: 0, RequestCharge: 2.38, ItemLSN: -1, SessionToken: 1661295, UsingLocalLSN: False, TransportException: null, ResourceType: Document, OperationType: Upsert
, SDK: Microsoft.Azure.Documents.Common/2.10.0
System.Web.HttpException (0x80004005): Message: {"Errors":["The input name is invalid. Ensure to provide a unique non-empty string less than '255' characters."]}
ActivityId: bcbb6c11-0ccd-4ebc-ac6c-f20d3c4fdab6, Request URI: /apps/2c77ff9f-6270-4ef5-9744-6cc65ce3cbc6/services/d5d35d6b-3e81-43cf-8162-bebae5951a60/partitions/0cd620c7-8883-4ce3-85ab-953198b18273/replicas/132327472190364493p/, RequestStats:
RequestStartTime: 2020-05-11T12:45:34.1858975Z, RequestEndTime: 2020-05-11T12:45:34.1858975Z, Number of regions attempted:1
ResponseTime: 2020-05-11T12:45:34.1858975Z, StoreResult: StorePhysicalAddress: rntbd://byaprdapp05-docdb-2.documents.azure.com:14059/apps/2c77ff9f-6270-4ef5-9744-6cc65ce3cbc6/services/d5d35d6b-3e81-43cf-8162-bebae5951a60/partitions/0cd620c7-8883-4ce3-85ab-953198b18273/replicas/132327472190364493p/, LSN: 1661295, GlobalCommittedLsn: 1661295, PartitionKeyRangeId: 0, IsValid: True, StatusCode: 400, SubStatusCode: 0, RequestCharge: 2.38, ItemLSN: -1, SessionToken: 1661295, UsingLocalLSN: False, TransportException: null, ResourceType: Document, OperationType: Upsert
, SDK: Microsoft.Azure.Documents.Common/2.10.0 ---> Microsoft.Azure.Documents.DocumentClientException: Message: {"Errors":["The input name is invalid. Ensure to provide a unique non-empty string less than '255' characters."]}
ActivityId: bcbb6c11-0ccd-4ebc-ac6c-f20d3c4fdab6, Request URI: /apps/2c77ff9f-6270-4ef5-9744-6cc65ce3cbc6/services/d5d35d6b-3e81-43cf-8162-bebae5951a60/partitions/0cd620c7-8883-4ce3-85ab-953198b18273/replicas/132327472190364493p/, RequestStats:
RequestStartTime: 2020-05-11T12:45:34.1858975Z, RequestEndTime: 2020-05-11T12:45:34.1858975Z, Number of regions attempted:1
ResponseTime: 2020-05-11T12:45:34.1858975Z, StoreResult: StorePhysicalAddress: rntbd://byaprdapp05-docdb-2.documents.azure.com:14059/apps/2c77ff9f-6270-4ef5-9744-6cc65ce3cbc6/services/d5d35d6b-3e81-43cf-8162-bebae5951a60/partitions/0cd620c7-8883-4ce3-85ab-953198b18273/replicas/132327472190364493p/, LSN: 1661295, GlobalCommittedLsn: 1661295, PartitionKeyRangeId: 0, IsValid: True, StatusCode: 400, SubStatusCode: 0, RequestCharge: 2.38, ItemLSN: -1, SessionToken: 1661295, UsingLocalLSN: False, TransportException: null, ResourceType: Document, OperationType: Upsert
, SDK: Microsoft.Azure.Documents.Common/2.10.0
at Microsoft.Azure.Documents.Client.ClientExtensions.d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.Documents.GatewayStoreModel.<>c__DisplayClass10.<b__f>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.Documents.BackoffRetryUtility1.<>c__DisplayClass2.<<ExecuteAsync>b__0>d__4.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Azure.Documents.BackoffRetryUtility
1.d__1b.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Azure.Documents.BackoffRetryUtility1.<ExecuteRetry>d__1b.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Azure.Documents.BackoffRetryUtility
1.d__a.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.Documents.GatewayStoreModel.d__1f.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.Documents.GatewayStoreModel.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.Documents.Client.DocumentClient.d__31c.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.Documents.Client.DocumentClient.d__264.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.Documents.BackoffRetryUtility1.<>c__DisplayClass2.<<ExecuteAsync>b__0>d__4.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Azure.Documents.BackoffRetryUtility
1.d__1b.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Azure.Documents.BackoffRetryUtility1.<ExecuteRetry>d__1b.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Azure.Documents.BackoffRetryUtility
1.d__a.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.Documents.Client.DocumentClient.d__25d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Builder.Azure.DocumentDbBotDataStore.<Microsoft-Bot-Builder-Dialogs-Internals-IBotDataStore-SaveAsync>d__7.MoveNext()
at Microsoft.Bot.Builder.Azure.DocumentDbBotDataStore.<Microsoft-Bot-Builder-Dialogs-Internals-IBotDataStore-SaveAsync>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Builder.Dialogs.Internals.CachingBotDataStore.d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Builder.Dialogs.Internals.CachingBotDataStore.<Microsoft-Bot-Builder-Dialogs-Internals-IBotDataStore-FlushAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Builder.Dialogs.Internals.BotDataBase`1.d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Builder.Dialogs.Internals.DialogTaskManagerBotDataLoader.d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Builder.Dialogs.Internals.PersistentDialogTask.d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Builder.Dialogs.Internals.ExceptionTranslationDialogTask.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Builder.Dialogs.Internals.SerializeByConversation.d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at KusBot.Common.CustomPostToUser.d__3.MoveNext() in C:\source\Src\Tools\KusBot\Common\CustomPostToUser.cs:line 38
from botbuilder-v3.
@Eli2590 Thank you. I'll start looking on the backend. Can you please copy/paste your packages.config
as well as your CustomPostToUser.cs
?
I see the error: "Errors":["The input name is invalid. Ensure to provide a unique non-empty string less than '255' characters."]}
. Are you using a custom storage adapter? If so, please include that as well.
from botbuilder-v3.
Note: The v3.30 SDK doesn't really support DocDB or Teams.
from botbuilder-v3.
@cleemullins technically v3.30 does support DocumentDb/CosmosDb and Teams
I believe this was added specifically due to the older docdb key length restrictions, and Teams long conversation.ids:
https://github.com/microsoft/BotBuilder-V3/blob/master/Azure/CSharp/Library/Microsoft.Bot.Builder.Azure/DocumentDbBotDataStore.cs#L306
private static string TruncateEntityKey(string entityKey)
{
if (entityKey.Length > MAX_KEY_LENGTH)
{
var hash = entityKey.GetHashCode().ToString("x");
entityKey = entityKey.Substring(0, MAX_KEY_LENGTH - hash.Length) + hash;
}
return entityKey;
}
And this package has been around for a few years:
https://www.nuget.org/packages/Microsoft.Bot.Connector.Teams/0.10.0
Nonetheless, these are all deprecated and unsupported libraries.
from botbuilder-v3.
@EricDahlvang Thanks a lot. I'll try to update the packages
from botbuilder-v3.
@Eli2590 Any luck?
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
- Microsoft.Bot.Builder - "Object reference not set to an instance of an object" HOT 5
- 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.