Skip to content

Provide raw solr response when JSON.parse fails#207

Open
nfriedly wants to merge 1 commit intolbdremy:masterfrom
nfriedly:patch-3
Open

Provide raw solr response when JSON.parse fails#207
nfriedly wants to merge 1 commit intolbdremy:masterfrom
nfriedly:patch-3

Conversation

@nfriedly
Copy link
Contributor

A customer reported that when uploading hundreds of thousands of documents, a few could hit an "unexpected in of json" error here. This change adds the actual response text to the error object at error.body to aid in debugging. It should have no effect on normal usage.

While rare, network issues, proxies, and other problems can result in invalid or incomplete JSON. The error message in that case is may not be particularly helpful, so this provides the raw response in a new error.body field to aid in debugging.
@germanattanasio
Copy link

Can we get this merge?

@germanattanasio
Copy link

hello?

1 similar comment
@germanattanasio
Copy link

hello?

@nfriedly
Copy link
Contributor Author

@germanattanasio take a look at #133 - is there anybody at IBM who would be interested in taking over maintenance of this repo?

@germanattanasio
Copy link

Re deprecated the only service that was using Solr but I wanted to get your PR merge ha.

@germanattanasio
Copy link

Merry Christmas @nfriedly!

@nfriedly
Copy link
Contributor Author

Merry Christmas @germanattanasio! 🎄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants