YtoTech / latex-on-http

Compiles Latex documents through an HTTP API
https://latex.ytotech.com
GNU Affero General Public License v3.0
35 stars 6 forks source link

Server is down? #6

Closed nguyen179son closed 4 years ago

nguyen179son commented 4 years ago

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

MonsieurV commented 4 years ago

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.

MonsieurV commented 4 years ago

Re,

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

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.

MonsieurV commented 4 years ago

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

MonsieurV commented 4 years ago

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

Eg.: see test_fetchers.py