amplify-cli: Unable to initialize environment due to "not enough bytes in the stream" error
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
16.19.0
Amplify CLI Version
10.5.2
What operating system are you using?
Manjaro
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No manual changes made
Describe the bug
When trying to pull, weβre running into the following error:
π Could not initialize 'dev': not enough bytes in the stream. expected 1898912. got only 1898894
We have been on with AWS support and it has been suggested to raise an issue on GitHub.
Expected behavior
amplify successfully pulls backend from cloud
Reproduction steps
Running any command that triggers an env initialization e.g. amplify pull, amplify checkout env dev, amplify checkout env dev --restore
Project Identifier
No response
Log output
# Put your logs below this line
2022-12-14T16:00:29.515Z|info : amplify pull core {"appId":"[***]b6t0yp","envName":"[***]ev","force":true,"restore":true,"yes":false}
2022-12-14T16:00:29.555Z|info : amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2022-12-14T16:00:32.729Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["amplify-***io"])
2022-12-14T16:00:32.730Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"eu-west-1"}])
2022-12-14T16:00:32.730Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["amplify-***io"])
2022-12-14T16:00:32.739Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["amplify-***io"])
2022-12-14T16:00:32.740Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"eu-west-1"}])
2022-12-14T16:00:32.740Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["amplify-***io"])
2022-12-14T16:00:32.745Z|info : amplify-provider-awscloudformation.zip-util.downloadZip.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip"},null])
2022-12-14T16:00:32.750Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip","Bucket":"[***]ify-[***]nceio-[***]ev-[***]102-[***]ment"}])
2022-12-14T16:01:12.641Z|error : Could not initialize platform for 'dev': not enough bytes in the stream. expected 1898912. got only 1898894
Additional information
No response
Before submitting, please confirm:
- I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- I have removed any sensitive information from my code snippets and submission.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 19 (9 by maintainers)
after removing unused services, I was unable to push the code (amplify push), and got this error:
the command that I run
CLI error (amplify push):
{ "name": "BackendPullFault", "classification": "FAULT", "options": { "message": "not enough bytes in the stream. expected 15644. got only 11274" }, "downstreamException": {}, "link": "https://docs.amplify.aws/cli/project/troubleshooting/" }