[X] I've searched existing issues and found nothing related to my issue.
Describe the bug
Importing a specific curl command into bruno fails without an error message. On checking the logs, it appears that the generated bru file is invalid, and the parser fails to parse it.
watcher add: /home/nemo/projects/work/blr.today/kitchensink/.bruno/tpccsa.bru
Error sending from webFrameMain: Error: Failed to serialize arguments
at s.send (node:electron/js2c/browser_init:2:89409)
at _.send (node:electron/js2c/browser_init:2:73857)
at add (/opt/Bruno/resources/app.asar/src/app/watcher.js:298:23)
at FSWatcher.<anonymous> (/opt/Bruno/resources/app.asar/src/app/watcher.js:609:34)
at FSWatcher.emit (node:events:519:28)
at FSWatcher.emitWithAll (/opt/Bruno/resources/app.asar/node_modules/chokidar/index.js:540:8)
at FSWatcher._emit (/opt/Bruno/resources/app.asar/node_modules/chokidar/index.js:632:8)
at NodeFsHandler._handleFile (/opt/Bruno/resources/app.asar/node_modules/chokidar/lib/nodefs-handler.js:400:14)
at NodeFsHandler._addToNodeFs (/opt/Bruno/resources/app.asar/node_modules/chokidar/lib/nodefs-handler.js:637:21)
(node:3353343) UnhandledPromiseRejectionWarning: Error: Line 15, col 15:
14 | query: *[_type == "event"]{
> 15 | _id,
^
16 | title,
Expected ":"
at parser (/opt/Bruno/resources/app.asar/node_modules/@usebruno/lang/v2/src/bruToJson.js:629:11)
at bruToJson (/opt/Bruno/resources/app.asar/src/bru/index.js:113:18)
at add (/opt/Bruno/resources/app.asar/src/app/watcher.js:294:19)
at FSWatcher.<anonymous> (/opt/Bruno/resources/app.asar/src/app/watcher.js:609:34)
at FSWatcher.emit (node:events:519:28)
at FSWatcher.emitWithAll (/opt/Bruno/resources/app.asar/node_modules/chokidar/index.js:540:8)
at FSWatcher._emit (/opt/Bruno/resources/app.asar/node_modules/chokidar/index.js:632:8)
at NodeFsHandler._handleFile (/opt/Bruno/resources/app.asar/node_modules/chokidar/lib/nodefs-handler.js:400:14)
at NodeFsHandler._addToNodeFs (/opt/Bruno/resources/app.asar/node_modules/chokidar/lib/nodefs-handler.js:637:21)
(node:3353343) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
I have checked the following:
Describe the bug
Importing a specific curl command into bruno fails without an error message. On checking the logs, it appears that the generated bru file is invalid, and the parser fails to parse it.
CURL Command:
This is parsed successfully at https://curlconverter.com/
Bruno 1.29.1 gives the following error:
.bru file to reproduce the bug
Screenshots/Live demo link
The browser interaction can be validated at https://tpcc.club/events/