microsoft / AL-Go

The plug-and-play DevOps solution for Business Central app development on GitHub
MIT License
286 stars 121 forks source link

[Question]: CI/CD Build fails at step/line 476 with a 404 not found #1226

Open StreichersBC opened 3 weeks ago

StreichersBC commented 3 weeks ago

Question

A dependent appsource app is giving a 404 error in the build.

Error: Error: Unexpected error when running action. Error Message: Exception calling "GetResult" with "0" argument(s): "Response status code does not indicate success: 404 (Not Found)." Response status code does not indicate success: 404 (Not Found)., StackTrace: at Compile-AppInBcContainer, C:\ProgramData\BcContainerHelper\6.0.24\BcContainerHelper\AppHandling\Compile-AppInNavContainer.ps1: line 465 <- at , C:\ProgramData\BcContainerHelper\6.0.24\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 840 <- at , C:\ProgramData\BcContainerHelper\6.0.24\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 2001 <- at , C:\ProgramData\BcContainerHelper\6.0.24\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 1528 <- at , C:\ProgramData\BcContainerHelper\6.0.24\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 1521 <- at , C:\ProgramData\BcContainerHelper\6.0.24\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 971 <- at Run-AlPipeline, C:\ProgramData\BcContainerHelper\6.0.24\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 933 <- at , D:\a_actions\microsoft\AL-Go-Actions\v5.3\RunPipeline\RunPipeline.ps1: line 355 <- at , D:\a_temp\a50c547d-316f-4a95-bb4c-dedf84a2f5aa.ps1: line 3 <- at , D:\a_actions\microsoft\AL-Go-Actions\v5.3\Invoke-AlGoAction.ps1: line 17 <- at , D:\a_temp\a50c547d-316f-4a95-bb4c-dedf84a2f5aa.ps1: line 2 <- at , : line 1 Error: Process completed with exit code 1.

Copilot analysis: Verify the URL: http://172.28.96.234:7049/BC/dev/packages?appId=8f7cdd5f-1af2-4ec2-a1f3-ecb959ec395b&versionText=24.24.0.0&tenant=default

The appid is for iPayments Credit Card & Collections app.

I updated the version of the app in my app.json to match the version in AppSource. Ran a commit and sync from VSCode. CI/CD failed with the same error, but the Copilot error explanation did not point to any app.

Manually ran the CI/CD. Now the Copilot error analysis shows the same error but with a blank appID: image

freddydk commented 2 days ago

What version of AL-Go for GitHub are you running?

Do you have a runtime package of the iPayments app in the repo (or a link to it)?

StreichersBC commented 2 days ago

Sorry to say, I don't know how to check the version of Al-Go. I try to run the update files monthly.

Just kicked off an AL-Go System File update Action. Shows version 6 in the pull request. The pull request failed: Compiling D:\a\MainApp\MainApp\InsightWorks 457https://github.com/Streichers-inc/MainApp/actions/runs/11388487053/job/31685618954#step:8:465 Using Symbols Folder: D:\a\MainApp\MainApp.packages 458https://github.com/Streichers-inc/MainApp/actions/runs/11388487053/job/31685618954#step:8:466 Processing dependency Microsoft_Application_24.5.0.0 () 459https://github.com/Streichers-inc/MainApp/actions/runs/11388487053/job/31685618954#step:8:467 Dependency App exists 460https://github.com/Streichers-inc/MainApp/actions/runs/11388487053/job/31685618954#step:8:468 Processing dependency Microsoft_System_24.0.0.0 () 461https://github.com/Streichers-inc/MainApp/actions/runs/11388487053/job/31685618954#step:8:469 Dependency App exists 462https://github.com/Streichers-inc/MainApp/actions/runs/11388487053/job/31685618954#step:8:470 Processing dependency Streichers_Streichers MainApp_24.5.0.0 (5442bbc8-0bda-4ca2-8ac8-fbc210439f7c) 463https://github.com/Streichers-inc/MainApp/actions/runs/11388487053/job/31685618954#step:8:471 Dependency App exists 464https://github.com/Streichers-inc/MainApp/actions/runs/11388487053/job/31685618954#step:8:472 Processing dependency Insight Works_IWorks Common_2.15.9012.1 (ba1776ba-1198-4b4c-a61e-c4612f1880d5) 465https://github.com/Streichers-inc/MainApp/actions/runs/11388487053/job/31685618954#step:8:473 Downloading symbols: Insight Works_IWorks Common_2.15.9012.1.app 466https://github.com/Streichers-inc/MainApp/actions/runs/11388487053/job/31685618954#step:8:474 Url : http://172.27.82.133:7049/BC/dev/packages?appId=ba1776ba-1198-4b4c-a61e-c4612f1880d5&versionText=2.15.9012.1&tenant=default 467https://github.com/Streichers-inc/MainApp/actions/runs/11388487053/job/31685618954#step:8:475 ERROR Exception calling "GetResult" with "0" argument(s): "Response status code does not indicate success: 404 (Not Found)." 468https://github.com/Streichers-inc/MainApp/actions/runs/11388487053/job/31685618954#step:8:476 Compile-AppInBcContainer Telemetry Correlation Id: a5c55eca-0595-4fe9-83e6-340a3c77a024

No, I do not have a runtime package in GitHub for any of the Appsource apps which are dependencies in my apps.

My understanding of your recent update is that MS would now download the symbols so we would not need to get the runtimes from the developers of our Appsouce apps. Is this correct?


From: Freddy Kristiansen @.> Sent: Thursday, October 17, 2024 2:27 AM To: microsoft/AL-Go @.> Cc: Ted Johnston @.>; Author @.> Subject: Re: [microsoft/AL-Go] [Question]: CI/CD Build fails at step/line 476 with a 404 not found (Issue #1226)

What version of AL-Go for GitHub are you running?

Do you have a runtime package of the iPayments app in the repo (or a link to it)?

— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/AL-Go/issues/1226#issuecomment-2418771286, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AY43NLFQO5UFHORNHGBOWG3Z35RF5AVCNFSM6AAAAABO72L25KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJYG43TCMRYGY. You are receiving this because you authored the thread.Message ID: @.***>

freddydk commented 1 day ago

It is almost impossible to read answers from e-mails on GitHub.

Try to set "doNotPublishApps" to true in your .github/AL-Go-Settings.json file.

Symbols packages cannot be published to BC and therefore they can only be used for the build process.

If you could supply to full build log, then we might be able to see why things are not building