Open mtbannister opened 10 years ago
please attached the .ast file to this issue. I switch to ‘POST’ and see if we can get that working.
JJ
On May 21, 2014, at 4:50 PM, Michele Bannister notifications@github.com wrote:
o3e23 is a PD and has 45 lines of astrometry. SSOIS throws a 414: Request-URI Too Large (The requested URL's length exceeds the capacity limit for this server.).
Checked with Stephen and he said: The URL limit is a number of characters which is set by the webservers on which SSOIS runs, probably 4096, but possibly 2048. It's not necessarily a number of lines. If you are working through a script, the way around it is to do a POST instead of a GET.
So either: SSOSParser should not try to make queries with more than x lines of astrometry, and if provided with more than this amount should take the most recent x lines and query based on those only. or: ssos.Query.get() should use POST rather than requests.get().
— Reply to this email directly or view it on GitHub.
Can't attach those file types in github :( It's o3e23PD.ast as it is currently on ossin.
hint: Remane the file blah.txt
JJ
The explanation below sounds plausible for the reported error, so I switched to use ‘POST’ and now we get:
An error occured getting the ephemeris
iterating through the ephemeris lines I think the offending line is:
K01FI5O C2004 03 20.40644 13 29 22.77 -09 46 56.7 22.9 R 662
So, two problems… one there was too much astrometry and two SSOIS doesn’t like LICK observatory…
Gwyn: Here is the observatories.dat line for LICK:
662 121:38:09.9 37:20:35.2 1290 Lick
JJ
On May 21, 2014, at 4:50 PM, Michele Bannister notifications@github.com wrote:
o3e23 is a PD and has 45 lines of astrometry. SSOIS throws a 414: Request-URI Too Large (The requested URL's length exceeds the capacity limit for this server.).
Checked with Stephen and he said: The URL limit is a number of characters which is set by the webservers on which SSOIS runs, probably 4096, but possibly 2048. It's not necessarily a number of lines. If you are working through a script, the way around it is to do a POST instead of a GET.
So either: SSOSParser should not try to make queries with more than x lines of astrometry, and if provided with more than this amount should take the most recent x lines and query based on those only. or: ssos.Query.get() should use POST rather than requests.get().
— Reply to this email directly or view it on GitHub.
o3e23 is a PD and has 45 lines of astrometry. SSOIS throws a 414: Request-URI Too Large (The requested URL's length exceeds the capacity limit for this server.).
Checked with Stephen and he said: The URL limit is a number of characters which is set by the webservers on which SSOIS runs, probably 4096, but possibly 2048. It's not necessarily a number of lines. If you are working through a script, the way around it is to do a POST instead of a GET.
So either: SSOSParser should not try to make queries with more than x lines of astrometry, and if provided with more than this amount should take the most recent x lines and query based on those only. or: ssos.Query.get() should use POST rather than requests.get().