liuqibj created SOLR-6676:
-----------------------------

             Summary: Return 500 if bad json data is posted to Solr?
                 Key: SOLR-6676
                 URL: https://issues.apache.org/jira/browse/SOLR-6676
             Project: Solr
          Issue Type: Bug
          Components: update
    Affects Versions: 4.7.2
            Reporter: liuqibj


When posting  invalid json data to Solr and we often get 400 response code but 
some cases return 500 if bad json data is posted. The call stack looks like 
this(see below). There are multiple reasons if Solr return 500 errors.  Is 
there any way to distinguish whether the 500 errors is due to bad json data or 
other reasons?
at org.apache.noggit.JSONParser.err
at org.apache.noggit.JSONParser.next
at org.apache.noggit.JSONParser.nextEvent
at 
org.apache.solr.handler.loader.JsonLoader$SingleThreadedJsonLoader.processUpdate
at org.apache.solr.handler.loader.JsonLoader$SingleThreadedJsonLoader.load
at org.apache.solr.handler.loader.JsonLoader.load






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to