zerobase-io / smart-tracing-api

Backend/DB/API repository for the Zerobase platform
Apache License 2.0
6 stars 9 forks source link

wire up things for simple business onboarding #31

Closed toadzky closed 4 years ago

toadzky commented 4 years ago

Fixes #28

togakangaroo commented 4 years ago
$ docker-compose -f ./docker-compose-full-stack.yml up app

...

Digest: sha256:b42dcc6b0cb84f79f2e22688e0d67dc88a9e8b3f1dc6500ea80902e42359fcf0
Status: Downloaded newer image for zerobaseio/smart-tracing-api:latest
Starting zerobase-api_database_1 ... 
Creating zerobase-api_aws_1      ... 
Creating zerobase-api_app_1      ... 
Attaching to zerobase-api_app_1
app_1       | *** Startup /entrypoint.sh suceeded now starting service using exec to expand CMD variables ***
app_1       | io.dropwizard.configuration.ConfigurationParsingException: /config.yml has an error:
app_1       |   * Malformed YAML at line: 17, column: 19; while scanning an alias
app_1       |  in 'reader', line 16, column 18:
app_1       |     allowedOrigins: [*]
app_1       |                      ^
app_1       | unexpected character found ](93)
app_1       |  in 'reader', line 16, column 19:
app_1       |     allowedOrigins: [*]
app_1       |                       ^
app_1       | 
app_1       |  at [Source: (ByteArrayInputStream); line: 16, column: 18]
app_1       | 
app_1       |   at io.dropwizard.configuration.ConfigurationParsingException$Builder.build(ConfigurationParsingException.java:278)
app_1       |   at io.dropwizard.configuration.BaseConfigurationFactory.build(BaseConfigurationFactory.java:95)
app_1       |   at io.dropwizard.cli.ConfiguredCommand.parseConfiguration(ConfiguredCommand.java:126)
app_1       |   at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:74)
app_1       |   at io.dropwizard.cli.Cli.run(Cli.java:78)
app_1       |   at io.dropwizard.Application.run(Application.java:94)
app_1       |   at io.zerobase.smarttracing.MainKt.main(Main.kt:51)
app_1       | Caused by: com.fasterxml.jackson.dataformat.yaml.snakeyaml.error.MarkedYAMLException: while scanning an alias
app_1       |  in 'reader', line 16, column 18:
app_1       |     allowedOrigins: [*]
app_1       |                      ^
app_1       | unexpected character found ](93)
app_1       |  in 'reader', line 16, column 19:
app_1       |     allowedOrigins: [*]
app_1       |                       ^
app_1       | 
app_1       |  at [Source: (ByteArrayInputStream); line: 16, column: 18]
app_1       |   at com.fasterxml.jackson.dataformat.yaml.snakeyaml.error.MarkedYAMLException.from(MarkedYAMLException.java:27)
app_1       |   at com.fasterxml.jackson.dataformat.yaml.YAMLParser.nextToken(YAMLParser.java:359)
app_1       |   at com.fasterxml.jackson.databind.deser.std.BaseNodeDeserializer.deserializeArray(JsonNodeDeserializer.java:434)
app_1       |   at com.fasterxml.jackson.databind.deser.std.BaseNodeDeserializer.deserializeObject(JsonNodeDeserializer.java:261)
app_1       |   at com.fasterxml.jackson.databind.deser.std.JsonNodeDeserializer.deserialize(JsonNodeDeserializer.java:68)
app_1       |   at com.fasterxml.jackson.databind.deser.std.JsonNodeDeserializer.deserialize(JsonNodeDeserializer.java:15)
app_1       |   at com.fasterxml.jackson.databind.ObjectMapper._readValue(ObjectMapper.java:4189)
app_1       |   at com.fasterxml.jackson.databind.ObjectMapper.readTree(ObjectMapper.java:2586)
app_1       |   at io.dropwizard.configuration.BaseConfigurationFactory.build(BaseConfigurationFactory.java:80)
app_1       |   ... 5 more
app_1       | Caused by: while scanning an alias
app_1       |  in 'reader', line 16, column 18:
app_1       |     allowedOrigins: [*]
app_1       |                      ^
app_1       | unexpected character found ](93)
app_1       |  in 'reader', line 16, column 19:
app_1       |     allowedOrigins: [*]
app_1       |                       ^
app_1       | 
app_1       |   at org.yaml.snakeyaml.scanner.ScannerImpl.scanAnchor(ScannerImpl.java:1433)
app_1       |   at org.yaml.snakeyaml.scanner.ScannerImpl.fetchAlias(ScannerImpl.java:916)
app_1       |   at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:364)
app_1       |   at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:227)
app_1       |   at org.yaml.snakeyaml.parser.ParserImpl$ParseFlowSequenceEntry.produce(ParserImpl.java:629)
app_1       |   at org.yaml.snakeyaml.parser.ParserImpl$ParseFlowSequenceFirstEntry.produce(ParserImpl.java:617)
app_1       |   at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158)
app_1       |   at org.yaml.snakeyaml.parser.ParserImpl.getEvent(ParserImpl.java:168)
app_1       |   at com.fasterxml.jackson.dataformat.yaml.YAMLParser.nextToken(YAMLParser.java:355)
app_1       |   ... 12 more
zerobase-api_app_1 exited with code 1
togakangaroo commented 4 years ago

Fixed another config bug and README additions here