Apisix-dashboard: Online debug failed

Created on 22 Sep 2020  ·  12Comments  ·  Source: apache/apisix-dashboard

Please answer these questions before submitting your issue.

  • Why do you submit this issue?
  • [ ] Question or discussion
  • [x] Bug
  • [ ] Requirements
  • [ ] Feature or performance improvement
  • [ ] Other

Bug

image

bug

All 12 comments

cc @liuxiran

cc @liuxiran

whether the manager-api updated at the same time?

oh no... @nic-chen

here is the error log:
>
{"app":"manager-api","level":"error","line":"filter/recover.go:49","msg":"[Recovery] 2020/09/22 - 14:04:07 panic recovered:\n\nruntime error: index out of range [0] with length 0\n/usr/local/go/src/runtime/panic.go:75 (0x42efa2)\n/go/src/github.com/apisix/manager-api/route/route.go:529 (0xa3371c)\n/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:161 (0x9bbcea)\n/go/src/github.com/apisix/manager-api/filter/recover.go:53 (0x9ee90a)\n/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:161 (0x9bbcea)\n/go/src/github.com/apisix/manager-api/filter/logging.go:54 (0x9edac8)\n/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:161 (0x9bbcea)\n/go/src/github.com/apisix/manager-api/filter/request_id.go:40 (0x9eead8)\n/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:161 (0x9bbcea)\n/go/src/github.com/apisix/manager-api/filter/authentication.go:64 (0x9ec3b6)\n/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:161 (0x9bbcea)\n/go/src/github.com/apisix/manager-api/filter/cors.go:31 (0x9ed61a)\n/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:161 (0x9bbcea)\n/go/pkg/mod/github.com/gin-contrib/[email protected]/sessions.go:52 (0x9e88fd)\n/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:161 (0x9bbcea)\n/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:409 (0x9c5c2c)\n/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:367 (0x9c532d)\n/usr/local/go/src/net/http/server.go:2802 (0x6e1cb3)\n/usr/local/go/src/net/http/server.go:1890 (0x6dd554)\n/usr/local/go/src/runtime/asm_amd64.s:1357 (0x4602b0)\n","time":"2020-09-22T14:04:07+08:00"}

cc @liuxiran

after testing, online demo site still return 500 on debug page.
so if the online site updated automaticly, would you please provide a way to view the log, or last update log here? many thanks😊 @nic-chen

and I also have a question , the api /apisix/admin/routes/:rid/debuginfo which is added to get route details with Apisix url (because fe has to send the debug request directly to apisix,so I need the apisix url here) works well in my Local docker environment, but got 500 in online demo site, maybe it is caused by configuration( we did not consider enough when analyzing the parameters),so would you please provide apisixBaseUrl config in the demo site, thanks again~!

@liuxiran
base_url is:
http://apisix-admin-svc:9080/apisix/admin

I think we should judge the value of res before using it :
https://github.com/apache/apisix-dashboard/blob/master/api/route/route.go#L535

@liuxiran
base_url is:
http://apisix-admin-svc:9080/apisix/admin

I think we should judge the value of res before using it :
https://github.com/apache/apisix-dashboard/blob/master/api/route/route.go#L535

thanks a lot, I'll updated soon🤝

online debug page is Available ,but the debug request still failed.

@liuxiran, after the incoming fix, does it support mock server?

cc @moonming Could you please leave your question or confusion here?

@liuxiran, after the incoming fix, does it support mock server?

the debug requires Apisix to forward the request to the corresponding upstream, it would support mock server only when mock server can complete this forwarding job :)

got it, tks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gxthrj picture gxthrj  ·  6Comments

juzhiyuan picture juzhiyuan  ·  3Comments

moonming picture moonming  ·  6Comments

aiyiyi121 picture aiyiyi121  ·  4Comments

stu01509 picture stu01509  ·  3Comments