Internal Server Error (Python)


(Roberto Tijerino) #1

Hello,

I’m trying a simple example utilizing Python but all my calls get Internal Server Error

HTTP response body: {u’message’: u’A server error occurred. Error ID: 2171be92-808c-42d5-b9dc-32036784888d.’, u’code’: u’ServerError’, u’description’: u’A server error occurred. Error ID: 2171be92-808c-42d5-b9dc-32036784888d.’}

Please let me know what I’m doing wrong.

Following is the code I’m using:

import dwollaswagger

if name == ‘main’:
dwollaswagger.configuration.access_token = 'JLkjFparuOf3BBBUnQEXPvsaANa20Gbhy0GJZcrKvfFvv7lgkM’
client = dwollaswagger.ApiClient(‘https://api-uat.dwolla.com’)

customers_api = dwollaswagger.CustomersApi(client)

new_customer = customers_api.create(body = {

‘firstName’: ‘Bob’,
‘lastName’: ‘Merchant’,
‘email’: ‘bmerchant@nomail.net’,
‘ipAddress’: ‘127.0.0.1’
})

print(new_customer)