GithubHelp home page GithubHelp logo

Comments (8)

Eli2590 avatar Eli2590 commented on June 2, 2024 1

@mdrichardson Did not encounter with the issue again. Thanks

from botbuilder-v3.

mdrichardson avatar mdrichardson commented on June 2, 2024

@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.

Eli2590 avatar Eli2590 commented on June 2, 2024

@mdrichardson Here are the Conversation IDs
image

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.BackoffRetryUtility1.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.BackoffRetryUtility1.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.BackoffRetryUtility1.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.BackoffRetryUtility1.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.

mdrichardson avatar mdrichardson commented on June 2, 2024

@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.

cleemullins avatar cleemullins commented on June 2, 2024

Note: The v3.30 SDK doesn't really support DocDB or Teams.

from botbuilder-v3.

EricDahlvang avatar EricDahlvang commented on June 2, 2024

@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
image

Nonetheless, these are all deprecated and unsupported libraries.

from botbuilder-v3.

Eli2590 avatar Eli2590 commented on June 2, 2024

@EricDahlvang Thanks a lot. I'll try to update the packages

from botbuilder-v3.

mdrichardson avatar mdrichardson commented on June 2, 2024

@Eli2590 Any luck?

from botbuilder-v3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.