cfpb / ccdb5-api

An API that provides an interface to search complaint data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Undocumented server response on GET / search consumer complaints

khurd1 opened this issue · comments

Receiving undocumented response (TypeError: Failed to fetch)
Screen Shot 2019-12-17 at 11 05 43 AM

Are you still receiving this response for that query? When I performed a similar search using the API documentation I am receiving a 200, but with the Django REST Framework page content instead of the JSON requested. We are investigating this and your failure to fetch issue from an hour ago.

In the interim, depending on your use case and what you are seeing now, I would recommend adding a "size" parameter to get the first N results, or - if you are looking to obtain an export - setting a "format" value. This should return results in the format requested in-line with the API documents. Please let me know if you're seeing a different outcome and/or if a specific use case is causing problems so we can investigate further? Thanks!

Hi @khurd1, this issue has been resolved in PR #106 and you no longer need to specify a size parameter