superagent icon indicating copy to clipboard operation
superagent copied to clipboard

Ajax for Node.js and browsers (JS HTTP client). Maintained for @forwardemail, @ladjs, @spamscanner, @breejs, @cabinjs, and @lassjs.

Results 137 superagent issues
Sort by recently updated
recently updated
newest added

I need super agent to always send the options request first and then the get request (how do I do that): here is what happens when the get request is...

/src/node/parsers/json.js ![image](https://user-images.githubusercontent.com/4537175/178129548-7949da0b-87fe-4adf-bc6c-d79df81ebdf1.png)

i have a pdf file url. i need to send it with superagent with fileName param. is there example of this? this is not working ``` const urlf = 'http://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf';...

Node V12 supports full async stack trace, but superagent error stack still missing the outter async stack trace when there is error thrown from super agent, e.g a server 500...

I was looking at https://github.com/visionmedia/superagent/releases/tag/v6.0.0 I could not figure what the breaking change was that prompted the promotion from 5 to 6. Could anyone please enlighten me?

would be awesome to cover allowed origins, i.e.: ``` // app.js app.get('/', cors({ origin: "http://allowed.com" }), (req, res) => { res.sendStatus(200) }) // app.spec.js const resp = await request(app).post('/').origin('http://allowed.com') expect(resp.status).toStrictEqual(200)...

Occasionally, superagent throws error from deep inside, however, its not catchable and cause the app to crash. So, is there a solution for catching the error? Thanks! For example, requesting...

In Node, we have access to an `Agent`'s cookie jar on the `.jar` property, but in order to retrieve cookies from it (useful in certain cases including testing) [we also...

Often when retrying a request it is useful to have a throttle back on the time between requests to prevent hitting the remote server in quick succession, but also to...