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

API Gateway Example Code Doesn't Work #71

Closed
mivtachyahu opened this issue Dec 19, 2022 · 2 comments
Closed

API Gateway Example Code Doesn't Work #71

mivtachyahu opened this issue Dec 19, 2022 · 2 comments
Labels
awaiting-feedback Blocked on input from the author kind/bug Some behavior is incorrect or out of spec resolution/duplicate This issue is a duplicate of another issue

Comments

@mivtachyahu
Copy link

What happened?

Using the simple api gateway example code, when I try and run a pulumi up I get the following error:

` error: Error serializing '(ev, ctx) => __awaiter(void 0, void ...': index.ts(15,14)

'(ev, ctx) => __awaiter(void 0, void  ...': index.ts(15,14): which could not be serialized because
  Could not find [[Scopes]] property

Function code:
  (ev, ctx) => __awaiter(void 0, void 0, void 0, function* () {
          console.log(JSON.stringify(ev));
          return {
              statusCode: 200,
              body: "goodbye",
  ...`

Steps to reproduce

Take the simple api gateway example typescript code. Run an npm install. Run a pulumi up. See the above error.

Expected Behavior

Create a stack with an api gateway.

Actual Behavior

I get the error as posted above

Output of pulumi about

CLI
Version 3.49.0
Go Version go1.19.4
Go Compiler gc

Plugins
NAME VERSION
aws 5.24.0
aws-apigateway 1.0.1
nodejs unknown

Host
OS darwin
Version 12.6
Arch arm64

This project is written in nodejs: executable='/opt/homebrew/bin/node' version='v19.3.0'

Backend
Name pulumi.com
URL https://app.pulumi.com/MatthewBrownOlio
User MatthewBrownOlio
Organizations MatthewBrownOlio, OLIOEX

Dependencies:
NAME VERSION
@pulumi/aws-apigateway 1.0.1
@pulumi/aws 5.24.0
@pulumi/pulumi 3.49.0
@types/node 10.17.60

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@mivtachyahu mivtachyahu added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Dec 19, 2022
@danielrbradley
Copy link
Member

Please could you link to exactly which example you're using here - is this from the https://github.com/pulumi/examples repo or in the examples folder within this repo or using pulumi new?

Also, is this written using typescript?

What version of nodejs are you using?

@danielrbradley danielrbradley added awaiting-feedback Blocked on input from the author and removed needs-triage Needs attention from the triage team labels Dec 20, 2022
@mivtachyahu
Copy link
Author

Version of NodeJS was the issue here: Closing this ticket: a duplicate of pulumi/pulumi#11488

@mivtachyahu mivtachyahu closed this as not planned Won't fix, can't repro, duplicate, stale Dec 20, 2022
@danielrbradley danielrbradley added the resolution/duplicate This issue is a duplicate of another issue label Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-feedback Blocked on input from the author kind/bug Some behavior is incorrect or out of spec resolution/duplicate This issue is a duplicate of another issue
Projects
None yet
Development

No branches or pull requests

2 participants