ArangoDB-Community / pyArango

Python Driver for ArangoDB with built-in validation
https://pyarango.readthedocs.io/en/latest/
Apache License 2.0
238 stars 90 forks source link

Collections.bulkImport_json() won't accept JSON objects #188

Open AndrewFalanga opened 4 years ago

AndrewFalanga commented 4 years ago

When trying to use the function Collections.bulkImport_json to upload a JSON structure built from pytest-json-report, I continually receive

Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.8/site-packages/pyArango/collection.py", line 777, in bulkImport_json TypeError: string indices must be integers

Why is this? It matters now how I attempt to reformat the JSON data, I still see this error. The JSON itself is properly formatted because the following works just fine:

import json
data = json.load(open('/path/to/json'))
wmullen0 commented 3 years ago

I am also seeing the same issue. Curious if you had the solution.

AndrewFalanga commented 3 years ago

I didn't and as a group, my work colleagues, we've moved to MongoDB over ArangoDB.