500 Server Error when trying to get the main progenitor branch from LHaloTree

Ignas Juodžbalis
  • 4
  • 11 Dec '17


I am writing a python script that is supposed to retrieve the main progenitor branch of a chosen subhalo at z=0 and then request information on gas densities for every single subhalo on that branch. At first the code ran without errors, however today I started having problems with the following line - mpb=get(sub['trees']['lhalotree_mpb']), it constantly crashes with a server error message. Full error message below:

Traceback (most recent call last): File "D:/Desktop/IgnoJ/Modelis/ILLUSTRIS/subhalos.py", line 59, in mpb=get(sub['trees']['lhalotree_mpb']) File "D:/Desktop/IgnoJ/Modelis/ILLUSTRIS/subhalos.py", line 14, in get r.raise_for_status() File "C:\Python34\lib\site-packages\requests\models.py", line 935, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://data.illustris-project.org/app/tree/lhalotree_mpb/L75n1820FP/135/0/hdf5/?token=941b9df9a6178357b91e

What could have caused this problem?

Thank you for your time.

Dylan Nelson
  • 15 Dec '17

Hi Ignas,

Are you just having trouble with this particular request:

  • http://www.illustris-project.org/api/Illustris-1/snapshots/135/subhalos/0/lhalotree/mpb.hdf5

? If so, the quickest solution may be to simply use the SubLink MPB instead of the LHaloTree MPB. Would this work for you, or do you want the LHaloTree MPB in particular?

The problem is coming from an inefficiency in the LHaloTree files - I will see if I can address this, but if you don't particularly care which you use, just using the other tree solve this issue in the interim.

Ignas Juodžbalis
  • 7 Jan '18

Thank you for the answer. I accidentally solved the problem myself by switching to SubLinkMPB not too long after writing my original question so that is the reason for this late reply.

  • Page 1 of 1