YtoTech / latex-on-http

Compiles Latex documents through an HTTP API

Home Page:https://latex.ytotech.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Server is down?

nguyen179son opened this issue · comments

Screenshot from 2019-11-29 22-52-29
Is the server down atm?

Hello @nguyen179son,

Nop, the service is not down. Howerver there seems to be an error with the payload you intend to compile.

I'll try to look at the logs.

Re,

I've looked at the logs. The issue is that:

  • one of the file URL you provide is not openly accessible (it gives a 403 forbidden error)
  • the Latex-on-HTTP service is crashing on this fetch error, instead of properly reporting it back to you

This is a bit strange however, because I succeed to access the URL with my browser and by doing a wget on it, so I'm not sure why the web server is denying access to the Latex-on-HTTP service.
Maybe there is rate limiting by IP? I've tested a wget from the server used by the service, and it is indeed blocked, so this may be that.

For the HTTP-on-Latex service, I can make an update to provide back a clear error message when file fetch by URL are failing (HTTP errors: 403, 404, etc.)

For your specific issue of rate-limiting, I can't do much.
You can pass the file content yourself directly instead of passing an URL, if that is a possibility for you.

There aren't much examples of that in the doc for now, but you can look at this sample which show how to pass a local file directly in the payload (by doing a base64 of the file).
You can reach me at the mail in my profile to see how to make it work in your case. :)

A proper response should now be reported by the Latex-on-HTTP API when a file fetch error occurs.

Eg.: see test_fetchers.py