I've been using the commcare-export tool for a while now without any
issues. Yesterday, I started getting an error when using it. My query
sheets haven't changed to my knowledge. I am using the tool to
create/update an sqlite database.
I am able to make requests for cases without any issue. When I make a
request for forms and use it to create an sqlite database file, everything
works as expected. But if I run the exact same command again to get any new
updates (as I've done many times before), I get the error below. Any ideas?
Traceback (most recent call last):
File
"/Users/Jared/.virtualenvs/spatialrepellents_ci/bin/commcare-export", line
9, in
load_entry_point('commcare-export==0.11.8', 'console_scripts',
'commcare-export')()
File
"/Users/Jared/.virtualenvs/spatialrepellents_ci/lib/python2.7/site-packages/commcare_export/cli.py",
line 185, in entry_point
main(sys.argv[1:])
File
"/Users/Jared/.virtualenvs/spatialrepellents_ci/lib/python2.7/site-packages/commcare_export/cli.py",
line 71, in main
main_with_args(args)
File
"/Users/Jared/.virtualenvs/spatialrepellents_ci/lib/python2.7/site-packages/commcare_export/cli.py",
line 170, in main_with_args
writer.write_table(table)
File
"/Users/Jared/.virtualenvs/spatialrepellents_ci/lib/python2.7/site-packages/commcare_export/writers.py",
line 308, in write_table
for row in table['rows']:
File
"/Users/Jared/.virtualenvs/spatialrepellents_ci/lib/python2.7/site-packages/commcare_export/minilinq.py",
line 255, in iterate
for item in source_result:
File
"/Users/Jared/.virtualenvs/spatialrepellents_ci/lib/python2.7/site-packages/commcare_export/commcare_hq_client.py",
line 105, in iterate_resource
batch = self.get(resource, params)
File
"/Users/Jared/.virtualenvs/spatialrepellents_ci/lib/python2.7/site-packages/commcare_export/commcare_hq_client.py",
line 91, in get
raise Exception('GET %s failed (%s): %s' % (resource_url,
response.status_code, response.text))
Exception: GET
https://www.commcarehq.org/a/spatialrepellents/api/v0.5/form/ failed (400):
{"error": "Bad query parameter"}