Download AL symbols not found error, how to change my connection url?

kuhikuhi Member Posts: 13
Why my Visual Studio is connecting to
http://adrianbc/BC/dev/metadata?tenant=default
?

I'm able to connect by browser to Business Central:
a1zq3i5ce5d4.png

When I try to download AL symbols I get Not Found error:
[2022-02-11 13:20:58.02] Using reference symbols cache path: c:\Users\dimitri\OneDriveArqui\AL\Pan\./.alpackages
[2022-02-11 13:20:58.02] Sending request to http://adrianbc/BC/dev/metadata?tenant=default
[2022-02-11 13:20:58.03] The request for path /BC/dev/metadata?tenant=default failed with code NotFound. Reason: Not Found
[2022-02-11 13:20:58.03] Sending request to http://adrianbc/BC/dev/webendpoint
[2022-02-11 13:20:58.03] The request for path /BC/dev/webendpoint failed with code NotFound. Reason: Not Found
[2022-02-11 13:20:58.03] Sending request to http://adrianbc/BC/dev/metadata?tenant=default
[2022-02-11 13:20:58.03] The request for path /BC/dev/metadata?tenant=default failed with code NotFound. Reason: Not Found
[2022-02-11 13:20:58.03] Sending request to http://adrianbc/BC/dev/webendpoint
[2022-02-11 13:20:58.04] The request for path /BC/dev/webendpoint failed with code NotFound. Reason: Not Found
[2022-02-11 13:20:58.04] Sending request to http://adrianbc/BC/dev/metadata?tenant=default
[2022-02-11 13:20:58.04] The request for path /BC/dev/metadata?tenant=default failed with code NotFound. Reason: Not Found
[2022-02-11 13:20:58.04] Sending request to http://adrianbc/BC/dev/webendpoint
[2022-02-11 13:20:58.04] The request for path /BC/dev/webendpoint failed with code NotFound. Reason: Not Found

Here is my launch.json:
{
"version": "0.2.0",
"configurations": [        
    {
        "type": "al",
        "request": "launch",
        "name": "AdrianBC local",
        "server": "http://AdrianBC",
        "port": 80,
        "serverInstance": "BC",
        "authentication": "UserPassword",
        "breakOnError": true,
        "launchBrowser": true,
        "enableLongRunningSqlStatements": true,
        "enableSqlInformationDebugger": true,
        "tenant": "default",
        "schemaUpdateMode": "Synchronize"
    }
]}

Here is my docker setup:
Mounting Tenant
Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
Sync'ing Tenant
Tenant is Operational
Creating http download site
Setting SA Password and enabling SA
Creating adrian as SQL User and add to sysadmin
Creating SUPER user
Container IP Address: 172.24.103.254
Container Hostname  : AdrianBC
Container Dns Name  : AdrianBC
Web Client          : http://AdrianBC/BC/?tenant=default
Dev. Server         : http://AdrianBC
Dev. ServerInstance : BC
Dev. Server Tenant  : default
Setting AdrianBC to 172.24.103.254 in host hosts file
Setting AdrianBC-default to 172.24.103.254 in host hosts file
Setting AdrianBC-default to 172.24.103.254 in container hosts file

Files:
http://AdrianBC:8080/ALLanguage.vsix

Container Total Physical Memory is 8.5Gb
Container Free Physical Memory is 5.8Gb

Initialization took 38 seconds
Ready for connections!
Reading CustomSettings.config from AdrianBC
Creating Desktop Shortcuts for AdrianBC
Container AdrianBC successfully created

Use:
Get-BcContainerEventLog -containerName AdrianBC to retrieve a snapshot of the event log from the container
Get-BcContainerDebugInfo -containerName AdrianBC to get debug information about the container
Enter-BcContainer -containerName AdrianBC to open a PowerShell prompt inside the container
Remove-BcContainer -containerName AdrianBC to remove the container again
docker logs AdrianBC to retrieve information about URL's again

PS C:\WINDOWS\system32>

This is how I've created the docker in PowerShell:
Enable-WindowsOptionalFeature -Online -FeatureName $("Microsoft-Hyper-V", "Containers") -All

Set-ExecutionPolicy -ExecutionPolicy Unrestricted

Import-Module PowerShellGet

Install-Module -Name BcContainerHelper

$artifactUrl = Get-BCArtifactUrl -version 19 -country es  -type Sandbox

