Skip to content

Instantly share code, notes, and snippets.

@thesurlydev
Created April 14, 2019 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thesurlydev/daccb68d064c5b70046806bf582fb5ac to your computer and use it in GitHub Desktop.
Save thesurlydev/daccb68d064c5b70046806bf582fb5ac to your computer and use it in GitHub Desktop.
CDK pack error
@aws-cdk/cdk: Unhandled Exception: Newtonsoft.Json.JsonReaderException: Error reading string. Unexpected token: StartObject. Path '['@aws-cdk/cdk.CfnRule'].docs.custom', line 2351, position 19.
@aws-cdk/cdk: at Newtonsoft.Json.JsonReader.ReadAsString()
@aws-cdk/cdk: at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
@aws-cdk/cdk: at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary(IDictionary dictionary, JsonReader reader, JsonDictionaryContract contract, JsonProperty containerProperty, String id)
@aws-cdk/cdk: at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
@aws-cdk/cdk: at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ResolvePropertyAndCreatorValues(JsonObjectContract contract, JsonProperty containerProperty, JsonReader reader, Type objectType)
@aws-cdk/cdk: at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObjectUsingCreatorWithParameters(JsonReader reader, JsonObjectContract contract, JsonProperty containerProperty, ObjectConstructor`1 creator, String id)
@aws-cdk/cdk: at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
@aws-cdk/cdk: at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
@aws-cdk/cdk: at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
@aws-cdk/cdk: at Newtonsoft.Json.Linq.JToken.ToObject(Type objectType, JsonSerializer jsonSerializer)
@aws-cdk/cdk: at Newtonsoft.Json.Linq.JToken.ToObject(Type objectType)
@aws-cdk/cdk: at Newtonsoft.Json.Linq.JToken.ToObject[T]()
@aws-cdk/cdk: at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
@aws-cdk/cdk: at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue)
@aws-cdk/cdk: at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ResolvePropertyAndCreatorValues(JsonObjectContract contract, JsonProperty containerProperty, JsonReader reader, Type objectType)
@aws-cdk/cdk: at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObjectUsingCreatorWithParameters(JsonReader reader, JsonObjectContract contract, JsonProperty containerProperty, ObjectConstructor`1 creator, String id)
@aws-cdk/cdk: at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
@aws-cdk/cdk: at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
@aws-cdk/cdk: at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
@aws-cdk/cdk: at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
@aws-cdk/cdk: at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
@aws-cdk/cdk: at Amazon.JSII.Generator.AssemblyGenerator.Generate(String jsiiFile, String tarballPath, ISymbolMap symbols) in /codebuild/output/src726309059/src/packages/jsii-dotnet-generator/src/Amazon.JSII.Generator/AssemblyGenerator.cs:line 42
@aws-cdk/cdk: at CommandLine.ParserResultExtensions.WithParsed[T](ParserResult`1 result, Action`1 action)
@aws-cdk/cdk: at Amazon.JSII.Generator.CLI.Program.Main(String[] args) in /codebuild/output/src726309059/src/packages/jsii-dotnet-generator/src/Amazon.JSII.Generator.CLI/Program.cs:line 11
@aws-cdk/cdk: Error: jsii-dotnet-generator exited with code null
@aws-cdk/cdk: at ChildProcess.cli.once.code (/home/shane/libs/aws-cdk/tools/cdk-build-tools/node_modules/jsii-pacmak/lib/targets/dotnet.js:131:35)
@aws-cdk/cdk: at Object.onceWrapper (events.js:317:30)
@aws-cdk/cdk: at emitTwo (events.js:126:13)
@aws-cdk/cdk: at ChildProcess.emit (events.js:214:7)
@aws-cdk/cdk: at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
@aws-cdk/cdk: Error: /home/shane/libs/aws-cdk/tools/cdk-build-tools/node_modules/jsii-pacmak/bin/jsii-pacmak -v -o dist exited with error code 1
@aws-cdk/cdk: Package failed. Total time (6.6s) | /home/shane/libs/aws-cdk/tools/cdk-build-tools/node_modules/jsii-pacmak/bin/jsii-pacmak (6.5s)
@aws-cdk/cdk: npm ERR! code ELIFECYCLE
@aws-cdk/cdk: npm ERR! errno 1
@aws-cdk/cdk: npm ERR! @aws-cdk/cdk@0.28.0 package: `cdk-package`
@aws-cdk/cdk: npm ERR! Exit status 1
@aws-cdk/cdk: npm ERR!
@aws-cdk/cdk: npm ERR! Failed at the @aws-cdk/cdk@0.28.0 package script.
@aws-cdk/cdk: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
@aws-cdk/cdk: npm ERR! A complete log of this run can be found in:
@aws-cdk/cdk: npm ERR! /home/shane/.npm/_logs/2019-04-13T21_37_29_663Z-debug.log
lerna ERR! npm run package -- exited 1 in '@aws-cdk/cdk'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment