[Django]-No JSON object could be decoded – django – pythonanywhere

2👍

There is an incompatibility between some Python url libraries and the squid proxy that we use to filter free account internet access.

Try using requests (I believe the bug is fixed there) or urllib3 instead of urllib.

👤Glenn

2👍

Elementary, you can’t access to Facebook through your Squid configuration and, instead to get a JSON stream, you get an HTML Squid error page. That’s all.

0👍

This seems to be a limitation of the basic PythonAnywhere accounts:

I suspect you can’t do a POST via HTTPS. There are quite a few limitations when connecting through the proxy server. The error message is from the proxy and it seems quite clear.

Hacker accounts have unrestricted internet access which doesn’t go through the proxy service at all.

There’s no way around the proxy unless you have a paid account, that’s correct. You can upgrade your account and test it with no risk – if you find it doesn’t work and you downgrade again within 30 days you can ask for a full refund of your first month’s cost.

👤lanzz

Leave a comment