Title: The casjobs query results involving bigint column produce errors. · Issue #10 · sciserver/SciScript-Python · GitHub
Open Graph Title: The casjobs query results involving bigint column produce errors. · Issue #10 · sciserver/SciScript-Python
X Title: The casjobs query results involving bigint column produce errors. · Issue #10 · sciserver/SciScript-Python
Description: Hi, When trying to query the skyserver/casjobs I can do it without issues if I don't ask for the specobjid column in a query , but if I add it, I'm getting a bunch of errors. The simple code (based on the example) is given below import S...
Open Graph Description: Hi, When trying to query the skyserver/casjobs I can do it without issues if I don't ask for the specobjid column in a query , but if I add it, I'm getting a bunch of errors. The simple code (based...
X Description: Hi, When trying to query the skyserver/casjobs I can do it without issues if I don't ask for the specobjid column in a query , but if I add it, I'm getting a bunch of errors. The simple cod...
Opengraph URL: https://github.com/sciserver/SciScript-Python/issues/10
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The casjobs query results involving bigint column produce errors. ","articleBody":"Hi,\r\n\r\nWhen trying to query the skyserver/casjobs I can do it without issues if I don't ask for the specobjid column in a query , but if I add it, I'm getting a bunch of errors. \r\n\r\nThe simple code (based on the example) is given below\r\n```python\r\nimport SciServer\r\nfrom SciServer import Authentication, LoginPortal, Config, CasJobs, SkyQuery, SciDrive, SkyServer, Files, Jobs\r\nimport os\r\nimport pandas\r\nimport sys\r\nimport json\r\nfrom io import StringIO\r\nfrom io import BytesIO\r\n#from PIL import Image \r\nimport numpy as np\r\nimport matplotlib.pyplot as plt\r\n\r\nAuthentication_loginName = '**' #CHANGE ME \r\nAuthentication_loginPassword = '**'\r\n\r\ntoken1 = LoginPortal.login(Authentication_loginName,\r\n Authentication_loginPassword)\r\n\r\ncasJobsId = CasJobs.getSchemaName()\r\nprint(casJobsId)\r\nQuery = ' select top 10 ra,dec from specphotoall' # this works \r\nQuery = ' select top 10 ra,dec,plate from specphotoall' # this works \r\nQuery = ' select top 10 ra,dec,specobjid from specphotoall' #this doesn't \r\ndf = CasJobs.executeQuery(sql=Query, context='DR16', format=\"fits\")\r\n\r\nfd = open('xx.fits', 'wb')\r\nfd.write(df.read())\r\nfd.close()\r\n```\r\n\r\nThe error is\r\n```\r\nTraceback (most recent call last):\r\n File \"/home/koposov/pyenv36/lib/python3.6/site-packages/urllib3/response.py\", line 685, in _update_chunk_length\r\n self.chunk_left = int(line, 16)\r\nValueError: invalid literal for int() with base 16: b''\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"/home/koposov/pyenv36/lib/python3.6/site-packages/urllib3/response.py\", line 425, in _error_catcher\r\n yield\r\n File \"/home/koposov/pyenv36/lib/python3.6/site-packages/urllib3/response.py\", line 752, in read_chunked\r\n self._update_chunk_length()\r\n File \"/home/koposov/pyenv36/lib/python3.6/site-packages/urllib3/response.py\", line 689, in _update_chunk_length\r\n raise httplib.IncompleteRead(line)\r\nhttp.client.IncompleteRead: IncompleteRead(0 bytes read)\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"/home/koposov/pyenv36/lib/python3.6/site-packages/requests/models.py\", line 751, in generate\r\n for chunk in self.raw.stream(chunk_size, decode_content=True):\r\n File \"/home/koposov/pyenv36/lib/python3.6/site-packages/urllib3/response.py\", line 560, in stream\r\n for line in self.read_chunked(amt, decode_content=decode_content):\r\n File \"/home/koposov/pyenv36/lib/python3.6/site-packages/urllib3/response.py\", line 781, in read_chunked\r\n self._original_response.close()\r\n File \"/home/koposov/python36/lib/python3.6/contextlib.py\", line 99, in __exit__\r\n self.gen.throw(type, value, traceback)\r\n File \"/home/koposov/pyenv36/lib/python3.6/site-packages/urllib3/response.py\", line 443, in _error_catcher\r\n raise ProtocolError(\"Connection broken: %r\" % e, e)\r\nurllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"doit.py\", line 23, in \u003cmodule\u003e\r\n df = CasJobs.executeQuery(sql=Query, context='DR16', format=\"fits\")\r\n File \"/home/koposov/pyenv36/lib/python3.6/site-packages/SciServer-2.0.13-py3.6.egg/SciServer/CasJobs.py\", line 171, in executeQuery\r\n File \"/home/koposov/pyenv36/lib/python3.6/site-packages/requests/models.py\", line 829, in content\r\n self._content = b''.join(self.iter_content(CONTENT_CHUNK_SIZE)) or b''\r\n File \"/home/koposov/pyenv36/lib/python3.6/site-packages/requests/models.py\", line 754, in generate\r\n raise ChunkedEncodingError(e)\r\nrequests.exceptions.ChunkedEncodingError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))\r\n```\r\nBackground info. I'm using sciserver-2.0.13 and python 3.6.10 on linux. \r\n\r\nThanks \r\n Sergey","author":{"url":"https://github.com/segasai","@type":"Person","name":"segasai"},"datePublished":"2020-03-25T18:12:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/10/SciScript-Python/issues/10"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b15032b8-5365-53bb-d61a-85d795b850f3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E5C6:2AE970:2543B24:31CBCC8:696F0098 |
| html-safe-nonce | dc22f8b7c3a688c9a3ab0ac3d13ddf2c9413d1e5e116d53120b0980cd46ef0ea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUM2OjJBRTk3MDoyNTQzQjI0OjMxQ0JDQzg6Njk2RjAwOTgiLCJ2aXNpdG9yX2lkIjoiMzQ5ODc1Mzg0MzY4NTk0OTU5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5a6b35bb7842c060a74de9079220e423cf56eb55b83d2f8a52b8c3ae540d245a |
| hovercard-subject-tag | issue:587892357 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sciserver/SciScript-Python/10/issue_layout |
| twitter:image | https://opengraph.githubassets.com/527312ad91cbca2fef64059f9c34753719f121db94f14090b0664e3d6fbd9fea/sciserver/SciScript-Python/issues/10 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/527312ad91cbca2fef64059f9c34753719f121db94f14090b0664e3d6fbd9fea/sciserver/SciScript-Python/issues/10 |
| og:image:alt | Hi, When trying to query the skyserver/casjobs I can do it without issues if I don't ask for the specobjid column in a query , but if I add it, I'm getting a bunch of errors. The simple code (based... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | segasai |
| hostname | github.com |
| expected-hostname | github.com |
| None | b278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee |
| turbo-cache-control | no-preview |
| go-import | github.com/sciserver/SciScript-Python git https://github.com/sciserver/SciScript-Python.git |
| octolytics-dimension-user_id | 15526376 |
| octolytics-dimension-user_login | sciserver |
| octolytics-dimension-repository_id | 50931595 |
| octolytics-dimension-repository_nwo | sciserver/SciScript-Python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 50931595 |
| octolytics-dimension-repository_network_root_nwo | sciserver/SciScript-Python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 39aed5006635ab6f45e6b77d23e73b08a00272a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width