Skip to content

does not work with query wt !== json #68

@fadomire

Description

@fadomire

for a query like *:*&wt=csv&rows=0 it throws an error

FetchError: invalid json response body at http://localhost:8983/solr/gettingstarted/select?*:*&rows=0&wt=csv reason: Unexpected token T in JSON at position 0 at node_modules/node-fetch/lib/body.js:48:31 at process._tickDomainCallback (internal/process/next_tick.js:135:7)

i think it is because of lines 106 and 164 in client.js where it always try to interpret response as json return res.json(); even if sometimes it should be return res.text();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions