We have the same issue. What was the fix?
An error occurred while calling z:com.microsoft.azure.synapse.tokenlibrary.TokenLibrary.getSecret
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.\