OSSOS / MOP

The Moving Object Pipeline: discovery & tracking of trans-Neptunian objects
GNU General Public License v3.0
4 stars 9 forks source link

[track] SSOIS has a max url length #311

Open mtbannister opened 10 years ago

mtbannister commented 10 years ago

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().

ijiraq commented 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.

mtbannister commented 10 years ago

Can't attach those file types in github :( It's o3e23PD.ast as it is currently on ossin.

ijiraq commented 10 years ago

hint: Remane the file blah.txt

JJ

ijiraq commented 10 years ago

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.