Skip to content

Amex API Down?  #1

@usmcamp0811

Description

@usmcamp0811

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions