awslabs / amplify-video

An open source Category Plugin for the AWS Amplify-CLI that makes it easy to deploy live and file based streaming video services and integrate them into your Amplify applications.
https://www.npmjs.com/package/amplify-category-video
Apache License 2.0
267 stars 56 forks source link

"No start line" PEM error #191

Closed chazdiezal closed 3 years ago

chazdiezal commented 3 years ago

Describe the bug Video will not upload in front end.

To Reproduce

  1. Hitting create asset button in admin panel I get the following error. I checked the private key and it does contain the proper begin and end formatting.

admin:1 Uncaught (in promise) {data: {…}, errors: Array(1)} data: createVideoObject: {id: "0a7b4ab3-9421-4553-8ee8-1bdf03e96e3d", token: null, createdAt: "2021-01-28T00:51:22.120Z", updatedAt: "2021-01-28T00:51:22.120Z"} proto: Object errors: Array(1) 0: data: null errorInfo: null errorType: "Lambda:Unhandled" locations: [{…}] message: "error:0909006C:PEM routines:get_name:no start line" path: (2) ["createVideoObject", "token"] proto: Object length: 1 proto: Array(0) proto: Object

Expected behavior Video should upload and start backend process

chazdiezal commented 3 years ago

Here is the Cloudwatch log for VodAws-prod-tokenGen pem_error.txt

wizage commented 3 years ago

Should be fixed in #201

chazdiezal commented 3 years ago

now seeing this error when going through running amplify init...

chazdiezal:~/environment/VodAws $ amplify init Note: It is recommended to run this command from the root of your app directory ? Enter a name for the project VodAws ? Enter a name for the environment prod ? Choose your default editor: None ? Choose the type of app that you're building javascript Please tell us about your project ? What javascript framework are you using react ? Source Directory Path: src ? Distribution Directory Path: build ? Build Command: npm run-script build ? Start Command: npm run-script start Using default provider awscloudformation init failed { /home/ec2-user/.nvm/versions/node/v10.23.3/lib/node_modules/@aws-amplify/cli/node_modules/relay-compiler/lib/transforms/SkipRedundantNodesTransform.js:1 Error: Cannot find module '@babel/runtime/helpers/interopRequireDefault' Require stack:

wizage commented 3 years ago

Hey @chazdiezal

This looks like an Amplify CLI problem. Can you open a ticket on their repo:

https://github.com/aws-amplify/amplify-cli