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

单台机器推送页面一点击就莫名其妙报错!! #1816

Closed
Helloyanxuan opened this Issue Sep 12, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@Helloyanxuan

Helloyanxuan commented Sep 12, 2018

[简述你的问题]
image

使用版本1.4.1

[请提供你使用的Jumpserver版本 1.x.x 注: 0.3.x不再提供支持]

问题复现步骤
  1. [步骤1]
    1.4.1新增单台机器推送,但是页面一打开就报datatable初始化error,重复刷新页面会出现时而正常时而报这个弹窗错误,要么就是报500,查了一下后台日志报500原因是ajax_url: "{% url 'api-assets:system-user-assets' pk=system_user.id %}"这个反向解析找不到对应的视图,但是根据控制台报出来的api url是可以请求到数据的,报500错误信息如下:
    Reverse for 'system-user-assets' not found. 'system-user-assets' is not a valid view function or pattern name
具体表现[截图可能会更好些,最好能截全]
其他

[注:] 完成后请关闭 issue

@Helloyanxuan

This comment has been minimized.

Show comment
Hide comment
@Helloyanxuan

Helloyanxuan Sep 12, 2018

测试环境都ok,但是发布到生产环境就会出现上述问题,请问这是不是datatable初始化出现问题导致,应该怎么处理

Helloyanxuan commented Sep 12, 2018

测试环境都ok,但是发布到生产环境就会出现上述问题,请问这是不是datatable初始化出现问题导致,应该怎么处理

@wojiushixiaobai

This comment has been minimized.

Show comment
Hide comment
@wojiushixiaobai

wojiushixiaobai Sep 14, 2018

Collaborator

@Helloyanxuan 更新下代码,升级到最新版本即可。

Collaborator

wojiushixiaobai commented Sep 14, 2018

@Helloyanxuan 更新下代码,升级到最新版本即可。

@Helloyanxuan

This comment has been minimized.

Show comment
Hide comment
@Helloyanxuan

Helloyanxuan Sep 14, 2018

有一些地方做了二次开发的,所以不可以直接拉代码更新呢

Helloyanxuan commented Sep 14, 2018

有一些地方做了二次开发的,所以不可以直接拉代码更新呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment