An error occurred while calling z:com.microsoft.azure.synapse.tokenlibrary.TokenLibrary.getSecret

Victor Seifert 151 Reputation points
2022-09-28T05:44:02.127+00:00

Since two days our pipelines start failing once in a while with the same error throughout - the TokenLibrary seemingly randomly does not work anymore.

TokenLibrary.getSecret(keyvault_name, key_name, keyvault_linkedservice_name)

Error log:

Py4JJavaError: An error occurred while calling z:com.microsoft.azure.synapse.tokenlibrary.TokenLibrary.getSecret.
: java.lang.Exception: Access token couldn't be obtained {"result":"DependencyError","errorId":"BadRequest","errorMessage":"LSRServiceException is [{\"StatusCode\":400,\"ErrorResponse\":{\"code\":null,\"message\":null,\"target\":null},\"StackTrace\":\" at Microsoft.Marlin.Common.ADF.Impl.LSRClient.CheckForFailures(HttpResponseMessage response, String responseContent) in C:\\source\\Common\\Microsoft.Marlin.Common.ADF\\Impl\\LSRClient.cs:line 355\r\n at Microsoft.Marlin.Common.ADF.Impl.LSRClient.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken, String traceId) in C:\\source\\Common\\Microsoft.Marlin.Common.ADF\\Impl\\LSRClient.cs:line 372\r\n at Microsoft.Marlin.Common.ADF.Impl.LSRClient.ResolveLinkedServiceAsync(String linkedServiceName, ResolveAudienceRequest request, String traceId, CancellationToken cancellationToken) in C:\\source\\Common\\Microsoft.Marlin.Common.ADF\\Impl\\LSRClient.cs:line 203\r\n at Microsoft.Marlin.TokenService.Token.LSRAudienceTokenProvider.GetToken(Boolean isLinkedService, String audience, String sessionToken, CancellationToken cancellationToken) in C:\\source\\TokenService\\Microsoft.Marlin.TokenService\\Token\\LSRAudienceTokenProvider.cs:line 153\r\n at Microsoft.Marlin.TokenService.Token.LSRAudienceTokenProvider.GetTokenForAudienceAsync(Boolean isLinkedService, String audience, String account, String sessionToken, SignaturePayload signaturePayload, CancellationToken cancellationToken) in C:\\source\\TokenService\\Microsoft.Marlin.TokenService\\Token\\LSRAudienceTokenProvider.cs:line 127\r\n at Microsoft.Marlin.TokenService.Controllers.TokenController.GetTokenAsync(TokenRequest request, CancellationToken cancellationToken) in C:\\source\\TokenService\\Microsoft.Marlin.TokenService\\Controllers\\TokenController.cs:line 82\r\n at lambda_method2111(Closure , Object )\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,405 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Anonymous
    2022-12-15T08:59:05.853+00:00

    We have the same issue. What was the fix?