Skip to content

NameError when requesting benchmark in JSON format from dashboard #722

@gopherbot

Description

@gopherbot

by albrecht.andi:

Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem.  Thanks.

What steps will reproduce the problem?
1. Open a single benchmark on godashboard.appspot.com
2. Click on the JSON link
3.

What is the expected output? What do you see instead?

Instead of seeing the benchmark data in JSON format a traceback is 
returned:
<pre>Traceback (most recent call last):
  File 
&quot;/base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py&q
uot;, line 510, in __call__
    handler.get(*groups)
  File 
&quot;/base/data/home/apps/godashboard/4.341024957811262780/gobuild.py&quot
;, line 590, in get
    (sep, builder, str(iter).replace(&quot;L&quot;, &quot;&quot;), 
str(nsperop).replace(&quot;L&quot;, &quot;&quot;)))
NameError: global name 'nsperop' is not defined
</pre>

I'm not sure what happens there, but it seems that str(nsperop) in 
misc/dashboard/godashboard/gobuild.py, line 590 should read str(ns).

What is your $GOOS?  $GOARCH?


Which revision are you using?  (hg identify)
c3fc7354c7b5+ tip

Please provide any additional information below.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions