Forums

OSError

wkhtmltopdf reported an error: Loading page (1/2) [> ] 0% [======> ] 10% Error: Failed loading page https://bharatbezawada.pythonanywhere.com (sometimes it will work just to ignore this error with --load-error-handling ignore) Exit with code 1 due to network error: ConnectionRefusedError

I am getting connnection refused error for my own site , working well with google.com

Free accounts on PythonAnywhere can only access sites if they are on our whitelist, and their code needs to use a proxy to access them. The proxy stuff happens automatically with most modern HTTP libraries (like requests) but some older libraries need special configuration to use it; you'll need to look into the documentation for the library you're using to find out how to make it do that.