{"action":"created","issue":{"url":"https://api.github.com/repos/nextml/NEXT/issues/121","repository_url":"https://api.github.com/repos/nextml/NEXT","labels_url":"https://api.github.com/repos/nextml/NEXT/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/nextml/NEXT/issues/121/comments","events_url":"https://api.github.com/repos/nextml/NEXT/issues/121/events","html_url":"https://github.com/nextml/NEXT/issues/121","id":160756192,"number":121,"title":"'exp_uid' keyError with custom TargetManager","user":{"login":"dconathan","id":15098095,"avatar_url":"https://avatars.githubusercontent.com/u/15098095?v=3","gravatar_id":"","url":"https://api.github.com/users/dconathan","html_url":"https://github.com/dconathan","followers_url":"https://api.github.com/users/dconathan/followers","following_url":"https://api.github.com/users/dconathan/following{/other_user}","gists_url":"https://api.github.com/users/dconathan/gists{/gist_id}","starred_url":"https://api.github.com/users/dconathan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dconathan/subscriptions","organizations_url":"https://api.github.com/users/dconathan/orgs","repos_url":"https://api.github.com/users/dconathan/repos","events_url":"https://api.github.com/users/dconathan/events{/privacy}","received_events_url":"https://api.github.com/users/dconathan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-16T20:42:19Z","updated_at":"2016-06-16T23:12:38Z","closed_at":null,"body":"I created a custom target manager that doesn't use the existing database infrastructure.  Basically, it has methods that read from a pickle file and csv file for feature data and text data, respectively (this is a temporary thing designed to *hopefully* interact with my App in the same way that my scaled up spark target manager will)...\r\n\r\nAnyway I'm getting this weird error, hopefully it is not indicative of something fundamentally flawed with my approach...\r\n\r\nThe error occurs when I try to load the experiment list page.  The experiment is able to launch and an exp_uid is indeed created (along with a query link), but I guess now the exp_uid isn't showing [here](https://github.com/nextml/NEXT/blob/master/next/api/resource_manager.py#L114)\r\n\r\nIs this related to my Target Manager or did I just miss something?\r\n\r\n```\r\n\u001B[34mnextbackenddocker_1 | \u001B[0m[2016-06-16 20:27:28 +0000] [12] [DEBUG] GET /dashboard/experiment_list\r\n\u001B[32mmongodb_1           | \u001B[0m2016-06-16T20:27:28.965+0000 I NETWORK  [initandlisten] connection accepted from ***.***.**.*:***** #36 (32 connections now open)\r\n\u001B[34mnextbackenddocker_1 | \u001B[0mException on /dashboard/experiment_list [GET]\r\n\u001B[34mnextbackenddocker_1 | \u001B[0mTraceback (most recent call last):\r\n\u001B[34mnextbackenddocker_1 | \u001B[0m  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1988, in wsgi_app\r\n\u001B[34mnextbackenddocker_1 | \u001B[0m    response = self.full_dispatch_request()\r\n\u001B[34mnextbackenddocker_1 | \u001B[0m  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1641, in full_dispatch_request\r\n\u001B[34mnextbackenddocker_1 | \u001B[0m    rv = self.handle_user_exception(e)\r\n\u001B[34mnextbackenddocker_1 | \u001B[0m  File \"/usr/local/lib/python2.7/dist-packages/flask_restful/__init__.py\", line 271, in error_router\r\n\u001B[34mnextbackenddocker_1 | \u001B[0m    return original_handler(e)\r\n\u001B[34mnextbackenddocker_1 | \u001B[0m  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1544, in handle_user_exception\r\n\u001B[34mnextbackenddocker_1 | \u001B[0m    reraise(exc_type, exc_value, tb)\r\n\u001B[34mnextbackenddocker_1 | \u001B[0m  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1639, in full_dispatch_request\r\n\u001B[34mnextbackenddocker_1 | \u001B[0m    rv = self.dispatch_request()\r\n\u001B[34mnextbackenddocker_1 | \u001B[0m  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1625, in dispatch_request\r\n\u001B[34mnextbackenddocker_1 | \u001B[0m    return self.view_functions[rule.endpoint](**req.view_args)\r\n\u001B[34mnextbackenddocker_1 | \u001B[0m  File \"/next_backend/next/dashboard/dashboard.py\", line 39, in experiment_list\r\n\u001B[34mnextbackenddocker_1 | \u001B[0m    for exp_uid in rm.get_app_exp_uids(app_id):\r\n\u001B[34mnextbackenddocker_1 | \u001B[0m  File \"/next_backend/next/api/resource_manager.py\", line 102, in get_app_exp_uids\r\n\u001B[34mnextbackenddocker_1 | \u001B[0m    exp_uids.append(str(doc['exp_uid']))\r\n\u001B[34mnextbackenddocker_1 | \u001B[0mKeyError: 'exp_uid'\r\n```"},"comment":{"url":"https://api.github.com/repos/nextml/NEXT/issues/comments/226640075","html_url":"https://github.com/nextml/NEXT/issues/121#issuecomment-226640075","issue_url":"https://api.github.com/repos/nextml/NEXT/issues/121","id":226640075,"user":{"login":"dconathan","id":15098095,"avatar_url":"https://avatars.githubusercontent.com/u/15098095?v=3","gravatar_id":"","url":"https://api.github.com/users/dconathan","html_url":"https://github.com/dconathan","followers_url":"https://api.github.com/users/dconathan/followers","following_url":"https://api.github.com/users/dconathan/following{/other_user}","gists_url":"https://api.github.com/users/dconathan/gists{/gist_id}","starred_url":"https://api.github.com/users/dconathan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dconathan/subscriptions","organizations_url":"https://api.github.com/users/dconathan/orgs","repos_url":"https://api.github.com/users/dconathan/repos","events_url":"https://api.github.com/users/dconathan/events{/privacy}","received_events_url":"https://api.github.com/users/dconathan/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T23:12:38Z","updated_at":"2016-06-16T23:12:38Z","body":"Thanks I was looking for something like that!\r\n\r\nApparently, I can still add stuff manually to that doc using `self.butler.experiment.set(key='exp_uid', value=blah)`... if nothing is figured out I will try tomorrow manually setting the stuff that throw errors and see what happens..."}}
{"actor":{"display_login":"dconathan"}}