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.

ERROR: Syntax error: No mapping value found. swagger.yaml:1:1

See original GitHub issue

1st line: openapi: 3.0.0

invocation: autorest --v3 --csharp --input-file=swagger.yaml

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
timotheeguerincommented, Dec 14, 2020

@bugproof I have a fix for showing the right error line. In the meantime this is the output of running it on your yaml

ERROR: Syntax error: No mapping value found.
    - http://developer.allegro.pl/swagger.yaml:7324:29
ERROR: Syntax error: No mapping value found.
    - http://developer.allegro.pl/swagger.yaml:7326:26
ERROR: Syntax error: No mapping value found.
    - http://developer.allegro.pl/swagger.yaml:7640:29
ERROR: Syntax error: No mapping value found.
    - http://developer.allegro.pl/swagger.yaml:7642:26
ERROR: Syntax error: No mapping value found.
    - http://developer.allegro.pl/swagger.yaml:7761:29
ERROR: Syntax error: No mapping value found.
    - http://developer.allegro.pl/swagger.yaml:7763:26
ERROR: Syntax error: No mapping value found.
    - http://developer.allegro.pl/swagger.yaml:7904:29
ERROR: Syntax error: No mapping value found.
    - http://developer.allegro.pl/swagger.yaml:7906:26
ERROR: Syntax error: No mapping value found.
    - http://developer.allegro.pl/swagger.yaml:7324:29
ERROR: Syntax error: No mapping value found.
    - http://developer.allegro.pl/swagger.yaml:7326:26
ERROR: Syntax error: No mapping value found.
    - http://developer.allegro.pl/swagger.yaml:7640:29
ERROR: Syntax error: No mapping value found.
    - http://developer.allegro.pl/swagger.yaml:7642:26
ERROR: Syntax error: No mapping value found.
    - http://developer.allegro.pl/swagger.yaml:7761:29
ERROR: Syntax error: No mapping value found.
    - http://developer.allegro.pl/swagger.yaml:7763:26
ERROR: Syntax error: No mapping value found.
    - http://developer.allegro.pl/swagger.yaml:7904:29
ERROR: Syntax error: No mapping value found.
    - http://developer.allegro.pl/swagger.yaml:7906:26
0reactions
RobBowmancommented, Jul 1, 2021

@timotheeguerin I have found the cause of the failure - line 89 description for the /hello-world url was missing a value. Not sure why autorest reports an error in position 1:1 though?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error parsing yaml file: mapping values are not allowed here
I want to upload an app to Google App Engine: I get this. Error parsing yaml file ...
Read more >
Syntax Error while loading YAML. mapping values are not ...
i am getting error with below yaml file.could you please help me name: testhosts: localhosttasks:-name: launching AWS instance …
Read more >
Unable to parse YAML: mapping values are not allowed here
Running your config.yml through yamllint, produced the following: 1:1 warning missing document start "---" (document-start) 13:3 error ...
Read more >
wrong line reported in 'did not find expected key while parsing ...
the error message. Psych::SyntaxError: (/tmp/oops.yaml): did not find expected key while parsing a block mapping at line 1 column 1.
Read more >
Invalid YAML: mapping values are not allowed in this context ...
@steeldriver, using --debug still gave me the same error message but made me go back and look at the network line. I was...
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