AL icon indicating copy to clipboard operation
AL copied to clipboard

'al/downloadSymbols' failed with error: 'Object reference not set to an instance of an object.'

Open TeggiSandro opened this issue 1 month ago • 1 comments

Please report this issue to https://github.com/microsoft/al/issues including information on how to reproduce it, if possible. Processing of message 'al/downloadSymbols' failed with error: 'Object reference not set to an instance of an object.' Details: System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Dynamics.Nav.Deployment.Authentication.AccessTokenManager.TryGetAccessToken(IEmitLogger logger, String authority, String resourceScope, String clientId, String redirectUri, String usernameHint, String aadTenantIdHint, Boolean useInteractiveLogin) in X:\source\Prod\Microsoft.Dynamics.Nav.Deployment\Authentication\AccessTokenManager.cs:line 152 at Microsoft.Dynamics.Nav.Deployment.Authentication.AccessTokenManager.GetAccessToken(IEmitLogger logger, String authority, String resourceScope, String clientId, String redirectUri, String usernameHint, String aadTenantIdHint, Boolean useInteractiveLogin) in X:\source\Prod\Microsoft.Dynamics.Nav.Deployment\Authentication\AccessTokenManager.cs:line 50 at Microsoft.Dynamics.Nav.Deployment.Http.CloudHttpClientFactory.ObtainAccessToken(ConnectionOptions connectionOptions, String usernameHint, IEmitLogger logger) in X:\source\Prod\Microsoft.Dynamics.Nav.Deployment\Http\CloudHttpClientFactory.cs:line 210 at Microsoft.Dynamics.Nav.Deployment.Http.CloudHttpClientFactory.GetTenantToken(ConnectionOptions connectionOptions, IEmitLogger logger) in X:\source\Prod\Microsoft.Dynamics.Nav.Deployment\Http\CloudHttpClientFactory.cs:line 105 at Microsoft.Dynamics.Nav.Deployment.Http.CloudHttpClientFactory.Create(ConnectionOptions connectionOptions, IEmitLogger logger, Boolean skipRequestLogging, CookieContainer cookieContainer) in X:\source\Prod\Microsoft.Dynamics.Nav.Deployment\Http\CloudHttpClientFactory.cs:line 84 at Microsoft.Dynamics.Nav.Deployment.ApiClients.PackagesApiClient.DownloadPackages(ImmutableArray1 references, String targetDir) in X:\source\Prod\Microsoft.Dynamics.Nav.Deployment\ApiClients\PackagesApiClient.cs:line 58 at Microsoft.Dynamics.Nav.Deployment.ReferenceDownloader.NavDevServerPackageDownloader.DownloadPackages(ImmutableArray1 packages, String targetDirectory) in X:\source\Prod\Microsoft.Dynamics.Nav.Deployment\ReferenceDownloader\NavDevServerPackageDownloader.cs:line 32 at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.Extensions.DownloadSymbolsRequestHandler.DownloadFiles(DownloadSymbolsRequest request, String cacheDirectory, ImmutableArray1 referencesToDownload) in X:\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\LanguageServer\Extensions\DownloadSymbolsRequestHandler.cs:line 148 at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.Extensions.DownloadSymbolsRequestHandler.ProcessRequestAsync(DownloadSymbolsRequest request, Int32 requestId, CancellationToken cancellationToken) in X:\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\LanguageServer\Extensions\DownloadSymbolsRequestHandler.cs:line 110 at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.Extensions.NavServerRequestHandler2.HandleAsync(T request, Int32 requestId, CancellationToken cancellationToken) in X:\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\LanguageServer\Extensions\NavServerRequestHandler.cs:line 40 at Microsoft.Dynamics.Nav.EditorServices.Protocol.MessageProtocol.RequestHandlerBase`1.HandleAsync(JToken requestContents, Int32 requestId, CancellationToken cancellationToken) in X:\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\MessageProtocol\RequestHandlerBase.cs:line 85 at Microsoft.Dynamics.Nav.EditorServices.Protocol.RequestRegistry.Process(Message message) in X:\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\Endpoints\RequestRegistry.cs:line 84 Internal work item: AB#613462

TeggiSandro avatar Nov 18 '25 08:11 TeggiSandro

Can you specify your AL Language server version please?

kalberes avatar Nov 19 '25 12:11 kalberes