Andrew

Results 7 comments of Andrew

I'm having this issue with superagent (v1.8.3) and supertest (v1.2.0). Here is my request code: ``` var api = supertest(config.get('baseUrl')); // var api = require('superagent'); api.post('/api/token') .set('Accept', 'application/json') .type('form') .send(loginData)...

Also works fine with `request` ``` var options = { url: config.get('baseUrl') + '/swagger/docs/v1', headers : { 'Authorization': token } }; request(options, function (getErr, getResponse, body) { if (getErr) {...

The request body is empty. I got the following HTTP headers from the response from a successful request via Postman. ``` Cache-Control →private Content-Encoding →deflate Content-Length →15544 Content-Type →application/json; charset=utf-8...

Oh sorry the _request_ body is empty. The _response_ body is quite large and also something I can't really post publicly. Is there something I can check for you?

Thanks for the quick response. Makes sense! I think the easiest router forward at this point is to just stick with 5.4.2 and wrap them all until I have the...

I am seeing this error as well in Typescript 2.7.2. It appears when I run tests with the following command: `mocha -r ts-node/register -r tsconfig-paths/register test/**/*.test.ts` Here is a (hopefully...

I was eventually able to figure this out. I basically copied the code from [here](https://github.com/mattstyles/koa-socket/blob/master/index.js#L105) in the attach function in the `koa-socket` source. Here is the relevant parts of my...