{"action":"created","issue":{"url":"https://api.github.com/repos/NSLS-II/Bug-Reports/issues/60","labels_url":"https://api.github.com/repos/NSLS-II/Bug-Reports/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/NSLS-II/Bug-Reports/issues/60/comments","events_url":"https://api.github.com/repos/NSLS-II/Bug-Reports/issues/60/events","html_url":"https://github.com/NSLS-II/Bug-Reports/issues/60","id":116596985,"number":60,"title":"accessing archiver via jupyterhub","user":{"login":"ambarb","id":13630233,"avatar_url":"https://avatars.githubusercontent.com/u/13630233?v=3","gravatar_id":"","url":"https://api.github.com/users/ambarb","html_url":"https://github.com/ambarb","followers_url":"https://api.github.com/users/ambarb/followers","following_url":"https://api.github.com/users/ambarb/following{/other_user}","gists_url":"https://api.github.com/users/ambarb/gists{/gist_id}","starred_url":"https://api.github.com/users/ambarb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ambarb/subscriptions","organizations_url":"https://api.github.com/users/ambarb/orgs","repos_url":"https://api.github.com/users/ambarb/repos","events_url":"https://api.github.com/users/ambarb/events{/privacy}","received_events_url":"https://api.github.com/users/ambarb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2015-11-12T17:19:51Z","updated_at":"2015-11-18T01:24:31Z","closed_at":null,"body":"@ericdill I am trying to use this on jupyterhub. Is that why it fails?  I tried a second url, but that didn't work either.  However, the 2nd url seemed slightly more successful.  \r\n\r\n## With url 1:\r\n```\r\nfrom channelarchiver import Archiver\r\n#get archiver data\r\na = Archiver('http://ca.cs.nsls2.local:8888/cgi-bin/ArchiveDataServer.cgi')\r\na.scan_archives()\r\nOUTPUT:\r\n---------------------------------------------------------------------------\r\nProtocolError                             Traceback (most recent call last)\r\n<ipython-input-27-21f9c2a17d3b> in <module>()\r\n----> 1 a.scan_archives()\r\n\r\n/opt/conda_envs/analysis/lib/python3.4/site-packages/channelarchiver-0.0.5-py3.4.egg/channelarchiver/channelarchiver.py in scan_archives(self, channels)\r\n     53         for archive in self.archiver.archives():\r\n     54             archive_key = archive['key']\r\n---> 55             archives = self.archiver.names(archive_key, channel_pattern)\r\n     56             for archive_details in archives:\r\n     57                 channel = archive_details['name']\r\n\r\n/opt/conda_envs/analysis/lib/python3.4/xmlrpc/client.py in __call__(self, *args)\r\n   1096         return _Method(self.__send, \"%s.%s\" % (self.__name, name))\r\n   1097     def __call__(self, *args):\r\n-> 1098         return self.__send(self.__name, args)\r\n   1099 \r\n   1100 ##\r\n\r\n/opt/conda_envs/analysis/lib/python3.4/xmlrpc/client.py in __request(self, methodname, params)\r\n   1435             self.__handler,\r\n   1436             request,\r\n-> 1437             verbose=self.__verbose\r\n   1438             )\r\n   1439 \r\n\r\n/opt/conda_envs/analysis/lib/python3.4/xmlrpc/client.py in request(self, host, handler, request_body, verbose)\r\n   1138         for i in (0, 1):\r\n   1139             try:\r\n-> 1140                 return self.single_request(host, handler, request_body, verbose)\r\n   1141             except OSError as e:\r\n   1142                 if i or e.errno not in (errno.ECONNRESET, errno.ECONNABORTED,\r\n\r\n/opt/conda_envs/analysis/lib/python3.4/xmlrpc/client.py in single_request(self, host, handler, request_body, verbose)\r\n   1171             host + handler,\r\n   1172             resp.status, resp.reason,\r\n-> 1173             dict(resp.getheaders())\r\n   1174             )\r\n   1175 \r\n\r\nProtocolError: <ProtocolError for ca.cs.nsls2.local:8888/cgi-bin/ArchiveDataServer.cgi: 500 Internal Server Error>\r\n```\r\n\r\n\r\n## With url 2:\r\n````\r\nfrom channelarchiver import Archiver\r\n#get archiver data\r\na = Archiver('http://ca.cs.nsls2.local/cgi-bin/ArchiveDataServer.cgi')\r\na.scan_archives()\r\nOUTPUT:\r\n---------------------------------------------------------------------------\r\nFault                                     Traceback (most recent call last)\r\n<ipython-input-23-21f9c2a17d3b> in <module>()\r\n----> 1 a.scan_archives()\r\n\r\n/opt/conda_envs/analysis/lib/python3.4/site-packages/channelarchiver-0.0.5-py3.4.egg/channelarchiver/channelarchiver.py in scan_archives(self, channels)\r\n     53         for archive in self.archiver.archives():\r\n     54             archive_key = archive['key']\r\n---> 55             archives = self.archiver.names(archive_key, channel_pattern)\r\n     56             for archive_details in archives:\r\n     57                 channel = archive_details['name']\r\n\r\n/opt/conda_envs/analysis/lib/python3.4/xmlrpc/client.py in __call__(self, *args)\r\n   1096         return _Method(self.__send, \"%s.%s\" % (self.__name, name))\r\n   1097     def __call__(self, *args):\r\n-> 1098         return self.__send(self.__name, args)\r\n   1099 \r\n   1100 ##\r\n\r\n/opt/conda_envs/analysis/lib/python3.4/xmlrpc/client.py in __request(self, methodname, params)\r\n   1435             self.__handler,\r\n   1436             request,\r\n-> 1437             verbose=self.__verbose\r\n   1438             )\r\n   1439 \r\n\r\n/opt/conda_envs/analysis/lib/python3.4/xmlrpc/client.py in request(self, host, handler, request_body, verbose)\r\n   1138         for i in (0, 1):\r\n   1139             try:\r\n-> 1140                 return self.single_request(host, handler, request_body, verbose)\r\n   1141             except OSError as e:\r\n   1142                 if i or e.errno not in (errno.ECONNRESET, errno.ECONNABORTED,\r\n\r\n/opt/conda_envs/analysis/lib/python3.4/xmlrpc/client.py in single_request(self, host, handler, request_body, verbose)\r\n   1154             if resp.status == 200:\r\n   1155                 self.verbose = verbose\r\n-> 1156                 return self.parse_response(resp)\r\n   1157 \r\n   1158         except Fault:\r\n\r\n/opt/conda_envs/analysis/lib/python3.4/xmlrpc/client.py in parse_response(self, response)\r\n   1325         p.close()\r\n   1326 \r\n-> 1327         return u.close()\r\n   1328 \r\n   1329 ##\r\n\r\n/opt/conda_envs/analysis/lib/python3.4/xmlrpc/client.py in close(self)\r\n    655             raise ResponseError()\r\n    656         if self._type == \"fault\":\r\n--> 657             raise Fault(**self._stack[0])\r\n    658         return tuple(self._stack)\r\n    659 \r\n\r\nFault: <Fault -600: \"../NameHash.cpp (51): Entry's ID_txt (7424) exceeds buffer size\\n\">\r\n````\r\n"},"comment":{"url":"https://api.github.com/repos/NSLS-II/Bug-Reports/issues/comments/157567200","html_url":"https://github.com/NSLS-II/Bug-Reports/issues/60#issuecomment-157567200","issue_url":"https://api.github.com/repos/NSLS-II/Bug-Reports/issues/60","id":157567200,"user":{"login":"yugangzhang","id":10730521,"avatar_url":"https://avatars.githubusercontent.com/u/10730521?v=3","gravatar_id":"","url":"https://api.github.com/users/yugangzhang","html_url":"https://github.com/yugangzhang","followers_url":"https://api.github.com/users/yugangzhang/followers","following_url":"https://api.github.com/users/yugangzhang/following{/other_user}","gists_url":"https://api.github.com/users/yugangzhang/gists{/gist_id}","starred_url":"https://api.github.com/users/yugangzhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yugangzhang/subscriptions","organizations_url":"https://api.github.com/users/yugangzhang/orgs","repos_url":"https://api.github.com/users/yugangzhang/repos","events_url":"https://api.github.com/users/yugangzhang/events{/privacy}","received_events_url":"https://api.github.com/users/yugangzhang/received_events","type":"User","site_admin":false},"created_at":"2015-11-18T01:24:31Z","updated_at":"2015-11-18T01:24:31Z","body":"@aderbenev you are right. This also make perfect sense that I got early datapoint time when I use large limit number. I guess that in the future we'd better change  \"the maximum allowed points\", otherwise we only can get the interpolated data (10K) not the full raw data. "}}