Hello,
I'm new in Dynamics 365 and specifically to Business Central. I got an issue when trying to make a call to external API and I already asked about that, but got no answer. here's the link: httpclient always return false in sandbox container local
and then I tried to use the SMTP client to send an email and it didn't works, I'm using SMTP server https://mailtrap.io/. I think this has the same problem, my BC container cannot receive any response from outside.
its weird, this both SMTP for Email and HttpClient is works on my sandbox online.
here are the error messages:
PowerShell Script:
#install-module navcontainerhelper -force # set accept_eula to $true to accept the eula found here: https://go.microsoft.com/fwlink/?linkid=861843 $accept_eula = $true $containername = 'testing-bc2' $navdockerimage = 'mcr.microsoft.com/businesscentral/sandbox:xxxxx-au' $appbacpacuri = '' $tenantbacpacuri = '' $additionalParameters = @() if ($appbacpacuri -ne '' -and $tenantbacpacuri -ne '') { $additionalParameters = @("--env appbacpac=""$appbacpacuri""","--env tenantBacpac=""$tenantbacpacuri""") } $credential = get-credential -UserName $env:USERNAME -Message "Using Windows Authentication. Please enter your Windows credentials." New-NavContainer -accept_eula:$accept_eula ` -memoryLimit 4G ` -containername $containername ` -auth NavUserPassword ` -Credential $credential ` -alwaysPull ` -doNotExportObjectsToText ` -usessl:$false ` -updateHosts ` -assignPremiumPlan ` -shortcuts Desktop ` -imageName $navdockerimage ` -additionalParameters $additionalParameters Setup-NavContainerTestUsers -containerName $containername -password $credential.Password