Closed aitorres closed 4 years ago
Hmm, this could be either cloudflare, or my hosting provider auto blocking python anywhere's IP. However, i've also stumbled upon this page, which suggests you can only access whitelisted websites if you have a free account with Python Anywhere. https://help.pythonanywhere.com/pages/403ForbiddenError/ Please, make sure you dont have a free account, and you can try giving me an IP address from which I should antisipate requests, so i can explicitely whitelist it.
Hello! Thanks for reaching out so fast. I'm sorry, I should have checked the PythonAnywhere help in more detail.
I talked to PA's support team, and they have added randomfox.ca to their allowed domains. Just wanted to let you know!
Well hot diddly darn, I have just put that on my to-do list. Thanks! 🦊
Hello! First of all, thanks for developing this cute API!
I'm trying to use the randomfox API to get an image of a fox for a small, toy Telegram bot I'm developing. On my local development environment, I have no problem using the API, either through
curl
on my terminal or using therequests
python package.However, trying to fetch the API on Python Anywhere (to deploy the bot) gives me a 403 response:
Using python's
requests
module:(this particular test was done on python2, but python3 renders the same result, I also tried with
http
instead ofhttps
and it's the same)Do you have any idea of why this happens?