500 error when downloading by batch using API

@raffy_m, maybe you could refer to this post discussed previously: