-
Notifications
You must be signed in to change notification settings - Fork 820
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
4.50.0 error: Cannot read property 'length' of undefined #7190
Comments
Setting AWS Amplify to use 4.49.0 resolved the issue and backend push went through fine. Let me know if you need any additional info or want me to try to do a backend push on my local machine with 4.50.0. Until then I'll leave this in your hands :). |
If you could share the contents of |
Sure I just emailed it to [email protected] |
Thank you for reporting this. We are working on a fix. In the mean time, if you run |
@cjihrig, just a heads up, running an |
@jacobhobson is your |
@cjihrig, no, that field is not missing. Each |
OK, and you are seeing the same error as the OP, right? If so, can you share your |
We are getting the same error. It is occurring on CLI 4.50.0. Forcing the build CLI to 4.49.0 we were able to work around this issue. Starting phase: buildExecuting command: amplifyPush --simple2021-04-27T20:55:48.200Z [INFO]: [0mAmplify AppID found: d2y376scxw2k21. Amplify App name is: xxxxx-staging-ci[0m |
@blairtaylor can you confirm if any of your REST API paths are missing a |
+1 , we are experiencing the same issue |
I've emailed our |
Got the same error when running with amplify version 4.50.0: Then ran When I push this with
well, yes the where removed in |
@wbroek thank you for your input. If your API's |
What to do when |
* fix: ensure policy resource name when pushing REST APIs It is possible that older REST APIs have never been updated to include the policyResourceName field on paths. This commit ensures that the field is present. Refs: #7190 * fix: process CFN and parameters.json separately When removing the auth and unauth roles from REST APIs, the CFN template and the parameters.json file should be processed separately in case they have gotten out of sync. Otherwise, the generated root stack is likely to have errors. * fix: ignore AdminQueries during REST API consolidation This commit moves the check for AdminQueries from consolidateApiGatewayPolicies() to loadApiWithPrivacyParams(), as the latter is also called from push-resources.ts. * fix: add AdminQueries to multiple REST API test * fix: don't throw on malformed path Co-authored-by: Colin Ihrig <[email protected]>
Had the same issue. Using 4.49.0 fixed the problem. |
I see this is closed, but I'm still experiencing the issue in the backend build (it seems LATEST still resolves to 4.50.0 there, were the changes released?) |
👋 Hi, this issue was referenced in the v4.50.2 release! Check out the release notes here https://github.com/aws-amplify/amplify-cli/releases/tag/v4.50.2. |
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 |
Before opening, please confirm:
How did you install the Amplify CLI?
AWS Amplify Build
If applicable, what version of Node.js are you using?
Not sure - whatever AWS Amplify uses
Amplify CLI Version
4.50.0
What operating system are you using?
Amazon Linux I assume
Amplify Categories
api
Amplify Commands
push
Describe the bug
Just did a very simple push that triggered CI in AWS Amplify. Got the following error. This build was working fine before 4.50.0. Our amplify build is set to push with latest amplify always.
Expected behavior
Should just work
Reproduction steps
GraphQL schema(s)
# Put schemas below this line
Log output
Additional information
I have not tested yet locally or with < 4.50.0. Will do now.
The text was updated successfully, but these errors were encountered: