Forums

Please add the site http://vk.com/ to "Whitelisted sites for free users"

http://en.wikipedia.org/wiki/VK_(social_network) With pythonanywhere I develop an application that works with the social network, and it would be great if this social network would be in the white list.

@noTformaT: Welcome to PA!!!

It should be in the list now. Give it a go and let me know.

@glenn I have the following problem. This code:

import requests r = requests.post("https://oauth.vk.com/access_token") print r.text

output text:

ERROR The requested URL could not be retrieved

The following error was encountered while trying to retrieve the URL: https://oauth.vk.com/access_token

Unsupported Request Method a nd Protocol

Squid does not support all request methods for all access protocols. For example, you can not POST a Gopher request.

Your cache administrator is webmaster. Generated Thu, 11 Oct 2012 17:04:1 3 GMT by glenn-liveproxy (squid/2.7.STABLE9)

That's odd. My results were different running your example...

==========================================================================
a2j@ssh.pythonanywhere.com's password:
21:32 ~ $ python2.7
Python 2.7.3 (default, Oct  4 2012, 11:28:36)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>> r = requests.post("https://oauth.vk.com/access_token")
>>> print(r.text)
{"error":"invalid_client","error_description":"client_secret is undefined"}
>>>

Results when browsing to the URL via Aurora:

{"error":"invalid_client","error_description":"client_secret is undefined"}

I ran the code again from a non paid account and got the same results as noTformaT

Is that the same bug in requests/urllib3 that we keep running into? https://www.pythonanywhere.com/forums/topic/202/

It looks like it is the same one. Of course in that case the user bought a premium account, so the thread action stopped. In this case they haven't. I guess the question is on noTformaT...Are you planning to upgrade or do we need to try to figure out a fix for you?

@a2j I develop non-commercial applications without the system of donations, so finding the funds to purchase a paid account's difficult for me. Probably will have to cut back on some functional applications.

@noTformaT: Nobody's saying you have to upgrade to a paid account. Just that you wouldn't have a problem if you did, so why try and fix it if you were going to upgrade. Now we know we need to help you figure out a solution while using a free account.

I think that the problem isn't present if you use urllib instead of requests, is that possible?