[ 
https://issues.apache.org/jira/browse/SOLR-6676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14190478#comment-14190478
 ] 

Hoss Man commented on SOLR-6676:
--------------------------------

With out an example of some JSON that triggers a 500 error like you are 
describing -- and the actual details of the 500 error (ie: what is the type of 
the exception? what does it say in the logs? is there a "Caused By:" in the 
logs?) it's going to be virtually impossible to diagnose/fix this problem

> 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