GithubHelp home page GithubHelp logo

engineerbetter / cf-converger Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 0.0 146 KB

Declaratively and convergantly configures mutliple Cloud Foundry instances

License: MIT License

Java 99.98% Shell 0.02%

cf-converger's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cf-converger's Issues

License

This project is very useful to us. I have not found a license under which it is released. Would it be possible to release under an open source license (e.g. Apache2)?

Invalid yml exception upon posting declaration.yml

Thanks for the great tool / prototype. I believe this could be really useful.

Posting the following declaration with curl to the "/" endpoint gives an invalid yml exception, although online validators tell me it is valid yml.

---
org: 
  name: trading-division

The file is posted using curl as follows:

curl -H "Content-Type: application/x-yaml" -X POST --data @declaration2.yml http://localhost:8080/

This is the exception in the log.

2017-02-15 16:49:19.326  WARN 80778 --- [nio-8080-exec-3] .w.s.m.s.DefaultHandlerExceptionResolver : Failed to read HTTP message: org.springframework.http.converter.HttpMessageNotReadableException: Could not read document: mapping values are not allowed here
 in 'reader', line 1, column 24:
    ---schema_version: 1org:  name: trading-division  org_m ... 
                           ^

 at [Source: java.io.PushbackInputStream@281b596e; line: 1, column: 24]; nested exception is com.fasterxml.jackson.dataformat.yaml.snakeyaml.error.MarkedYAMLException: mapping values are not allowed here
 in 'reader', line 1, column 24:
    ---schema_version: 1org:  name: trading-division  org_m ... 

Seems like the newlines are not recognized.

Also posting the file in src/test/resources/fixtures/declaration.yml gives the same error. This is on a Mac. I will try also on linux or with chrome postman. Any help is appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.