H1Gdev

Results 91 comments of H1Gdev

This error message outputs if no object exists in path. (It is not an error message specialized for Array.) format is ``` Expected '' not found (path '') ```

Hi everyone. If basic authentication, can test like following code. (user: user, password: passwd) ```js const frisby = require('frisby'); it('auth test', function (done) { frisby.get('https://user:[email protected]/basic-auth/user/passwd') .expect('status', 200) .done(done); }); ```...

@darkshard07 `Chakram framework` returns Promise(?), but is not it necessary for `frisby` ? ```js const contentPath = path.resolve(__dirname, './order.csv'); let form = frisby.formData(); let content = fs.createReadStream(contentPath); form.append('file', content, {...

@darkshard07 Currently, frisby has [this issue](https://github.com/vlucas/frisby/issues/493) on multipart/form-data request. The workaround for [this issue](https://github.com/vlucas/frisby/issues/493) is below. ```js .setup({ request: { headers: { 'Content-Type': form.getHeaders()['content-type'], } } }) ``` So, the...

@imnmi Thank you for your opinion. ~~I think that possibility of solving with this [PR](https://github.com/vlucas/frisby/pull/495) is low.~~ But can send typical `multipart/form-data` request.

@darkshard07 Compared to HTTP request on [this page](https://swagger.io/docs/specification/2-0/file-upload/), difference is Content-Type of each part. HTTP request is `Content-Type: text/plain`. Test code is `Content-Type: text/csv`. So, please change `Content-Type` of each...

@darkshard07 FYI Send [this](https://swagger.io/docs/specification/2-0/file-upload/) HTTP request using Frisby. (merged PR #495) ### code ```js const frisby = require('frisby'); const path = require('path'); const fs = require('fs'); const contentPath = path.resolve(__dirname,...

@imnmi body parameters and formData(= form) parameters described on [this page](https://swagger.io/docs/specification/2-0/file-upload/) are defined in the following page. https://swagger.io/docs/specification/2-0/describing-parameters/ Parameter Types This is types of parameters in swagger, so it has...

@darkshard07 @imnmi This issue will be fixed by PR #495. swagger validator may validate **Content-Type** strictly. I created a repository for testing. https://github.com/H1Gdev/frisby-issues-494 1. install. `npm install` and `npm install...

@darkshard07 > I also tried out you testing repo, and am getting a very similar error. Or maybe I'm doing something wrong PR #495 has not yet been merged:sob: So...