HodorNV / ALOps

ALOps
56 stars 24 forks source link

Extension API: Get Extension status - Exception in BCConnector.GetAPIData: The remote server returned an error: (404) Not Found. #604

Closed NAVFreak closed 1 year ago

NAVFreak commented 1 year ago

Describe the bug I'm running ALOps Extension API from a release pipeline. Seems like some parts works and some don't. We upgraded to 21.0 and put everything on a new server and I reinstalled external developer.

the used yaml n/a - used released pipeline

the output Also the complete output is necessary for us to see what is going on. Also use backtics:

2023-01-26T19:59:03.2115381Z ##[section]Starting: ALOps Extension API
2023-01-26T19:59:03.2235566Z ==============================================================================
2023-01-26T19:59:03.2235926Z Task         : ALOps Extension API
2023-01-26T19:59:03.2236197Z Description  : Get/Publish extensions with the Business Central API
2023-01-26T19:59:03.2236539Z Version      : ***.454.340***
2023-01-26T19:59:03.2236744Z Author       : Hodor
2023-01-26T19:59:03.2236995Z Help         : Get/Publish extensions with the Business Central API.
2023-01-26T19:59:03.2237336Z ==============================================================================
2023-01-26T19:59:04.9324281Z *** Validate configuration
2023-01-26T19:59:05.2663616Z *** Task Inputs:
2023-01-26T19:59:05.2727755Z 
2023-01-26T19:59:05.2862563Z name                                                                                 value
2023-01-26T19:59:05.2866562Z ----                                                                                 -----
2023-01-26T19:59:05.2872468Z usedocker                                                                            False
2023-01-26T19:59:05.2873505Z fixed_tag                                                                                 
2023-01-26T19:59:05.2875583Z interaction                                                                          batch
2023-01-26T19:59:05.2880188Z api_endpoint                          https://dev***-customer.Partner365.com:7098/BC***0WS/api
2023-01-26T19:59:05.2883135Z dev_endpoint                                                                              
2023-01-26T19:59:05.2888094Z dev_schemeupdatemode                                                           synchronize
2023-01-26T19:59:05.2905402Z apiversion                                                                            v***.0
2023-01-26T19:59:05.2906345Z authentication                                                                       basic
2023-01-26T19:59:05.2907238Z azure_tenant_id                                                                    default
2023-01-26T19:59:05.2908996Z azure_app_client_id                                                                       
2023-01-26T19:59:05.2909817Z azure_app_client_secret                                                                   
2023-01-26T19:59:05.2910703Z azure_app_client_certificate                                                              
2023-01-26T19:59:05.2911498Z azure_app_client_certificate_password                                                     
2023-01-26T19:59:05.2970255Z username                                                                        XXXXXX
2023-01-26T19:59:05.2971267Z password                                                                  XXXXXXXXXX
2023-01-26T19:59:05.2972144Z bccompany                                                                                 
2023-01-26T19:59:05.2973354Z artifact_path                                     c:\vsts-agent-win-x64-***.***.***\_work\r***\a
2023-01-26T19:59:05.2974274Z artifact_filter                                                                      *.app
2023-01-26T19:59:05.2975075Z showdeploymentstatus                                                                  True
2023-01-26T19:59:05.2976030Z checksecondsdelay                                                                       30
2023-01-26T19:59:05.2977434Z maxtries                                                                                ***0
2023-01-26T19:59:05.2978141Z replacepackageid                                                                     False
2023-01-26T19:59:05.2980135Z blocksymbolsonly                                                                     False
2023-01-26T19:59:05.2980306Z 
2023-01-26T19:59:05.2980622Z 
2023-01-26T19:59:05.2980767Z 
2023-01-26T19:59:05.3154388Z *** For documentation, please visit   : https://www.alops.be/documentation
2023-01-26T19:59:05.3160333Z 
2023-01-26T19:59:05.6178538Z *** ALOps License:
2023-01-26T19:59:05.6206127Z   * Licensed To: Partner AB (Collection/Organization License)
2023-01-26T19:59:05.6211391Z 
2023-01-26T19:59:06.8983153Z *** Imported required PS-Functions
2023-01-26T19:59:06.8994381Z *** Parse Task Parameters
2023-01-26T19:59:06.9843832Z *** Creating API Connector with endpoint [https://dev***-customer.Partner365.com:7098/BC***0WS/api]
2023-01-26T19:59:07.0330354Z *** API Version: v***.0
2023-01-26T19:59:07.0355929Z *** Interaction Mode: batch
2023-01-26T19:59:07.0388460Z *** API Authentication: Using Basic Authentication [Partneradmin]
2023-01-26T19:59:07.0498393Z *** List Companies
2023-01-26T19:59:07.0583971Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://dev***-customer.Partner365.com:7098/bc***0ws/api/microsoft/automation/v***.0/companies'
2023-01-26T19:59:23.1610999Z 
2023-01-26T19:59:23.1624560Z 
2023-01-26T19:59:23.1634683Z id                : 4e***c8d34-d039-ed***-b497-6045bdab9f4f
2023-01-26T19:59:23.1635888Z systemVersion     : ***0.3.4***673.430***6
2023-01-26T19:59:23.1637235Z timestamp         : ***6***9687
2023-01-26T19:59:23.1638235Z name              : *Backup customer AB ***09****
2023-01-26T19:59:23.1639513Z displayName       : *Backup customer AB ***09****
2023-01-26T19:59:23.1640253Z businessProfileId : 
2023-01-26T19:59:23.1641309Z systemCreatedAt   : ***0***-09-***T***7:09:5***.607Z
2023-01-26T19:59:23.1642424Z systemCreatedBy   : bf993b7***-69a8-4ba***-8fa3-e45a6de***7b45
2023-01-26T19:59:23.1643557Z systemModifiedAt  : ***0***-09-***T***7:***7:4***.793Z
2023-01-26T19:59:23.1644560Z systemModifiedBy  : bf993b7***-69a8-4ba***-8fa3-e45a6de***7b45
2023-01-26T19:59:23.1644960Z 
2023-01-26T19:59:23.1645737Z id                : 05***fd833-0556-ed***-b498-6045bdab9f4f
2023-01-26T19:59:23.1646656Z systemVersion     : ***0.3.4***673.430***6
2023-01-26T19:59:23.1647490Z timestamp         : ***00***35
2023-01-26T19:59:23.1648336Z name              : *Backup customer AB ***0***7"
2023-01-26T19:59:23.1649212Z displayName       : *Backup customer AB ***0***7"
2023-01-26T19:59:23.1650007Z businessProfileId : 
2023-01-26T19:59:23.1650903Z systemCreatedAt   : ***0***-***0-***7T***4:39:47.3***Z
2023-01-26T19:59:23.1651988Z systemCreatedBy   : 3837***fd-c38***-4b***-a***3-3e009fd90***da
2023-01-26T19:59:23.1653039Z systemModifiedAt  : ***0***-***0-***7T***4:5***:47.307Z
2023-01-26T19:59:23.1654126Z systemModifiedBy  : 3837***fd-c38***-4b***-a***3-3e009fd90***da
2023-01-26T19:59:23.1654521Z 
2023-01-26T19:59:23.1655445Z id                : 804***7ed***-9880-ed***-8***a***-6045bdace***ae
2023-01-26T19:59:23.1657231Z systemVersion     : ***0.3.4***673.430***6
2023-01-26T19:59:23.1659181Z timestamp         : 7***54***388
2023-01-26T19:59:23.1661508Z name              : *Lekolär Customer AB ***0
2023-01-26T19:59:23.1663008Z displayName       : *Lekolär customer AB ***0
2023-01-26T19:59:23.1664118Z businessProfileId : 
2023-01-26T19:59:23.1664956Z systemCreatedAt   : ***0***-***-***0T***9:0***:***8.337Z
2023-01-26T19:59:23.1666063Z systemCreatedBy   : 3837***fd-c38***-4b***-a***3-3e009fd90***da
2023-01-26T19:59:23.1668465Z systemModifiedAt  : ***0***-***-***T07:***:***.4***7Z
2023-01-26T19:59:23.1670527Z systemModifiedBy  : 3837***fd-c38***-4b***-a***3-3e009fd90***da
2023-01-26T19:59:23.1671142Z 
2023-01-26T19:59:23.1673186Z id                : 3ae***4***5d-***af8-ec***-8***ef-000d3a***3***f***8
2023-01-26T19:59:23.1674405Z systemVersion     : ***0.3.4***673.430***6
2023-01-26T19:59:23.1675210Z timestamp         : 37557
2023-01-26T19:59:23.1675950Z name              : CRONUS Sverige AB
2023-01-26T19:59:23.1677206Z displayName       : 
2023-01-26T19:59:23.1677888Z businessProfileId : 
2023-01-26T19:59:23.1678811Z systemCreatedAt   : ***0***-06-30T0***:***4:***6.9***Z
2023-01-26T19:59:23.1679853Z systemCreatedBy   : 00000000-0000-0000-0000-00000000000***
2023-01-26T19:59:23.1680880Z systemModifiedAt  : ***0***-06-30T0***:***4:***6.9***Z
2023-01-26T19:59:23.1681883Z systemModifiedBy  : 00000000-0000-0000-0000-00000000000***
2023-01-26T19:59:23.1683577Z 
2023-01-26T19:59:23.1684468Z id                : b4c5d7***4-44***9-ed***-b495-6045bdab9f4f
2023-01-26T19:59:23.1685408Z systemVersion     : ***0.3.4***673.430***6
2023-01-26T19:59:23.1686189Z timestamp         : 963983
2023-01-26T19:59:23.1686905Z name              : customer AB
2023-01-26T19:59:23.1687632Z displayName       : 
2023-01-26T19:59:23.1688336Z businessProfileId : 
2023-01-26T19:59:23.1689227Z systemCreatedAt   : ***0***-08-3***T***5:46:58.***03Z
2023-01-26T19:59:23.1690291Z systemCreatedBy   : 3837***fd-c38***-4b***-a***3-3e009fd90***da
2023-01-26T19:59:23.1691301Z systemModifiedAt  : ***0***-08-3***T***5:46:58.***03Z
2023-01-26T19:59:23.1692336Z systemModifiedBy  : 3837***fd-c38***-4b***-a***3-3e009fd90***da
2023-01-26T19:59:23.1692718Z 
2023-01-26T19:59:23.1692878Z 
2023-01-26T19:59:23.1693035Z 
2023-01-26T19:59:23.1741888Z *** Selected Company: *Backup customer AB ***09**** [4e***c8d34-d039-ed***-b497-6045bdab9f4f]
2023-01-26T19:59:23.1850884Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://dev***-customer.Partner365.com:7098/bc***0ws/api/microsoft/automation/v***.0/companies(4e***c8d34-d039-ed***-b497-6045bdab9f4f)/extensions'
2023-01-26T19:59:23.8107156Z ##[error]Exception in BCConnector.GetAPIData: The remote server returned an error: (404) Not Found.
2023-01-26T19:59:23.8123987Z *** Installed Extensions:
2023-01-26T19:59:23.8150198Z 
2023-01-26T19:59:23.8163452Z *** Published Extensions (not installed):
2023-01-26T19:59:23.8172619Z 
2023-01-26T19:59:23.8290735Z *** Import NAV/BC Management DLL's
2023-01-26T19:59:23.8340547Z *** ServiceTier not specified, loading default assemblies.
2023-01-26T19:59:23.8391273Z *** Default Assemblies not found. Load via BC-Artifacts
2023-01-26T19:59:23.8446286Z *** Install/Update BCContainerHelper [https://github.com/microsoft/navcontainerhelper]
2023-01-26T19:59:23.8495107Z *** Check BcContainerHelper
2023-01-26T19:59:23.9032945Z *** Load BcContainerHelper
2023-01-26T19:59:23.9674018Z BcContainerHelper version 4.0.5
2023-01-26T19:59:24.0902331Z BcContainerHelper emits usage statistics telemetry to Microsoft
2023-01-26T19:59:25.1197259Z 
2023-01-26T19:59:25.1199099Z ModuleType Version    Name                                ExportedCommands                                             
2023-01-26T19:59:25.1200043Z ---------- -------    ----                                ----------------                                             
2023-01-26T19:59:25.1201067Z Script     4.0.5      BcContainerHelper                   {Add-FontsToBcContainer, Add-GitToAlProjectFolder, Backup-...
2023-01-26T19:59:25.1201557Z 
2023-01-26T19:59:25.1201710Z 
2023-01-26T19:59:25.1201846Z 
2023-01-26T19:59:25.1204221Z 
2023-01-26T19:59:25.1240940Z ##[command]"Get-BCArtifactUrl" 
2023-01-26T19:59:25.1241589Z Name                           Value                                                                                   
2023-01-26T19:59:25.1242045Z ----                           -----                                                                                   
2023-01-26T19:59:25.1242753Z select                         Latest                                                                                  
2023-01-26T19:59:25.1243209Z type                           OnPrem                                                                                  
2023-01-26T19:59:25.1243752Z country                        W***                                                                                      
2023-01-26T19:59:25.1243906Z 
2023-01-26T19:59:25.1243993Z 
2023-01-26T19:59:25.1244671Z  -select: Latest -type: OnPrem -country: W***
2023-01-26T19:59:27.4925184Z Downloading application artifact /onprem/***.3.5***409.5***464/w***
2023-01-26T19:59:27.5131618Z Downloading C:\Windows\TEMP\87807***d3-***4ed-4aff-8***44-0f5363e9a495.zip
2023-01-26T19:59:29.1869839Z Unpacking application artifact to tmp folder using Expand-Archive
2023-01-26T19:59:32.7132460Z Downloading platform artifact /onprem/***.3.5***409.5***464/platform
2023-01-26T19:59:32.7163040Z Downloading C:\Windows\TEMP\7f67fb6b-c90***-4***da-8d5a-bd588cb4f8dc.zip
2023-01-26T19:59:36.5634037Z Unpacking platform artifact to tmp folder using Expand-Archive
2023-01-26T20:01:37.8822076Z Downloading Prerequisite Components
2023-01-26T20:01:37.8931962Z Downloading C:\bcartifacts.cache\onprem\***.3.5***409.5***464\platform\Prerequisite Components\DotNetCore\DotNetCore.***.0.4_***.***.***-WindowsHosting.exe
2023-01-26T20:01:39.3437056Z Downloading C:\bcartifacts.cache\onprem\***.3.5***409.5***464\platform\Prerequisite Components\IIS URL Rewrite Module\rewrite_***.0_rtw_x64.msi
2023-01-26T20:01:40.3667532Z *** Platform: C:\bcartifacts.cache\onprem\***.3.5***409.5***464\platform
2023-01-26T20:01:40.3714632Z *** Localisation: C:\bcartifacts.cache\onprem\***.3.5***409.5***464\w***
2023-01-26T20:01:40.4311418Z *** BC Management DLL: C:\bcartifacts.cache\onprem\***.3.5***409.5***464\platform\ServiceTier\program files\Microsoft Dynamics NAV\***0\Service\Microsoft.Dynamics.Nav.Management.dll
2023-01-26T20:01:40.4738178Z *** BC App Management DLL: C:\bcartifacts.cache\onprem\***.3.5***409.5***464\platform\ServiceTier\program files\Microsoft Dynamics NAV\***0\Service\Microsoft.Dynamics.Nav.Apps.Management.dll
2023-01-26T20:01:40.5003290Z *** BC NCL Management DLL: C:\bcartifacts.cache\onprem\***.3.5***409.5***464\platform\ServiceTier\program files\Microsoft Dynamics NAV\***0\Service\Microsoft.Dynamics.Nav.Ncl.dll
2023-01-26T20:01:40.8696824Z *** BC Types DLL: C:\bcartifacts.cache\onprem\***.3.5***409.5***464\platform\ServiceTier\program files\Microsoft Dynamics NAV\***0\Service\Microsoft.Dynamics.Nav.Types.dll
2023-01-26T20:01:40.8709169Z *** Batch Publish Extensions
2023-01-26T20:01:40.8721550Z   * Artifact Path  : c:\vsts-agent-win-x64-***.***.***\_work\r***\a
2023-01-26T20:01:40.8958289Z *** Resolved Path  : c:\vsts-agent-win-x64-***.***.***\_work\r***\a
2023-01-26T20:01:40.8971308Z *** Get Available Applications from [c:\vsts-agent-win-x64-***.***.***\_work\r***\a].
2023-01-26T20:01:40.9047795Z *** Get [*.app] files recursive from [c:\vsts-agent-win-x64-***.***.***\_work\r***\a]
2023-01-26T20:01:40.9078036Z *** Found [***5] files.
2023-01-26T20:01:40.9089880Z *** Extract App detail from [C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complete\Dependencies\Armada Dynamics AS_EQM 365 Rental_***.3.***0***3.***46***_APP.app]
2023-01-26T20:01:41.0696979Z *** Extract App detail from [C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complete\Dependencies\Partner AB_Dimension on Ledger Entries_***0.0.***0***49.***36_APP.app]
2023-01-26T20:01:41.0766993Z *** Extract App detail from [C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complete\Dependencies\Partner AB_EQM Translation_***0.0.***0***5***.***806_APP.app]
2023-01-26T20:01:41.0789118Z *** Extract App detail from [C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complete\Dependencies\Partner AB_EQM Translation_***.0.***0***303.***573_APP.app]
2023-01-26T20:01:41.0809865Z *** Extract App detail from [C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complete\Dependencies\Partner AB_Partner Document Mail_***0.0.***0***5***.***94***_APP.app]
2023-01-26T20:01:41.0838458Z *** Extract App detail from [C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complete\Dependencies\Partner AB_Partner Edge Saas_***9.0.***0***50.***500_APP.app]
2023-01-26T20:01:41.0872318Z *** Extract App detail from [C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complete\Dependencies\Partner AB_Partner Lean Rental_***.0.***0***303.***6***_APP.app]
2023-01-26T20:01:41.0936756Z *** Extract App detail from [C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complete\Dependencies\Partner AB_Partner Object Launcher_***7.0.***0***30***.***079_APP.app]
2023-01-26T20:01:41.0958477Z *** Extract App detail from [C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complete\Dependencies\Partner AB_Partner Text Blob Management_***7.0.***0***53.***03***_APP.app]
2023-01-26T20:01:41.0979054Z *** Extract App detail from [C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complete\Dependencies\Programekonomi Svenska AB_SweBase_***.***.8.0.app]
2023-01-26T20:01:41.1090502Z *** Extract App detail from [C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complete\Dependencies\SmartApps_LicenseProvider_***.***.76473.0.app]
2023-01-26T20:01:41.1128387Z *** Extract App detail from [C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complete\customer\Microsoft_Performance Toolkit Tests_***0.0.***0***304.***63***_APP.app]
2023-01-26T20:01:41.1155466Z *** Extract App detail from [C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complete\customer\Microsoft_Performance Toolkit_***.0.***0***304.***63***_APP.app]
2023-01-26T20:01:41.1180021Z *** Extract App detail from [C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complete\customer\Partner AB_customer Base_***.0.***0***304.***63***_DEV_APP.app]
2023-01-26T20:01:41.1239486Z *** Extract App detail from [C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complete\customer\Partner AB_Test customer Base_***.0.***0***304.***63***_TEST.app]
2023-01-26T20:01:41.1270732Z *** Remove duplicate Apps
2023-01-26T20:01:41.1367727Z   * Partner AB EQM Translation v***0.0.***0***5***.***806
2023-01-26T20:01:41.2446691Z *** Installing Applications:
2023-01-26T20:01:41.2475964Z 
2023-01-26T20:01:41.2476908Z Publisher                 Name                        Path                                                             
2023-01-26T20:01:41.2477840Z ---------                 ----                        ----                                                             
2023-01-26T20:01:41.2479118Z SmartApps                 LicenseProvider             C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complet...
2023-01-26T20:01:41.2480286Z Armada Dynamics AS        EQM 365 Rental              C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complet...
2023-01-26T20:01:41.2481454Z Programekonomi Svenska AB SweBase                     C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complet...
2023-01-26T20:01:41.2482619Z Partner AB                  Partner Text Blob Management  C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complet...
2023-01-26T20:01:41.2483770Z Partner AB                  Partner Document Mail         C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complet...
2023-01-26T20:01:41.2484926Z Partner AB                  Partner Lean Rental           C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complet...
2023-01-26T20:01:41.2486067Z Partner AB                  customer Base               C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complet...
2023-01-26T20:01:41.2487220Z Microsoft                 Performance Toolkit         C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complet...
2023-01-26T20:01:41.2488360Z Partner AB                  Test customer Base          C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complet...
2023-01-26T20:01:41.2489532Z Partner AB                  Dimension on Ledger Entries C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complet...
2023-01-26T20:01:41.2490685Z Partner AB                  Partner Object Launcher       C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complet...
2023-01-26T20:01:41.2491842Z Partner AB                  EQM Translation             C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complet...
2023-01-26T20:01:41.2492967Z Partner AB                  Partner Edge Saas             C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complet...
2023-01-26T20:01:41.2495402Z Microsoft                 Performance Toolkit Tests   C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complet...
2023-01-26T20:01:41.2495933Z 
2023-01-26T20:01:41.2496189Z 
2023-01-26T20:01:41.2496363Z 
2023-01-26T20:01:41.2509556Z *** Publish App [C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complete\Dependencies\SmartApps_LicenseProvider_***.***.76473.0.app]
2023-01-26T20:01:41.2655236Z *** Upload extension [C:\vsts-agent-win-x64-***.***.***\_work\r***\a\_customer DEV Complete\Dependencies\SmartApps_LicenseProvider_***.***.76473.0.app]
2023-01-26T20:01:41.2671889Z *** Get App Info
2023-01-26T20:01:41.2739267Z  * App.PackageID = 3660cd***f-44***0-458c-a***3b-d***8b4d84d5bc
2023-01-26T20:01:41.2768430Z  * App.ID        = ***63e0***54-8***ae-44b6-8***c***-***fe4***0***f54a
2023-01-26T20:01:41.2779899Z  * App.Name      = LicenseProvider
2023-01-26T20:01:41.2790908Z  * App.Publisher = SmartApps
2023-01-26T20:01:41.2801655Z  * App.Version   = ***.***.76473.0
2023-01-26T20:01:41.2874313Z *** Get Extension status
2023-01-26T20:01:41.2889017Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://dev***-customer.Partner365.com:7098/bc***0ws/api/microsoft/automation/v***.0/companies(4e***c8d34-d039-ed***-b497-6045bdab9f4f)/extensions'
2023-01-26T20:01:41.7579353Z ##[error]Exception in BCConnector.GetAPIData: The remote server returned an error: (404) Not Found.
2023-01-26T20:01:41.7784198Z ##[command]Invoke-RestMethod -Method Patch -Uri 'https://dev***-customer.Partner365.com:7098/bc***0ws/api/microsoft/automation/v***.0/companies(4e***c8d34-d039-ed***-b497-6045bdab9f4f)/extensionUpload(0)/content'
2023-01-26T20:01:42.4498418Z ##[error]{
  "error": {
    "code": "BadRequest_NotFound",
    "message": "The URI segment 'content' is invalid after the segment 'extensionUpload(0)'."
  }
}
2023-01-26T20:01:42.5023034Z ##[section]Finishing: ALOps Extension API

Expected behavior Deploy apps

Screenshots image

waldo1001 commented 1 year ago

404 not found basically means that the endpoint doesn't exist - so I assume that the automation API's are not installed?

This one fails - which basically means it couldn't find any extensions:

##[command]Invoke-RestMethod -Method Get -Uri 'https://dev***-customer.Partner365.com:7098/bc***0ws/api/microsoft/automation/v***.0/companies(4e***c8d34-d039-ed***-b497-6045bdab9f4f)/extensions'

Are you sure you re-installed the necessary extensions?

My guess - this extension is missing:

    "id":  "10cb69d9-bc8a-4d27-970a-9e110e9db2a5",
    "name":  "_Exclude_APIV2_",
    "publisher":  "Microsoft",
    "version":  "21.3.51409.51464",
    "brief":  "_Exclude_APIV2_",
    "description":  "_Exclude_APIV2_",
NAVFreak commented 1 year ago

Oh! It was another team who did the upgrade so I'll have to verify this but now I got something to work on 😊

NAVFreak commented 1 year ago

You were right, they hadn't updated/installed the excluded apps. But now my problem transfered into #592 instead. Must be related to the upgrade.

waldo1001 commented 1 year ago

It might be because you opened the deployment page too soon.

I recommend to:

It sounds weird, but you have to know how the deploymentstatus-page works - it's actually reading a file on the serverinstance, which locks the file while it's writing to it, which could (not always) block the deployment process.. . The only way how to solve it is to restart the serverinstance, and deploy a new version of the app.. .

NAVFreak commented 1 year ago

Wait what? Are you talking about the mime error in #592 that happens at the first patch call (Invoke-RestMethod -Method Patch ) ?

`
2023-02-01T20:37:55.2871720Z *** Get Extension status
2023-02-01T20:37:55.2886845Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://dev***-CompanyName.partner365.com:7098/bc***0ws/api/microsoft/automation/v***.0/companies(4e***c8d34-d039-ed***-b497-6045bdab9f4f)/extensions'
2023-02-01T20:37:56.3640568Z ##[command]Invoke-RestMethod -Method Patch -Uri 'https://dev***-CompanyName.partner365.com:7098/bc***0ws/api/microsoft/automation/v***.0/companies(4e***c8d34-d039-ed***-b497-6045bdab9f4f)/extensionUpload(0)/content'
2023-02-01T20:37:57.3352447Z ##[error]{
  "error": {
    "code": "Unknown",
    "message": "A supported MIME type could not be found that matches the content type of the response. None of the supported type(s) 'Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaType, Microsoft.OData.ODataMediaTyp...' matches the content type 'application/octet-stream'."
  }
}
2023-02-01T20:37:57.3918632Z ##[section]Finishing: ALOps Extension API
`

That happens in ALOps Extension API so it out of our control (?). image

waldo1001 commented 1 year ago

No, not that, sorry .. . I haven't been able to repro that particular problem. Please look into: