[英]SugarCRM Python API Wrapper - “NoneType” object is not subscriptable
I downloaded the SugarCRM Python API wrapper from Github 我从Github下载了SugarCRM Python API包装器
Trying out the basic login code, I have the following problem 试用基本的登录代码,我遇到以下问题
>>> url = 'http://<REDACTED>/service/v2/rest.php'
>>> user = '<REDACTED>'
>>> passwd = '<REDACTED>'
>>> import sugarcrm
>>> session = sugarcrm.Sugarcrm(url, user, passwd)
Connecting to: http://<REDACTED>/service/v2/rest.php
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/sugarcrm/sugarcrm.py", line 58, in __init__
self.login(username, password)
File "/usr/local/lib/python2.7/dist-packages/sugarcrm/sugarcrm.py", line 112, in login
self.id = x["id"]
TypeError: 'NoneType' object is not subscriptable
Am I doing something wrong? 难道我做错了什么?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.