8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f4740b commit 99809a4Copy full SHA for 99809a4
arangod/GeneralServer/RestHandler.cpp
@@ -462,7 +462,8 @@ void RestHandler::executeEngine(bool isContinue) {
462
<< DIAGNOSTIC_INFORMATION(ex);
463
#endif
464
RequestStatistics::SET_EXECUTE_ERROR(_statistics);
465
- bool const isParseError = (ex.errorCode() == arangodb::velocypack::Exception::ParseError);
+ bool const isParseError = (ex.errorCode() == arangodb::velocypack::Exception::ParseError ||
466
+ ex.errorCode() == arangodb::velocypack::Exception::UnexpectedControlCharacter);
467
Exception err(isParseError ? TRI_ERROR_HTTP_CORRUPTED_JSON : TRI_ERROR_INTERNAL, std::string("VPack error: ") + ex.what(),
468
__FILE__, __LINE__);
469
handleError(err);
0 commit comments