Notice: Illustris[TNG] data and websites will be offline for maintenance Nov 4 (Tuesday), 2025, from 2am EST. Expected downtime is 36 hours.

Assistance with IllustrisTNG API Access Error (HTTP 403)

Kevin Biji Thomas
  • 12h

While working with the code, I encountered a recurring error. requests.exceptions.HTTPError: 403 Client Error: Forbidden for url:
https://data-eu.tng-project.org/info/halo/L75n455FP/135/0/?token=710211c9eeb6961d36af
It occurs at this line in my code:

parent_fof = get(url)
Here is the relevant code snippet:

def get(path, params=None):
...
import h5py
mpb1 = get(sub['trees']['sublink_mpb']) # file saved, mpb1 contains the filename
f = h5py.File(mpb1, 'r')
print(f.keys())
I was wondering if this might be a permissions issue or if I’m missing a step in the API access process.

  • Page 1 of 1