openFDA is an FDA project to provide open APIs, raw data downloads, documentation and examples, and a developer community for an important collection of FDA public datasets.
When running:
https://api.fda.gov/drug/enforcement.json?search=product_type:%22Drugs%22+AND+classification:%22Class+I%22+AND+report_date:[2023-01-01+TO+2023-12-31]&limit=1000
I get the error:
{ "error": { "code": "SERVER_ERROR", "message": "Check your request and try again", "details": "[token_mgr_error] token_mgr_error: Lexical error at line 1, column 94. Encountered: \"}\" (125), after : \"\"" } }
When running:
https://api.fda.gov/drug/enforcement.json?search=product_type:%22Drugs%22+AND+classification:%22Class+I%22+AND+report_date:[2023-01-01+TO+2023-12-31]&limit=1000
I get the error:
{ "error": { "code": "SERVER_ERROR", "message": "Check your request and try again", "details": "[token_mgr_error] token_mgr_error: Lexical error at line 1, column 94. Encountered: \"}\" (125), after : \"\"" } }
Can you please fix this error?