Top "Superagent" questions

Promise Error: Objects are not valid as a React child

I am trying to set the json to a state using user agent, I get the error: Uncaught Invariant Violation: …

reactjs superagent
webpack dev server CORS issue

I am using webpack-dev-server v1.10.1 to boost up my Redux project and I have the options below: contentBase: `http://${config.…

reactjs cors superagent webpack-dev-server
Uncaught Error: A cross-origin error was thrown. React doesn't have access to the actual error object in development

Every time I submit a zone, it displays this error: 'Uncaught Error: A cross-origin error was thrown. React doesn't have …

javascript node.js reactjs superagent
How to post multipart/form-data with node.js superagent

I am trying to send the content-type in my superagent post request to multipart/form-data. var myagent = superagent.agent(); myagent .…

node.js superagent
How can you use cookies with superagent?

I'm doing cookie session management with express with something like this: req.session.authentication = auth; And I verify the authenticated …

node.js mocha superagent
ECONNREFUSED when making GET request in app, but API returns JSON successfully

I'm writing a node app with React, using node-postgres and superagent for backend calls. Let's say I'm making a GET …

json node.js reactjs superagent node-postgres
How to chain http calls with superagent/supertest?

I am testing an express API with supertest. I couldn't get multiple requests in a test case to work with …

node.js express supertest superagent
Axios vs Superagent

If I use Axios and Superagent to make a call to the same api one after another I get Superagent's …

ajax superagent axios
How can I inject a custom HTTP Header into every request that SuperAgent makes?

Clearly SuperAgent supports custom HTTP headers: request .post('/api/pet') .send({ name: 'Manny', species: 'cat' }) .set('X-API-Key', 'foobar') .set(…

javascript npm http-headers superagent
How to send files with superagent

So about a month ago I asked a question regarding superagent and sending files, but got no response at all. …

ajax multipartform-data form-data superagent