Deploy CLI Runtime Error "invalid memory address or nil pointer dereference"

Last Updated: Nov 11, 2024

Overview

The following error is received with the new deploy CLI when trying to update the branding templates:

⣽panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x10536b650]
goroutine 42 [running]:
github.com/auth0/auth0-cli/internal/cli.(*cli).obtainCustomTemplateData.func3()
/home/runner/work/auth0-cli/auth0-cli/internal/cli/branding.go:435 +0x240
golang.org/x/sync/errgroup.(*Group).Go.func1()
/home/runner/go/pkg/mod/golang.org/x/sync@v0.1.0/errgroup/errgroup.go:75 +0x5c
created by golang.org/x/sync/errgroup.(*Group).Go
/home/runner/go/pkg/mod/golang.org/x/sync@v0.1.0/errgroup/errgroup.go:72 +0xa4

Applies To

  • Deploy CLI
  • Runtime Error
  • v1.0.0

Cause

The use the deploy CLI with a previous version of v1 and any branding command such as auth0 branding texts update.

This is a known bug from a previous version of the CLI. Engineering fixed that and released it with our v1.0.0-beta.1 release. See the related references section (v1.0.0) for the fix included in the major release of v1.

Solution

Installing the version v1.0.0 or above should fix the problem.

Related References