New-BCContainer -accept_eula -accept_outdated -containerName AdrianBC -artifactUrl $artifactUrl -shortcuts DesktopFolder -updateHosts -isolation hyperv -doNotExportObjectsToText -restart no -auth UserPassword -Verbose -locale "es-ES"

Best Answer

Answers

  • BertVerbBertVerb Member Posts: 24
    Change your port in the launch.json to 7049
  • kuhikuhi Member Posts: 13
    BertVerb wrote: »
    Change your port in the launch.json to 7049

    didn't work
    [2022-02-12 22:48:34.12] Targeting server 'http://AdrianBC', server instance 'BC' and tenant 'default'.
    [2022-02-12 22:48:34.12] Using user name and password authentication. User name used is: 'adrian'.
    [2022-02-12 22:48:34.15] Sending request to http://adrianbc:7049/BC/dev/packages?publisher=Microsoft&appName=Application&versionText=19.0.0.0&appId=00000000-0000-0000-0000-000000000000&tenant=default
    [2022-02-12 22:48:34.16] Sending request to http://adrianbc:7049/BC/dev/packages?publisher=Microsoft&appName=System&versionText=1.0.0.0&appId=8874ed3a-0643-4247-9ced-7a7002f7135d&tenant=default
    [2022-02-12 22:48:34.16] Sending request to http://adrianbc:7049/BC/dev/packages?publisher=Arquiconsult Sistemas de Gestión%2C S.L.&appName=OPAN - Integración Hiopos&versionText=1.0.0.2&appId=42173e9d-1f11-4f57-b530-d1f182c27d98&tenant=default
    [2022-02-12 22:48:35.10] The request for path /BC/dev/packages?publisher=Arquiconsult%20Sistemas%20de%20Gesti%C3%B3n%2C%20S.L.&appName=OPAN%20-%20Integraci%C3%B3n%20Hiopos&versionText=1.0.0.2&appId=42173e9d-1f11-4f57-b530-d1f182c27d98&tenant=default failed with code NotFound. Reason: No published package matches the provided arguments.
    [2022-02-12 22:48:35.31] The following dependencies will be queried for propagated dependencies:
    System Application by Microsoft (19.3.0.0)
    Base Application by Microsoft (19.3.0.0)
    [2022-02-12 22:48:35.31] Sending request to http://adrianbc:7049/BC/dev/packages?publisher=Microsoft&appName=System Application&versionText=19.3.0.0&appId=63ca2fa4-4f03-4f2b-a480-172fef340d3f&tenant=default
    [2022-02-12 22:48:35.31] Sending request to http://adrianbc:7049/BC/dev/packages?publisher=Microsoft&appName=Base Application&versionText=19.3.0.0&appId=437dbf0e-84ff-417a-965d-ed2bb9650972&tenant=default
    [2022-02-12 22:48:36.63] Could not download reference symbols. Please ensure that:
    1. The correct server name and instance are specified in the launch.json file.
    2. The correct application version is specified in the app.json file.
    3. The dependencies are correctly specified in the app.json file.
    
  • DenSterDenSter Member Posts: 8,284
    edited 2022-02-12 Answer ✓
    The symbols are not in the tenant database, so remove the tenant and the port. I never have those specified in my launch.json
  • BertVerbBertVerb Member Posts: 24
    You must specify the tenant.
    If port is 7049 then you don't have to mentioned it indeed.
  • DenSterDenSter Member Posts: 8,284
    BertVerb wrote: »
    You must specify the tenant
    No, you don't

  • DenSterDenSter Member Posts: 8,284
    edited 2022-02-14
    actually... ahem... seems like it does require a tenant, even in a container. I thought I checked before posting that but it seems there's a tenant in every one of my launch.json, and it does not let me download symbols without one. That's so weird, I was convinced that it didnt need one.
  • BertVerbBertVerb Member Posts: 24
    DenSter wrote: »
    actually... ahem... seems like it does require a tenant, even in a container. I thought I checked before posting that but it seems there's a tenant in every one of my launch.json, and it does not let me download symbols without one. That's so weird, I was convinced that it didnt need one.

    Indeed sometimes it is confusing when you use tenant databases and single databases. I have made that mistake also :smile:
  • kuhikuhi Member Posts: 13
    it's true I just had to remove the port, the tenant is required.
    Thank you <3
Sign In or Register to comment.