glenbot/python-aggcat

AttributeError: 'Request' object has no attribute 'body'

Closed this issue · 7 comments

I've been using the library for the last few weeks and it's working great. Starting today on every script I have I get the following error. I opened a ticket with Intuit to see if something changed on their side. It's not just get_institutions(), it's get_account_transactions and get_institution_details too.

Traceback (most recent call last):
File "test.py", line 15, in
institutions = client.get_institutions()
File "/usr/local/lib/python2.7/dist-packages/aggcat/client.py", line 305, in get_institutions
return self._make_request('institutions')
File "/usr/local/lib/python2.7/dist-packages/aggcat/client.py", line 140, in _make_request
response = self.client.get(url, params=query, verify=self.verify_ssl)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 254, in get
return self.request('get', url, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 241, in request
r.send(prefetch=prefetch)
File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 521, in send
r = self.auth(self)
File "/usr/local/lib/python2.7/dist-packages/requests_oauthlib/core.py", line 58, in call
if is_form_encoded or extract_params(r.body):
AttributeError: 'Request' object has no attribute 'body'

Thanks. I have some time this weekend so I'll check it out.

I took a look at this and I am not able to duplicate this error. What version of the requests library are you using?

0.14.2. It looks like the file date on Requests is September 18. I think it
was working on September 11th and then the library probably updated on
September 18th and it broke.

On Sat, Sep 28, 2013 at 2:27 PM, Glen Zangirolami
notifications@github.comwrote:

I took a look at at and I am not able to duplicate this error. What
version of the requests library are you using?


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-25308838
.

Chris Jones
Animal Element, LLC.
Phone: 877-DETOX-77
Cell: 310-400-0256
www.animalelement.com

0.14.2 is a very old version from 2012. The setup.py uses 1.2 I would clean that out and do a "pip install requests==1.2.0"

I had to also reinstall requests_oauthlib
It's working now. Thank you.

On Sat, Sep 28, 2013 at 6:28 PM, Glen Zangirolami
notifications@github.comwrote:

0.14.2 is a very old version from 2012. The setup.py uses 1.2 I would
clean that out and do a "pip install requests==1.2.0"


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-25312365
.

Chris Jones
Animal Element, LLC.
Phone: 877-DETOX-77
Cell: 310-400-0256
www.animalelement.com

glenbot, man really thanks you save me for wasting more time hehe trying to find the solution, i just installed "pip install requests==1.2.0" and all was solved, really thanks man

@gabouh awesome, glad it worked out.