question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

YAMLException when drive contains a new line character in its description

See original GitHub issue

For example: description: "foo\nbar"

This scenario results in:

YAMLException: unexpected end of the stream within a double quoted scalar at line 3, column 1:

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
lurchcommented, Feb 26, 2018

See also https://github.com/resin-io-modules/drivelist/pull/156 and https://github.com/resin-io-modules/drivelist/pull/161

I guess the fact that this hasn’t been fixed yet, illustrates exactly how often we come across drive-names that contain embedded newline characters 😉

0reactions
lurchcommented, Apr 7, 2018

It was already fixed on Linux by https://github.com/resin-io-modules/drivelist/pull/156 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Check if string contains \n Java - Stack Overflow
If the string was constructed in the same program, I would recommend using this: String newline = System.getProperty("line.separator"); ...
Read more >
Read line from file, keeping newline characters - MATLAB fgets
This MATLAB function reads the next line of the specified file, including the newline characters.
Read more >
New line character for Descriptive fields in CSV Import
Hi, I am trying to figure out, what character has to be used in a narrative field during a CSV import, so that...
Read more >
Replace a string containing newline characters
So I have to replace a string both with special characters such as " and < and with a newline character. After searching...
Read more >
How to identify /n from a string and set its value in next line
HI All, I have a string which is supposed to be identified with /n for next line and set the value in Incident...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found