Hi I try to use web2py console.
and requests work well...

<https://lh3.googleusercontent.com/-dv2rUwA2cl4/WjzBtK9Q92I/AAAAAAAA6xw/tRAhFW87Pt08mkWdloL7KVeT_qd6PBh9ACLcBGAs/s1600/%25E6%2593%25B7%25E5%258F%25961.PNG>
but it can't work in my controller

DaneW於 2017年12月22日星期五 UTC+8上午8時02分26秒寫道:
>
> I see that they are the same version and it is reasonably up to date. 
> Presumably that is also the version used when you run a script within 
> Web2py? If so then I'm afraid I don't have any further suggestions - sorry. 
> I don't have a Facebook access token so I can't try it out - perhaps there 
> is someone else who uses the Facebook Graph API?  
>
> On Thursday, 21 December 2017 10:11:10 UTC, killzane wrote:
>>
>> 1. unubtu terminal
>> OpenSSL 1.0.2g  1 Mar 2016
>>
>> 2. python
>> >>> import ssl
>> >>> print ssl.OPENSSL_VERSION
>> OpenSSL 1.0.2g  1 Mar 2016
>>
>>
>> DaneW於 2017年12月21日星期四 UTC+8下午6時00分01秒寫道:
>>>
>>> I recently have the same problem with certain websites - it seems to be 
>>> an OpenSSL issue with their webserver config or their certificates.
>>>
>>> Could you tell us what version of OpenSSL is used both circumstances? 
>>> terminal> openssl version and Python> print ssl.OPENSSL_VERSION 
>>>
>>> On Wednesday, 20 December 2017 07:58:32 UTC, killzane wrote:
>>>>
>>>> Hi
>>>>
>>>> I want to use Requests lib in web2py to run facebook's Graph API.
>>>> So I need to use requests.get or requests.post.
>>>>
>>>> The problem is, when I run requests.get in python, it's work.
>>>> but when I run in web2py, it gave me an error
>>>>
>>>> <class 'requests.exceptions.SSLError'> HTTPSConnectionPool(host='
>>>> graph.facebook.com', port=443): Max retries exceeded with url: 
>>>> /v2.6/me?fields=id%2Cname& 
>>>> <https://www.weddingpass.tw/admin/errors/fbbot#>access_token=
>>>> <ACCESS_TOKEN> (Caused by SSLError(SSLError('bad handshake: 
>>>> SysCallError(0, None)',),))
>>>>
>>>> web2py: 2.16.1-stable
>>>> Apache: 2.4.18 (Ubuntu)
>>>> Python: 2.7.12
>>>> Requests: 2.18.4
>>>>
>>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to