We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
index.html:1 Uncaught (in promise) Error: Error invoking remote method 'renderer:import-collection': TypeError: Cannot read properties of undefined (reading 'includes')
As per https://schema.postman.com/collection/json/v2.1.0/draft-07/collection.json:683, a formdata body may have "key:value" attributes for type "string", but "key:src" instead for type "file".
{ "info": { "_postman_id": "redacted", "name": "redacted", "description": "redacted", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "", "_collection_link": "" }, "item": [ { "name": "Profile", "item": [ { "name": "Update profile avatar", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{AUTH_TOKEN}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "formdata", "formdata": [ { "key": "avatar", "type": "file", "src": "/Users/darylteo/Downloads/demo-images/001.jpg" } ] }, "url": { "raw": "{{API_URL}}/auth/profile/avatar", "host": [ "{{API_URL}}" ], "path": [ "auth", "profile", "avatar" ] }, "description": "" }, "response": [ ] } ] } ] }
https://imgur.com/XmfbmLO
The text was updated successfully, but these errors were encountered:
bugfix(#2462) (#2463)
3db7d54
* fixed * refactor: conditionals. * refactor: Update importPostmanV2CollectionItem function to handle file and text formdata
The PR is merged.
Thanks for taking care of this @sanjai0py ! This is set to go out in the upcoming v1.20.0 release.
v1.20.0
Sorry, something went wrong.
sanjai0py
Successfully merging a pull request may close this issue.
I have checked the following:
Describe the bug
index.html:1 Uncaught (in promise) Error: Error invoking remote method 'renderer:import-collection': TypeError: Cannot read properties of undefined (reading 'includes')
As per https://schema.postman.com/collection/json/v2.1.0/draft-07/collection.json:683, a formdata body may have "key:value" attributes for type "string", but "key:src" instead for type "file".
.bru file to reproduce the bug
Screenshots/Live demo link
https://imgur.com/XmfbmLO
The text was updated successfully, but these errors were encountered: