Yaak Logo
Yaak
Feedback/importer-curl: "Got EOF while in a quoted string" when trailing spaces exist after line-continuation backslashes

importer-curl: "Got EOF while in a quoted string" when trailing spaces exist after line-continuation backslashes

Thang Hoang·Sep 11, 2026 16:32:49 UTC·YK-1098
In ProgressBug

When copying and pasting a multi-line cURL command, if there is an invisible trailing space after the line-continuation backslash (e.g. \ instead of \), the importer-curl plugin fails to join the lines properly. This causes the JSON --data string to be split at the newline, leading to an unclosed quote and the parser throwing: Error: Got EOF while in a quoted string (or escape sequence). The Fix: In splitCommands (specifically /plugins/importer-curl/src/index.ts or build/index.js), the initial line-joining regex needs to tolerate trailing spaces before the newline:

  • Current: rawData.replace(/\\\r?\n/g, " ")
  • Fixed: `rawData.replace(/\\s*\r?\n/g, " "
macOS

Comments (2)

Sign in to leave a comment.

Yaak BotIn Progress

Confirmed, thanks for the report. Fix: https://github.com/mountain-loop/yaak/pull/644

Thang HoangOP

like import curl from postman code, multiple lines

Type to search feedback...