Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unmapping route: Something unexpected happened. #2679

Open
1 of 4 tasks
Neumann-Nils opened this issue Nov 29, 2023 · 3 comments
Open
1 of 4 tasks

Unmapping route: Something unexpected happened. #2679

Neumann-Nils opened this issue Nov 29, 2023 · 3 comments
Assignees

Comments

@Neumann-Nils
Copy link

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
I was trying to delete a destination from a route using the cf curl command. I cannot reproduce this error, it was a one-time problem.

What happened
The destination was not deleted from the route and the command exited with an error:

Unmapping route with guid <guid> from destination with guid <guid>...
 
Something unexpected happened. This is a bug in cf8.
 
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
cf8 curl /v3/routes/<route-guid>/destinations/<destination-guid> -X DELETE --fail
 
CLI Version
8.7.3+efd1d03.2023-09-12
 
Error
runtime error: invalid memory address or nil pointer dereference
 
Stack Trace
goroutine 1 [running]:
code.cloudfoundry.org/cli/util/panichandler.HandlePanic()
/home/runner/work/cli/cli/util/panichandler/handler.go:19 +0x57
panic({0x107e5a0, 0x1b6d300})
/opt/hostedtoolcache/go/1.20.7/x64/src/runtime/panic.go:884 +0x213
code.cloudfoundry.org/cli/actor/v7action.Actor.MakeCurlRequest({

{0x13e7480, 0xc000004300}
, {0x7fe1a3433a48, 0xc0002bc380}, {0x13d0b28, 0xc00007fec0}, {0x13d8c68, 0xc00001a7e0}, {0x13cad38, 0xc00031be30}, ...}, ...)
/home/runner/work/cli/cli/actor/v7action/curl.go:51 +0x311
code.cloudfoundry.org/cli/command/v7.CurlCommand.Execute({{{0x13e39d0, 0xc000258630}, {0x13e52e0, 0xc0002bc380}, {0x13d4a10, 0xc00007fec0}, {0x13e8850, 0xc000181420}, 0xc000004300, 0xc00001a7e0}, ...}, ...)
/home/runner/work/cli/cli/command/v7/curl_command.go:25 +0x99
code.cloudfoundry.org/cli/util/command_parser.(*CommandParser).executionWrapper(0xc000340590, {0x7fe1a3433898, 0x1b97d28}, {0xc000136000, 0x0, 0x5})
/home/runner/work/cli/cli/util/command_parser/command_parser.go:88 +0x297
github.com/jessevdk/go-flags.(*Parser).ParseArgs(0xc000322fc0, {0xc00003e1f0, 0x5, 0x5})
/home/runner/go/pkg/mod/github.com/jessevdk/go-flags@v1.5.0/parser.go:333 +0x908
code.cloudfoundry.org/cli/util/command_parser.(*CommandParser).parse(0xc000340590, {0xc00003e1f0?, 0x5, 0x5}, {0x1083d60, 0x1b96320})
/home/runner/work/cli/cli/util/command_parser/command_parser.go:219 +0xf3
code.cloudfoundry.org/cli/util/command_parser.(*CommandParser).ParseCommandFromArgs(...)
/home/runner/work/cli/cli/util/command_parser/command_parser.go:52
main.main()
/home/runner/work/cli/cli/main.go:41 +0x213
 
goroutine 61 [syscall]:
os/signal.signal_recv()
/opt/hostedtoolcache/go/1.20.7/x64/src/runtime/sigqueue.go:152 +0x2f
os/signal.loop()
/opt/hostedtoolcache/go/1.20.7/x64/src/os/signal/signal_unix.go:23 +0x19
created by os/signal.Notify.func1.1
/opt/hostedtoolcache/go/1.20.7/x64/src/os/signal/signal.go:151 +0x2a
 
goroutine 25 [chan receive]:
code.cloudfoundry.org/cli/util/configv3.catchSignal(0xc0002c8fd0?, {0xc00004f4c0, 0x1f})
/home/runner/work/cli/cli/util/configv3/write_config.go:64 +0x25
created by code.cloudfoundry.org/cli/util/configv3.(*Config).WriteConfig
/home/runner/work/cli/cli/util/configv3/write_config.go:41 +0x28b

Expected behavior
Deletes the destination from the route without any error and continues.

Exact Steps To Reproduce
Steps to reproduce the behavior; include the exact CLI commands and verbose output:

  1. Run cf8 curl /v3/routes/<route-guid>/destinations/<destination-guid> -X DELETE
  2. See above error

Provide more context
Platform: Ubuntu 22.04.3 LTS
CLI version: 8.7.3+efd1d03.2023-09-12
CC API release: 3.149.0

@00Aisha
Copy link

00Aisha commented Dec 3, 2023

Something unexpected happened. Please try again.I have tried everything but the same problem keeps coming up.

@00Aisha
Copy link

00Aisha commented Dec 3, 2023

What should I do in this situation can you help me I need your help

@00Aisha
Copy link

00Aisha commented Dec 3, 2023

Hello?

@a-b a-b self-assigned this Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants