vbauer / manet

Website screenshot service powered by Node.js, SlimerJS and PhantomJS
MIT License
575 stars 102 forks source link

Strange "agent" error with some websites #61

Closed boogheta closed 8 years ago

boogheta commented 8 years ago

I'm encountering some weird error when trying to capture certain websites. As an example: https://www.onpe.tv/ As one can see on the herokuapp demo, it returns the following error

{"error":"Error while sending image file: ENOENT: no such file or directory, stat '/tmp/4379c56e0dfb2442324bfff66228173a77e351e6.png'"}

I'm having the same error on my own machine with phantom 2.1.1 installed

vbauer commented 8 years ago

@boogheta Could you please provide an example of URL to Manet server which I can test?

RouxRC commented 8 years ago

https://manet.herokuapp.com/?open=&address=&url=https%3A%2F%2Fwww.onpe.tv%2F&width=&height=&zoom=&quality=&delay=&format=&js=on&images=on&selector=&callback=&agent=&user=&password=&headers=&clipRect=&engine=

vbauer commented 8 years ago

I think it happened because you used empty parameters in the request (ex: &selector=&callback=&agent=&user=&password=&headers=&clipRect=&engine=).

boogheta commented 8 years ago

Oups sorry wrong example url and wrong error message indeed, went too fast :/

So it does behave differently on heroku and on our instance, and both seem unsatisfying:

{"error":"Error while sending image file: ENOENT: no such file or directory, stat '/tmp/4379c56e0dfb2442324bfff66228173a77e351e6.png'"}
vbauer commented 8 years ago

Sorry for long response, I had a lot of things to do.. Did you try to use --level=debug to get some additional logs?

boogheta commented 8 years ago

well now I can't reproduce it anymore... So let's forget about it for now, I'll reopen if encountered again, thanks!