Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amplify cli outputs gibberish perpetually #9469

Closed
4 tasks done
kjetilge opened this issue Jan 9, 2022 · 12 comments · Fixed by #9468
Closed
4 tasks done

amplify cli outputs gibberish perpetually #9469

kjetilge opened this issue Jan 9, 2022 · 12 comments · Fixed by #9468
Labels
bug Something isn't working dependency-issue Issue with another dependency used

Comments

@kjetilge
Copy link

kjetilge commented Jan 9, 2022

Before opening, please confirm:

  • I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
  • I have searched for duplicate or closed issues.
  • I have read the guide for submitting bug reports.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

How did you install the Amplify CLI?

npm install -g @aws-amplify/cli

If applicable, what version of Node.js are you using?

16.13.1

Amplify CLI Version

I ran install less than 30 minutes ago.

What operating system are you using?

macos 11.6

Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

My deployment was hanging after removing some models in the console. In hope of fixing it I ran the cli to try a similar change. I then followed the reccomondation made at the bottom here: https://github.com/aws-amplify/amplify-adminui/issues/431

Amplify Categories

auth, function, api

Amplify Commands

Not applicable

Describe the bug

What ever command I use with amplify I get this:

I've tried to change the node version and reinstall amplify, but the problem persist. Has anyone else seen something like this ? On the top left there is a reference to one named "carl pilcher". When I google this I get very worrisome results.

https://en-volve.com/2021/12/29/nasa-hires-top-priest-to-prepare-humanity-for-major-life-changing-announcement/
https://neonnettle.com/news/17870-nasa-hires-priest-as-life-changing-discovery-announcement-expected

Expected behavior

I expected to se readable text.

Reproduction steps

  1. update to the latest amplify cli version (running node version 16.13.0)
  2. run any amplify command

GraphQL schema(s)

# type Invoice @model @auth(rules: [{allow: public}]) {
#   id: ID!
#   customerID: ID @index(name: "byCustomer")
#   gross: Int
#   invoiceText: String
#   yourReference: String
#   productName: String
#   description: String
#   outstandingBalance: String
#   dueDate: AWSDate
# }

# type Customer @model @auth(rules: [{allow: public}]) {
#   id: ID!
#   name: String
#   Invoices: [Invoice] @hasMany(indexName: "byCustomer", fields: ["id"])
# }

input AMPLIFY {
  globalAuthRule: AuthRule = {allow: public}
}

# type User @aws_api_key {
#   hasLicense: Boolean
#   id_token: String!
#   eduOrgLegalName: String!
#   postalAddress: String!
#   orgNumber: Int!
#   displayName: String!
#   orgType: String!
# }

type LicenseUser @model @auth(rules: [{allow: public}]) {
  id: Int                         # licenseUserOrgnummer
  ownerOrgNumber: Int             # kommunen / You
  StartDate: AWSDate
  isGroupLicenseUser: Boolean
  yourRef: String                 # kontakt eller ressursnummer
  contactPerson: String
  contactPersonEmail: AWSEmail
  endUserQuantity: Int
  skolekode: String               # For brukere som ikke bruker feide
}

type FeideCredentials @aws_api_key {
  access_token: String
  token_type: String
  expires_in: Int
  scope: String
  id_token: String
}

type Query @aws_oidc {
  # getUser(code: String): User @function(name: "getFeideUserAuth-${env}") @aws_oidc @aws_api_key
  getFeideCredentials(code: String, redirect_uri: String): FeideCredentials @function(name: "getFeideCredentials-${env}") @aws_oidc @aws_api_key
}

Log output

kjetilge@Kjetils-iMac-Pro ~ % ~/.amplify/logs/amplify-cli-<issue-date>.log
zsh: no such file or directory: issue-date

Additional information

No response

@mgabriele00
Copy link

Same here

@InnovateWithEric
Copy link

This is a problem introduced by a dependent package. CLI is working on a patch now.

@mgabriele00
Copy link

It still doesn't work. Also tried to uninstall and install again

@emmafass
Copy link

Having the same problem

@alice-was-here
Copy link

Same issue here.

@alice-was-here
Copy link

FYI to anyone who has arrived here - this issue is almost certainly caused by the marak/faker thing. More info here.

@kennyjacobson
Copy link

Same here. Spent so many hours thinking it was my fault and trying everything to fix it. Glad I finally found this.

@incr3m
Copy link

incr3m commented Jan 10, 2022

This seems fixed now with npm i @aws-amplify/cli@7.6.7 -g

@dutziworks
Copy link

FYI to anyone who has arrived here - this issue is almost certainly caused by the marak/faker thing. More info here.

Holy crap, what an idiot.

@josefaidt josefaidt linked a pull request Jan 10, 2022 that will close this issue
@josefaidt josefaidt added bug Something isn't working dependency-issue Issue with another dependency used labels Jan 10, 2022
@josefaidt
Copy link
Contributor

josefaidt commented Jan 10, 2022

Hey y'all 👋 thanks for raising this! This issue has been fixed with the latest release of the Amplify CLI, v7.6.7

For older CLI versions it appears we are able to override the dependency depending on our package manager. For npm we can install to a project and add an overrides to the package.json

"overrides": {
  "colors": "1.4.0"
},
"devDependencies": {
  "@aws-amplify/cli": "^7.6.3"
}

Closing issue as the bug has been resolved 🙂

@laverdet
Copy link

We have amplify-cli installed globally since we've run into issues in the past with local installations. We also can't use the newest version of amplify because of other issues. For us, the following worked:

npm uninstall @aws-amplify/cli
npm install -g colors@1.4.1 @aws-amplify/cli@7.4.5

@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working dependency-issue Issue with another dependency used
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants