Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amex API Down? #1

Open
usmcamp0811 opened this issue Oct 26, 2018 · 0 comments
Open

Amex API Down? #1

usmcamp0811 opened this issue Oct 26, 2018 · 0 comments

Comments

@usmcamp0811
Copy link

Just curious if its me doing something wrong, an actual bug in the code, or if the Amex API is no longer available. I try to run your example file and get:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-13-4465971edafd> in <module>
----> 1 client.accounts()

/opt/conda/envs/Python3.6/lib/python3.6/site-packages/pyamex/client.py in accounts(self)
     75         accounts = [ 
     76                     self.create_account(account)
---> 77                     for account in xml_tree.find('CardAccounts')
     78                    ]
     79 

/opt/conda/envs/Python3.6/lib/python3.6/site-packages/pyamex/client.py in <listcomp>(.0)
     75         accounts = [ 
     76                     self.create_account(account)
---> 77                     for account in xml_tree.find('CardAccounts')
     78                    ]
     79 

/opt/conda/envs/Python3.6/lib/python3.6/site-packages/pyamex/client.py in create_account(self, account_tree)
     99         account_data['client'] = self
    100 
--> 101         for param in account_tree.find('CardData'):
    102             name = param.attrib['name']
    103             account_data[name] = param.text

TypeError: 'NoneType' object is not iterable

I dug through the code found the urls you had in the comments and tried them in Chrome and they appear dead. Is it still working for you?

@usmcamp0811 usmcamp0811 changed the title Amed API Down? Amex API Down? Oct 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant