Unable to download symbols for newly created local docker sandbox environment (2020 wave 2)
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 881
- Forks
- 285
- Avg merge
- 3d 36m
- Merged PRs (30d)
- 1
Description
Hello folks,
I created a local docker container of sandbox for wave 2, 2020.
Following are the commands that I used to create the sandbox environment.
$artifactUrl = Get-BCArtifactUrl -select Latest
$credential = New-Object pscredential 'admin', (ConvertTo-SecureString -String 'Alpha_975' -AsPlainText -Force)
New-BcContainer -accept_eula -containerName ax365bc -artifactUrl $artifactUrl -Credential $credential -assignPremiumPlan -updateHosts -imageName mcr.microsoft.com/businesscentral -includeAL -includeTestToolkit -installCertificateOnHost -memoryLimit 6G -useSSL
The container got successfully created and I can browse and everything seems fine.
I then created an extension in VS Code using the AL Go, but when I try to download symbols I am getting the following error.
Authorization has failed or the credentials have expired. The credential cache has been cleaned. Any access to reach Business Central would require new authorization.
Following the launch.json and app.json files
Launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Your own server",
"request": "launch",
"type": "al",
"environmentType": "Sandbox",
"server": "https://ax365bc",
"serverInstance": "BC",
"authentication": "UserPassword",
"startupObjectId": 22,
"startupObjectType": "Page",
"breakOnError": true,
"launchBrowser": true,
"enableLongRunningSqlStatements": true,
"enableSqlInformationDebugger": true,
"tenant": "default"
}
]
}
app.json
{
"id": "8d8e0534-bda4-4907-8867-aeb58e05f623",
"name": "ALProject3",
"publisher": "Default publisher",
"version": "1.0.0.0",
"brief": "",
"description": "",
"privacyStatement": "",
"EULA": "",
"help": "",
"url": "",
"logo": "",
"dependencies": [],
"screenshots": [],
"platform": "17.0.0.0",
"application": "17.0.0.0",
"idRanges": [
{
"from": 50100,
"to": 50149
}
],
"contextSensitiveHelpUrl": "https://ALProject3.com/help/",
"showMyCode": true,
"runtime": "6.0"
}
This is the user card, below, I tried the username with and without the domain name, but no luck.
(
)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the symbol-download failure using the PowerShell New-BcContainer setup and the AL Go project in VS Code. Start by comparing the authentication settings in launch.json with the credentials shown in the user card, then verify the platform and application versions in app.json. Done means the newly created local sandbox accepts authorization and downloads symbols successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, powershell, vscode
- Domain
- authentication, developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100