apisix-dashboard icon indicating copy to clipboard operation
apisix-dashboard copied to clipboard

页面菜单请求返回 401 Unauthorized

Open ztgoto opened this issue 6 years ago • 4 comments

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

Question

  • What do you want to know? #702 该问题修复了404页面的问题,页面能登入成功,但是 路由,证书,上游,Consumer菜单相关的请求接口返回401 Unauthorized 导致退出到登入界面。 通过http请求来看 存在Authorization请求头,但是值为空

Bug

  • Which version of Apache APISIX Dashboard, OS, and Browser?

代码使用 分支 v2.0 commit c140f41acdc90b53db3b349f63a43503666a76fe 代码构建的docker镜像

  • What happened? If possible, provide a way to reproduce the error.

Requirements or improvement

  • Please describe your requirements or improvement suggestions.

ztgoto avatar Nov 10 '20 09:11 ztgoto

Could you have a try on this IP[1]? It's deployed with the latest codes from v2.0 by Docker CD.

[1] http://139.217.190.60

juzhiyuan avatar Nov 10 '20 09:11 juzhiyuan

@juzhiyuan 你们提供的可以,我查看过你们的http请求中携带了jwt token在Authorization 中。 我构建的docker镜像不行,Authorization头信息为空值,登入是可以成功的,但是 /apisix/admin/user/login 接口没有返回任何数据。 而且镜像中看不到docker输出日志

ztgoto avatar Nov 10 '20 10:11 ztgoto

OK, let me cc @idbeta to test this issue.

juzhiyuan avatar Nov 10 '20 10:11 juzhiyuan

I reproduced this problem in my environment, thanks for feedback.

idbeta avatar Nov 10 '20 12:11 idbeta