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

Syntax Error during amplify add function #13432

Closed
2 tasks done
dan-hook opened this issue Nov 27, 2023 · 2 comments
Closed
2 tasks done

Syntax Error during amplify add function #13432

dan-hook opened this issue Nov 27, 2023 · 2 comments
Labels
pending-triage Issue is pending triage

Comments

@dan-hook
Copy link

How did you install the Amplify CLI?

npm

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

20,9.0

Amplify CLI Version

12.8.2

What operating system are you using?

Ubuntu

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

No

Describe the bug

When adding a function, I get the error: 🛑 Syntax Error: Expected Name, found ")".

vscode ➜ /workspaces/gene-panel-api/project $ amplify add function
? Select which capability you want to add: Lambda function (serverless function)
? Provide an AWS Lambda function name: lockPanelTranscripts
? Choose the runtime that you want to use: Python
Only one template found - using Hello World by default.

✅ Available advanced settings:

  • Resource access permissions
  • Scheduled recurring invocation
  • Lambda layers configuration
  • Environment variables configuration
  • Secret values configuration

? Do you want to configure advanced settings? Yes
? Do you want to access other resources in this project from your Lambda function? Yes
? Select the categories you want this function to have access to. storage
🛑 Syntax Error: Expected Name, found ")".

Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/

Session Identifier: f7c6b1db-7017-40ca-9bf7-cd79df1f6643

✅ Report saved: /tmp/genepanelapi/report-1701123281320.zip

✔ Done

Project Identifier: 936a978c6db7613db2c7925c5142c3e6

Expected behavior

amplify add function works as expected OR Syntax Error gives an indication of where the error occurs.

Reproduction steps

I haven't tried a minimal reproduction.

Project Identifier

936a978c6db7613db2c7925c5142c3e6

Log output

# Put your logs below this line


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.
@dan-hook dan-hook added the pending-triage Issue is pending triage label Nov 27, 2023
@dan-hook
Copy link
Author

Found the syntax error about two seconds after I posted the issue.

Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-triage Issue is pending triage
Projects
None yet
Development

No branches or pull requests

1 participant