Azure / azure-dev

A developer CLI that reduces the time it takes for you to get started on Azure. The Azure Developer CLI (azd) provides a set of developer-friendly commands that map to key stages in your workflow - code, build, deploy, monitor, repeat.
https://aka.ms/azd
MIT License
406 stars 195 forks source link

[Issue] panic: runtime error: invalid memory address or nil pointer dereference | ACA Deployment #4451

Open cassiebreviu opened 3 days ago

cassiebreviu commented 3 days ago

Output from azd version azd version 1.10.2

Describe the bug This has two aca deployments and after it finishes the second deployment, it shows a failure. However, the app is deployed.

To Reproduce Run azd up on this repo or run the gh action: https://github.com/Azure-Samples/contoso-creative-writer/

Expected behavior The deployment completes without errors.

Additional context gh action failure here: https://github.com/Azure-Samples/contoso-creative-writer/actions/runs/11374746532/job/31644084161

Run azd deploy --no-prompt Deploying services (azd deploy) Deploying service api Deploying service api (Packing remote build context) Deploying service api (Uploading remote build context) Deploying service api (Updating container app revision) Deploying service api (Fetching endpoints for container app service) (✓) Done: Deploying service api

vhvb1989 commented 3 days ago

@cassiebreviu , this looks like an issue with azd not handling an empty hook: https://github.com/Azure-Samples/contoso-creative-writer/blob/main/azure.yaml#L29

Try commenting the name of the hook as well (or removing it if you don't need it)