Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pac copilot extract-translation: System.NotImplementedException #977

Open
ToyMakerGR opened this issue Jul 24, 2024 · 0 comments
Open

pac copilot extract-translation: System.NotImplementedException #977

ToyMakerGR opened this issue Jul 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ToyMakerGR
Copy link

Describe the bug
In a bot instance, both pac copilot extract-translation and merge-translation commands result in System.NotImplementedException.

To Reproduce
It's not easy to reproduce since it happens only in a chatbot instance of ours.

Expected behavior
We expect for the tool to work and not crash.

Additional context
Pac log / Stack trace:

2024-07-23 11:07:26.8824 | INF | bolt.Session :: Product Version: 1.33.5+g1621296; File Version: 1.33.5
2024-07-23 11:07:26.9044 | INF | bolt.Session :: Start new session. (sessionId: ************************; operationId: ************************; userId: ************************; nonInteractiveMode: False)
2024-07-23 11:07:27.0110 | INF | bolt.cli.CommandProcessor :: StartExecutingVerb (Verbs: ["copilot","extract-translation"])
2024-07-23 11:07:27.0365 | INF | bolt.cli.Verb :: Executing verb 'copilot extract-translation' with arguments --bot,--all,--environment,--format.
2024-07-23 11:07:27.0515 | INF | bolt.cli.CommandLine.VerbExecutor :: PerformAuthenticationAsync - Getting auth profile with following options: { AuthKind = DATAVERSE, IsRequired = True, ShowProfileMessages = True, VerbDisableAutoOSLogin = False, SkipValidation = False }
2024-07-23 11:07:27.2793 | INF | bolt.cli.CommandLine.VerbExecutor :: PerformAuthenticationAsync - Using auth profile: { Kind = UNIVERSAL, ProfileType = OperatingSystem, AadObjectId = f009eb3b-7fa6-4248-9afd-b62f41ec218e, CloudInstance = Public, TenantId = 67605cd7-2905-4d79-8256-ae1f5420c277, User = *@company.com }
2024-07-23 11:07:28.5717 | WRN | Microsoft.Identity.Client.IPublicClientApplication :: True MSAL 4.61.3.0 MSAL.Desktop 4.8 or later Windows 10 Enterprise [2024-07-23 11:07:28Z] [MSAL:0001] WARNING SetAuthorityUri:78 Initializing authority from URI 'https://login.microsoftonline.com/organizations/' without authority type, defaulting to MsSts
2024-07-23 11:07:28.5757 | WRN | Microsoft.Identity.Client.IPublicClientApplication :: True MSAL 4.61.3.0 MSAL.Desktop 4.8 or later Windows 10 Enterprise [2024-07-23 11:07:28Z] [MSAL:0001] WARNING TryEnqueueMsaDeviceCredentialAcquisitionAndContinue:1006 MsaDeviceOperationProvider is not available. Not attempting to register the device.
2024-07-23 11:07:28.7553 | WRN | Microsoft.Identity.Client.IPublicClientApplication :: True MSAL 4.61.3.0 MSAL.Desktop 4.8 or later Windows 10 Enterprise [2024-07-23 11:07:28Z - eff920c9-3b92-42b7-a715-9e5ca4c7c154] [CalculateSuggestedCacheExpiry] No access tokens or refresh tokens found in the accessor. Not returning any expiration.
2024-07-23 11:07:28.8458 | INF | bolt.authentication.store.AuthTokenStore :: Successfully acquired a token using profile of type OperatingSystem for scope 'https://globaldisco.crm.dynamics.com//.default'
2024-07-23 11:07:29.2650 | INF | bolt.cli.EnvironmentResolver :: ResolveEnvironmentLookupSpecAsync: Found a matching organization from the Global Disco service which matched the lookup criteria. SelectedOrganizationInfo { OrganizationId = , EnvironmentUrl = https://.dynamics.com/, UniqueName = org05445350, FriendlyName = CRM UAT, EnvironmentIdentifier = , Geo = EMEA }
2024-07-23 11:07:29.2820 | WRN | Microsoft.Identity.Client.IPublicClientApplication :: True MSAL 4.61.3.0 MSAL.Desktop 4.8 or later Windows 10 Enterprise [2024-07-23 11:07:29Z] [MSAL:0003] WARNING SetAuthorityUri:78 Initializing authority from URI 'https://login.microsoftonline.com/organizations/' without authority type, defaulting to MsSts
2024-07-23 11:07:29.2820 | WRN | Microsoft.Identity.Client.IPublicClientApplication :: True MSAL 4.61.3.0 MSAL.Desktop 4.8 or later Windows 10 Enterprise [2024-07-23 11:07:29Z] [MSAL:0003] WARNING TryEnqueueMsaDeviceCredentialAcquisitionAndContinue:1006 MsaDeviceOperationProvider is not available. Not attempting to register the device.
2024-07-23 11:07:29.2820 | WRN | Microsoft.Identity.Client.IPublicClientApplication :: True MSAL 4.61.3.0 MSAL.Desktop 4.8 or later Windows 10 Enterprise [2024-07-23 11:07:29Z - ] [CalculateSuggestedCacheExpiry] No access tokens or refresh tokens found in the accessor. Not returning any expiration.
2024-07-23 11:07:29.2820 | INF | bolt.authentication.store.AuthTokenStore :: Successfully acquired a token using profile of type OperatingSystem for scope 'https://
.dynamics.com//.default'
2024-07-23 11:07:29.3040 | INF | System.Net.Http.HttpClient.
.dynamics.com.LogicalHandler :: Start processing HTTP request GET https://
.dynamics.com/api/data/v9.2/solutions?$filter=uniquename%20eq%20'PowerVirtualAgents'
2024-07-23 11:07:29.3100 | INF | System.Net.Http.HttpClient.
.dynamics.com.ClientHandler :: Sending HTTP request GET https://
.dynamics.com/api/data/v9.2/solutions?$filter=uniquename%20eq%20'PowerVirtualAgents'
2024-07-23 11:07:29.6706 | INF | System.Net.Http.HttpClient.
.dynamics.com.ClientHandler :: Received HTTP response headers after 356.8026ms - 200
2024-07-23 11:07:29.6706 | INF | System.Net.Http.HttpClient.
.dynamics.com.LogicalHandler :: End processing HTTP request after 377.4703ms - 200
2024-07-23 11:07:29.6706 | INF | bolt.authentication.http.AuthenticatedHttpClient :: HTTP call succeeded: 398ms, GET, https://
.dynamics.com/, api/data/v9.2/solutions?$filter=uniquename eq 'PowerVirtualAgents', x-ms-service-request-id: 803c316b-8215-4768-8839-96f416a2ca40:

2024-07-23 11:07:29.6706 | INF | bolt.authentication.http.AuthenticatedHttpClient :: Response code: OK Getting response body
2024-07-23 11:07:29.6706 | INF | System.Net.Http.HttpClient..dynamics.com.LogicalHandler :: Start processing HTTP request GET https://.dynamics.com/api/data/v9.2/bots?$select=botid,schemaname,name
2024-07-23 11:07:29.6706 | INF | System.Net.Http.HttpClient..dynamics.com.ClientHandler :: Sending HTTP request GET https://.dynamics.com/api/data/v9.2/bots?$select=botid,schemaname,name
2024-07-23 11:07:29.7780 | INF | System.Net.Http.HttpClient..dynamics.com.ClientHandler :: Received HTTP response headers after 94.4037ms - 200
2024-07-23 11:07:29.7780 | INF | System.Net.Http.HttpClient.
.dynamics.com.LogicalHandler :: End processing HTTP request after 96.5159ms - 200
2024-07-23 11:07:29.7780 | INF | bolt.authentication.http.AuthenticatedHttpClient :: HTTP call succeeded: 97ms, GET, https://*********.dynamics.com/, api/data/v9.2/bots?$select=botid,schemaname,name, x-ms-service-request-id: 21fb8f3c-2540-4e46-b6a1-d01f26c1b557:

2024-07-23 11:07:29.7780 | INF | bolt.authentication.http.AuthenticatedHttpClient :: Response code: OK Getting response body
2024-07-23 11:07:29.7940 | INF | System.Net.Http.HttpClient..dynamics.com.LogicalHandler :: Start processing HTTP request GET https://.dynamics.com/api/data/v9.2/solutions?$filter=uniquename%20eq%20'msdyn_RelevanceSearch'
2024-07-23 11:07:29.7940 | INF | System.Net.Http.HttpClient..dynamics.com.ClientHandler :: Sending HTTP request GET https://.dynamics.com/api/data/v9.2/solutions?$filter=uniquename%20eq%20'msdyn_RelevanceSearch'
2024-07-23 11:07:29.8826 | INF | System.Net.Http.HttpClient..dynamics.com.ClientHandler :: Received HTTP response headers after 88.448ms - 200
2024-07-23 11:07:29.8826 | INF | System.Net.Http.HttpClient.
.dynamics.com.LogicalHandler :: End processing HTTP request after 90.2923ms - 200
2024-07-23 11:07:29.8826 | INF | bolt.authentication.http.AuthenticatedHttpClient :: HTTP call succeeded: 91ms, GET, https://*********.dynamics.com/, api/data/v9.2/solutions?$filter=uniquename eq 'msdyn_RelevanceSearch', x-ms-service-request-id: 18013983-341d-47ed-940d-5df7bb7de110:

2024-07-23 11:07:29.8826 | INF | bolt.authentication.http.AuthenticatedHttpClient :: Response code: OK Getting response body
2024-07-23 11:07:29.9851 | INF | System.Net.Http.HttpClient..dynamics.com.LogicalHandler :: Start processing HTTP request POST https://.dynamics.com/api/data/v9.1/$batch
2024-07-23 11:07:29.9851 | INF | System.Net.Http.HttpClient..dynamics.com.ClientHandler :: Sending HTTP request POST https://.dynamics.com/api/data/v9.1/$batch
2024-07-23 11:07:30.8098 | INF | System.Net.Http.HttpClient..dynamics.com.ClientHandler :: Received HTTP response headers after 823.766ms - 200
2024-07-23 11:07:30.8098 | INF | System.Net.Http.HttpClient.
.dynamics.com.LogicalHandler :: End processing HTTP request after 825.044ms - 200
2024-07-23 11:07:31.4849 | INF | bolt.authentication.http.AuthenticatedHttpClient :: HTTP call succeeded: 1499ms, POST, https://.dynamics.com/, https://.dynamics.com/api/data/v9.1/$batch, x-ms-service-request-id: ************************:

2024-07-23 11:07:32.9554 | INF | Microsoft.Bot.Platform.Content.Internal.Dataverse.Http.DataverseClient :: Done: OK
2024-07-23 11:07:33.1644 | INF | bolt.cli.CommandProcessor :: EndExecutingVerb (Success: False, Execution Time(ms): 144)
2024-07-23 11:07:33.1784 | FTL | bolt.Session :: The method or operation is not implemented.|EXCEPTION: System.NotImplementedException: The method or operation is not implemented.
at bolt.module.copilot.services.FakeConnectorDefinitionMetadataService.GetHostedConnectorDefinitionAsync(AuthoringOperationContextBase authoringOperation, ConnectorId connectorId, CancellationToken ct)
at Microsoft.Bot.Platform.Content.Internal.ContentAuthoringService.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.Platform.Content.Internal.ContentAuthoringService.<>c__DisplayClass10_0.<b__0>d.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 bolt.module.copilot.verbs.CopilotExtractTranslationsVerb.d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at bolt.module.copilot.verbs.CopilotExtractTranslationsVerb.d__11.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 bolt.module.copilot.verbs.CopilotExtractTranslationsVerb.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 bolt.cli.CommandLine.VerbExecutor.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 bolt.cli.CommandLine.VerbExecutor.<>c__DisplayClass8_1.<b__2>d.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 bolt.cli.CommandLine.VerbExecutor.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 bolt.cli.CommandLine.VerbExecutor.d__8.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 bolt.cli.Verb.<>c__DisplayClass11_0.<b__0>d.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 bolt.cli.Verb.d__11.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 bolt.cli.Verb.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 bolt.cli.Verb.d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at bolt.cli.CommandProcessor.d__6.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 bolt.cli.CommandProcessor.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 bolt.cli.ModeManager.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 bolt.Session.d__14.MoveNext()
2024-07-23 11:07:33.1875 | ERR | bolt.Session :: at bolt.module.copilot.services.FakeConnectorDefinitionMetadataService.GetHostedConnectorDefinitionAsync(AuthoringOperationContextBase authoringOperation, ConnectorId connectorId, CancellationToken ct)
at Microsoft.Bot.Platform.Content.Internal.ContentAuthoringService.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.Platform.Content.Internal.ContentAuthoringService.<>c__DisplayClass10_0.<b__0>d.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 bolt.module.copilot.verbs.CopilotExtractTranslationsVerb.d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at bolt.module.copilot.verbs.CopilotExtractTranslationsVerb.d__11.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 bolt.module.copilot.verbs.CopilotExtractTranslationsVerb.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 bolt.cli.CommandLine.VerbExecutor.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 bolt.cli.CommandLine.VerbExecutor.<>c__DisplayClass8_1.<b__2>d.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 bolt.cli.CommandLine.VerbExecutor.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 bolt.cli.CommandLine.VerbExecutor.d__8.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 bolt.cli.Verb.<>c__DisplayClass11_0.<b__0>d.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 bolt.cli.Verb.d__11.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 bolt.cli.Verb.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 bolt.cli.Verb.d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at bolt.cli.CommandProcessor.d__6.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 bolt.cli.CommandProcessor.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 bolt.cli.ModeManager.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 bolt.Session.d__14.MoveNext()
2024-07-23 11:07:33.1875 | INF | bolt.Session :: End session. (sessionId: ************************; ResponseCode: 500)

2024-07-23 11:07:33.3211 | INF | Microsoft.PowerPlatform.Tooling.BatchedTelemetry :: BatchedTransmitter`1.StartUploadProcess Started uploader with process id: 26244

@ToyMakerGR ToyMakerGR added the bug Something isn't working label Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant