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

throw an exception when add a graph to a screen #109

Closed
LoveEachDay opened this issue May 23, 2017 · 6 comments
Closed

throw an exception when add a graph to a screen #109

LoveEachDay opened this issue May 23, 2017 · 6 comments
Assignees

Comments

@LoveEachDay
Copy link

LoveEachDay commented May 23, 2017

When I add a graph to a screen, after the submission, an exception is thrown:

暂时无法访问,请联系管理员.

error: {"error":"record not found"}


traceback日志如下:
Traceback (most recent call last):
  File "/data/falcon-plus/dashboard/env/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/data/falcon-plus/dashboard/env/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/data/falcon-plus/dashboard/rrd/view/dashboard/screen.py", line 176, in dash_graph_add
    timespan, graph_type, method, position)
  File "/data/falcon-plus/dashboard/rrd/model/graph.py", line 66, in add
    return graph_id and cls.get(graph_id)
  File "/data/falcon-plus/dashboard/rrd/model/graph.py", line 39, in get
    raise Exception(r.text)
Exception: {"error":"record not found"}

Actually the graph was added successfully.

@LoveEachDay
Copy link
Author

LoveEachDay commented May 23, 2017

I've upgraded falcon to v0.2 following the procedure in http://www.jianshu.com/p/6fb2c2b4d030.

@laiwei
Copy link
Member

laiwei commented May 23, 2017

Is this error occurred every time or just one time?

Is there any screenshots?

@LoveEachDay
Copy link
Author

It happens every time, and here's the procedure for reproducing:

  1. add a screen
  2. choose +graph in the screen page
  3. fill in the form and submit

@LoveEachDay
Copy link
Author

image

@laiwei laiwei self-assigned this May 26, 2017
@laiwei
Copy link
Member

laiwei commented May 27, 2017

I can not reproduce the problem .
Please make sure that you have the latest code.

If there is any further progress, just reopen this issue.

@laiwei
Copy link
Member

laiwei commented Jul 26, 2017

@LoveEachDay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants