Closed CatBia closed 5 years ago
Hi there, thanks for the report! However, the way we suggest you upload a list in our docs works fine for me. Can you not use that method for some reason? Doc is here, and example below: https://docs.urbanairship.com/reference/libraries/python/3.0.0/static_lists.html
Create list:
import urbanairship as ua
airship = ua.Airship(app_key, master_secret)
static_list = ua.devices.StaticList(airship, 'list_name')
static_list.description = 'description'
static_list.create()
RESPONSE: {u'ok': True}
Next, actually upload things into the list...
static_list = ua.devices.StaticList(airship, 'list_name')
csv_file = open('/path/to/list/list_name.csv', 'rb')
resp = static_list.upload(csv_file)
csv_file.close()
print resp
RESPONSE: {u'ok': True}
I also tried to reproduce what you did for this second part, but this works fine for me as well:
static_list = ua.devices.StaticList(airship, 'list_name')
with open('/path/to/list/list_name.csv', 'rb') as csv_file:
resp = static_list.upload(csv_file)
print resp
RESPONSE: {u'ok': True}
We only accept issues for bug reporting purposes.
All feature requests, implementation concerns or general queries should be sent to our support team.
Before completing the form below, please check the following:
Expected Behavior
When you upload a file to a Static List, and the csv is delimited with
;
string:Current Behavior
But, you get
KeyError
exception for some non-expectedexception
at core.py:Steps to Reproduce
Detailed Description
in Current Behaviour