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.

Unknown output type: JSON

See original GitHub issue

Hey Guys,

I’m getting this error when I run npm run setup - the stack gets created but any subsequent updates won’t deploy.

> aws cloudformation create-stack --stack-name $npm_package_config_cloudFormationStackName --template-body file://./cloudformation.json --capabilities CAPABILITY_IAM --parameters ParameterKey=AwsServerlessExpressS3Bucket,ParameterValue=$npm_package_config_s3BucketName --region $npm_package_config_region


Unknown output type: JSON

npm ERR! Darwin 16.0.0
npm ERR! argv "/Users/gb/.nvm/versions/node/v4.3.2/bin/node" "/Users/gb/.nvm/versions/node/v4.3.2/bin/npm" "run" "create-stack"
npm ERR! node v4.3.2
npm ERR! npm  v2.14.12
npm ERR! code ELIFECYCLE
npm ERR! aws-serverless-express-example@1.1.0 create-stack: `aws cloudformation create-stack --stack-name $npm_package_config_cloudFormationStackName --template-body file://./cloudformation.json --capabilities CAPABILITY_IAM --parameters ParameterKey=AwsServerlessExpressS3Bucket,ParameterValue=$npm_package_config_s3BucketName --region $npm_package_config_region`
npm ERR! Exit status 255

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8

github_iconTop GitHub Comments

11reactions
gilesbutlercommented, Oct 27, 2016

Spot on! Thanks @brettstack - I ran aws configure and changed Default output format: JSON to text and now it’s working perfectly!

Thanks for your help 👍

10reactions
optimus-kartcommented, Nov 26, 2018

@gilesbutler I had faced a similar issue changing “JSON” to “json” (lower case) after running aws configure solved the problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

AWS CLI - All commands return Unknown output type: [None]
If it's in upper case then running any aws command shows "Unknown ouput type : JSON" . Or alternately open the file C:\Users\<user>\.aws\config ......
Read more >
Error in my AWS CLI: Unknown output type: [None]
I looked into it and found that in my AWS config file (~/.aws/config). Output was set to clear. I changed this to json...
Read more >
AWS CLI Error: All commands return Unknown output type ...
Often times the ~/. aws/config is having some configuration issues and needs to be reconfigured or modified. This is because there are multiple ......
Read more >
Setting the AWS CLI output format - AWS Documentation
JSON is the default output format of the AWS CLI. Most programming languages can easily decode JSON strings using built-in functions or with...
Read more >
AWS CLI MP3 not recognized. Please help
the process fails with Unknown output type: mp3 ... you see when running aws configure should be set to one of the following:...
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