cli icon indicating copy to clipboard operation
cli copied to clipboard

template: Display Text:1: function "subaccount" not defined

Open VarunVemala opened this issue 3 years ago • 0 comments

Please fill out the issue checklist below and provide ALL the requested information.

  • [. ] I reviewed open and closed github issues that may be related to my problem.
  • [ .] I tried updating to the latest version of the CF CLI to see if it fixed my problem.
  • [ ] I attempted to run the command with CF_TRACE=1 to help debug the issue.
  • [ ] I am reporting a bug that others will be able to reproduce.

Describe the bug and the command you saw an issue with

	cf env cgt-event-service-srv-blue

What happened Something unexpected happened. This is a bug in cf.

	Please re-run the command that caused this exception with the environment
	variable CF_TRACE set to true.

	Also, please update to the latest cli and try the command again:
	https://code.cloudfoundry.org/cli/releases

	Please create an issue at: https://code.cloudfoundry.org/cli/issues

	Include the below information when creating the issue:

	Command
	cf env cgt-event-service-srv-blue

	CLI Version
	7.5.0+0ad1d63.2022-06-04 (Same error with 8.4.0+b4c083e.2022-06-02)

	Error
	template: Display Text:1: function "subaccount" not defined

Expected behavior It should show the env variables of the application

Provide more context Stack Trace goroutine 1 [running]: code.cloudfoundry.org/cli/util/panichandler.HandlePanic() /Users/runner/work/cli/cli/util/panichandler/handler.go:19 +0x64 panic({0x1055f6860, 0x140003d98f0}) /Users/runner/hostedtoolcache/go/1.17.10/x64/src/runtime/panic.go:1038 +0x21c text/template.Must(...) /Users/runner/hostedtoolcache/go/1.17.10/x64/src/text/template/helper.go:25 code.cloudfoundry.org/cli/util/ui.generateTranslationFunc.func1({0x140005d22a0, 0x6d}, {0x140003d95e0, 0x1, 0x1}) /Users/runner/work/cli/cli/util/ui/i18n.go:119 +0x348 code.cloudfoundry.org/cli/util/ui.(*UI).TranslateText(...) /Users/runner/work/cli/cli/util/ui/ui.go:335 code.cloudfoundry.org/cli/util/ui.(*UI).DisplayText(0x140002ea2c0, {0x140005d22a0, 0x6d}, {0x0, 0x0, 0x0}) /Users/runner/work/cli/cli/util/ui/ui.go:248 +0x148 code.cloudfoundry.org/cli/command/v7.EnvCommand.displayEnvGroup({{{0x1057a1280, 0x140002ea2c0}, {0x1057a29b8, 0x140002ee300}, {0x10578dd00, 0x14000481c90}, {0x1057a5028, 0x1400037e1e0}, 0x140001fa840, 0x14000188700}, ...}, ...) /Users/runner/work/cli/cli/command/v7/env_command.go:96 +0x134 code.cloudfoundry.org/cli/command/v7.EnvCommand.Execute({{{0x1057a1280, 0x140002ea2c0}, {0x1057a29b8, 0x140002ee300}, {0x10578dd00, 0x14000481c90}, {0x1057a5028, 0x1400037e1e0}, 0x140001fa840, 0x14000188700}, ...}, ...) /Users/runner/work/cli/cli/command/v7/env_command.go:67 +0x6f8 code.cloudfoundry.org/cli/util/command_parser.(*CommandParser).executionWrapper(0x14000117bf0, {0x12d1deb18, 0x105dd6a78}, {0x1400028c0a0, 0x0, 0x2}) /Users/runner/work/cli/cli/util/command_parser/command_parser.go:93 +0x28c github.com/jessevdk/go-flags.(*Parser).ParseArgs(0x140002db420, {0x1400003a1c0, 0x2, 0x2}) /Users/runner/go/pkg/mod/github.com/jessevdk/[email protected]/parser.go:331 +0x890 code.cloudfoundry.org/cli/util/command_parser.(*CommandParser).parse(0x14000117bf0, {0x1400003a1c0, 0x2, 0x2}, {0x10561c5e0, 0x105dd42a0}) /Users/runner/work/cli/cli/util/command_parser/command_parser.go:221 +0xdc code.cloudfoundry.org/cli/util/command_parser.(*CommandParser).ParseCommandFromArgs(...) /Users/runner/work/cli/cli/util/command_parser/command_parser.go:57 main.main() /Users/runner/work/cli/cli/main.go:41 +0x340

goroutine 543 [chan receive]:
code.cloudfoundry.org/cli/util/configv3.catchSignal(0x1400037f320, {0x1400004a510, 0x28})
	/Users/runner/work/cli/cli/util/configv3/write_config.go:64 +0x2c
created by code.cloudfoundry.org/cli/util/configv3.(*Config).WriteConfig
	/Users/runner/work/cli/cli/util/configv3/write_config.go:41 +0x240

goroutine 643 [IO wait]:
internal/poll.runtime_pollWait(0x10649a668, 0x72)
	/Users/runner/hostedtoolcache/go/1.17.10/x64/src/runtime/netpoll.go:303 +0xb4
internal/poll.(*pollDesc).wait(0x1400048c718, 0x72, 0x0)
	/Users/runner/hostedtoolcache/go/1.17.10/x64/src/internal/poll/fd_poll_runtime.go:84 +0x38
internal/poll.(*pollDesc).waitRead(...)
	/Users/runner/hostedtoolcache/go/1.17.10/x64/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0x1400048c700, {0x140005dc000, 0x365e, 0x365e})
	/Users/runner/hostedtoolcache/go/1.17.10/x64/src/internal/poll/fd_unix.go:167 +0x1dc
net.(*netFD).Read(0x1400048c700, {0x140005dc000, 0x365e, 0x365e})
	/Users/runner/hostedtoolcache/go/1.17.10/x64/src/net/fd_posix.go:56 +0x44
net.(*conn).Read(0x1400011c040, {0x140005dc000, 0x365e, 0x365e})
	/Users/runner/hostedtoolcache/go/1.17.10/x64/src/net/net.go:183 +0x4c
crypto/tls.(*atLeastReader).Read(0x140006844c8, {0x140005dc000, 0x365e, 0x365e})
	/Users/runner/hostedtoolcache/go/1.17.10/x64/src/crypto/tls/conn.go:777 +0x58
bytes.(*Buffer).ReadFrom(0x140001f6278, {0x10576e300, 0x140006844c8})
	/Users/runner/hostedtoolcache/go/1.17.10/x64/src/bytes/buffer.go:204 +0xa4
crypto/tls.(*Conn).readFromUntil(0x140001f6000, {0x12d260d48, 0x1400011c040}, 0x5)
	/Users/runner/hostedtoolcache/go/1.17.10/x64/src/crypto/tls/conn.go:799 +0xe0
crypto/tls.(*Conn).readRecordOrCCS(0x140001f6000, 0x0)
	/Users/runner/hostedtoolcache/go/1.17.10/x64/src/crypto/tls/conn.go:606 +0xf4
crypto/tls.(*Conn).readRecord(...)
	/Users/runner/hostedtoolcache/go/1.17.10/x64/src/crypto/tls/conn.go:574
crypto/tls.(*Conn).Read(0x140001f6000, {0x14000199000, 0x1000, 0x1000})
	/Users/runner/hostedtoolcache/go/1.17.10/x64/src/crypto/tls/conn.go:1277 +0x164
net/http.(*persistConn).Read(0x1400023c000, {0x14000199000, 0x1000, 0x1000})
	/Users/runner/hostedtoolcache/go/1.17.10/x64/src/net/http/transport.go:1926 +0x64
bufio.(*Reader).fill(0x1400037e5a0)
	/Users/runner/hostedtoolcache/go/1.17.10/x64/src/bufio/bufio.go:101 +0x10c
bufio.(*Reader).Peek(0x1400037e5a0, 0x1)
	/Users/runner/hostedtoolcache/go/1.17.10/x64/src/bufio/bufio.go:139 +0x6c
net/http.(*persistConn).readLoop(0x1400023c000)
	/Users/runner/hostedtoolcache/go/1.17.10/x64/src/net/http/transport.go:2087 +0x158
created by net/http.(*Transport).dialConn
	/Users/runner/hostedtoolcache/go/1.17.10/x64/src/net/http/transport.go:1747 +0x1884

goroutine 644 [select]:
net/http.(*persistConn).writeLoop(0x1400023c000)
	/Users/runner/hostedtoolcache/go/1.17.10/x64/src/net/http/transport.go:2386 +0xa8
created by net/http.(*Transport).dialConn
	/Users/runner/hostedtoolcache/go/1.17.10/x64/src/net/http/transport.go:1748 +0x18a4

goroutine 638 [syscall]:
os/signal.signal_recv()
	/Users/runner/hostedtoolcache/go/1.17.10/x64/src/runtime/sigqueue.go:166 +0x34
os/signal.loop()
	/Users/runner/hostedtoolcache/go/1.17.10/x64/src/os/signal/signal_unix.go:24 +0x20
created by os/signal.Notify.func1.1
	/Users/runner/hostedtoolcache/go/1.17.10/x64/src/os/signal/signal.go:151 +0x38


	Your Platform Details
	e.g. Mac OS X 10.11, Windows 8.1 64-bit, Ubuntu 14.04.3 64-bit

	Shell
	e.g. Terminal, iTerm, Powershell, Cygwin, gnome-terminal, terminator

VarunVemala avatar Aug 16 '22 08:08 VarunVemala