वेब पर कब्जा और परिवर्तित करने के लिए उपकरण
GrabzIt के ऑनलाइन समुदाय

How to capture 500 and other 5xx server errors with URLToImage?

वेब पेजों या HTML को कैप्चर करने या परिवर्तित करने के तरीके पर प्रश्न पूछें into चित्र, CSV, PDF या DOCX दस्तावेज़ और साथ ही वीडियो कैसे परिवर्तित करें intओ एनिमेटेड GIF हमारे एपीआई का उपयोग कर रहा है।

I am using the code simillar to https://grabz.it/api/aspnet/advanced/com-object/. The catch handler does catch the 404 error with this returned message "You are trying to take a screenshot of a URL that does not exist! Please enter a URL that is both absolute and public, for instance: http://www.example.com". However when there is a server error, the code still goes through and the image captured is of a Server Error web page. Is there a way for URLToImage to also flag those errors?

GrabzIt सपोर्ट द्वारा 14 जून 2019 को पूछा गया

This message "You are trying to take a screenshot of a URL that does not exist! Please enter a URL that is both absolute and public, for instance: http://www.example.com" is not a 404 error. This occurs for invalid URL formats and if the domain does not exist.

As long as those two criteria are met we capture whatever is found.

GrabzIt सपोर्ट द्वारा 14 जून 2019 को उत्तर दिया गया