Skip to content
New issue

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

escaped double quotes break in commit.log #56

Open
Terkwood opened this issue Jul 31, 2021 · 0 comments
Open

escaped double quotes break in commit.log #56

Terkwood opened this issue Jul 31, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@Terkwood
Copy link
Owner

Terkwood commented Jul 31, 2021

problem

curl -X PUT  -d value='no no  "try dbl" \nno\t\t new\n meh'  http://localhost:4000/api/values/3

then restart the app and when commit.log is read, it will crash

[error] Task #PID<0.417.0> started from AugustDb.Supervisor terminating
** (NimbleCSV.ParseError) unexpected escape character " in "3\tno no  \"try dbl\" \\nno
\\t\\t new\\n meh\t-576460747596327185\n"
    (august_db 0.1.0) deps/nimble_csv/lib/nimble_csv.ex:422: CommitLogParser.separator/
5

solution

ditch TSV entirely: #78

@Terkwood Terkwood added the bug Something isn't working label Jul 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant