Git Product home page Git Product logo

Comments (12)

vishaliamops avatar vishaliamops commented on August 14, 2024 1

Thank you @rayjanoka The issue is resolved and the auto tag is working fine with Node 18.x version.

from auto-tag.

tkboyle avatar tkboyle commented on August 14, 2024

I'm also seeing this when switching the runtime from nodejs:14 to nodejs:18.

No issues using nodejs:16.v18

from auto-tag.

vishaliamops avatar vishaliamops commented on August 14, 2024

Facing the issue @northern @humblelistener

Getting error:
errorType": "Runtime.UnhandledPromiseRejection, errorMessage": "Error: Cannot find module 'aws-sdk'\nRequire stack:

from auto-tag.

rayjanoka avatar rayjanoka commented on August 14, 2024

I see, let me try to just include the v2 aws-sdk with the release zip

from auto-tag.

rayjanoka avatar rayjanoka commented on August 14, 2024

I've updated the v0.5.5 release package to include the aws-sdk v2 library for NodeJS 18 in Lambda.
Let us know if the new package is working.

from auto-tag.

estanqueiroa avatar estanqueiroa commented on August 14, 2024

hello there, just tested and got this error msg:

2023-09-06T18:20:21.370Z undefined ERROR Uncaught Exception {
"errorType": "Runtime.UserCodeSyntaxError",
"errorMessage": "SyntaxError: Cannot use import statement outside a module",
"stack": [
"Runtime.UserCodeSyntaxError: SyntaxError: Cannot use import statement outside a module",
" at _loadUserApp (file:///var/runtime/index.mjs:1058:17)",
" at async UserFunction.js.module.exports.load (file:///var/runtime/index.mjs:1093:21)",
" at async start (file:///var/runtime/index.mjs:1256:23)",
" at async file:///var/runtime/index.mjs:1262:1"
]
}

thank you

from auto-tag.

rayjanoka avatar rayjanoka commented on August 14, 2024

thanks @estanqueiroa, I think I got the errors cleared if you could try again.

from auto-tag.

vishaliamops avatar vishaliamops commented on August 14, 2024

Hello @rayjanoka I think the issue is not resolved yet, Facing same error again.

While using ./deploy_autotag.sh -r region -s3bu bucket-name --release-version latest update-release this command the runtime version remains on 14.x only.

The version is updated when ./deploy_autotag.sh -r region -s3bu bucket-name update-master command is ran

from auto-tag.

rayjanoka avatar rayjanoka commented on August 14, 2024

@vishaliamops ok I uploaded the code, you can try update-master or the 0.5.6 release.

from auto-tag.

vishaliamops avatar vishaliamops commented on August 14, 2024

Good Morning @rayjanoka
I think the SDK issue is resolved but now we are getting new error,

{
"errorType": "Runtime.UnhandledPromiseRejection",
"errorMessage": "SyntaxError: Cannot use import statement outside a module",
"reason": {
"errorType": "SyntaxError",
"errorMessage": "Cannot use import statement outside a module",
"stack": [
"/var/task/autotag_event.js:1",
"import AwsCloudTrailEventListener from './aws_cloud_trail_event_listener.js';",
"^^^^^^",
"",
"SyntaxError: Cannot use import statement outside a module",
" at internalCompileFunction (node:internal/vm:73:18)",
" at wrapSafe (node:internal/modules/cjs/loader:1178:20)",
" at Module._compile (node:internal/modules/cjs/loader:1220:27)",
" at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)",
" at Module.load (node:internal/modules/cjs/loader:1119:32)",
" at Module._load (node:internal/modules/cjs/loader:960:12)",
" at Module.require (node:internal/modules/cjs/loader:1143:19)",
" at require (node:internal/modules/cjs/helpers:121:18)",
" at _tryImportOrRequire (/opt/nodejs/node_modules/lumigo-auto-instrument/aws/aws-user-function.js:211:14)",
" at _loadUserAppAsync (/opt/nodejs/node_modules/lumigo-auto-instrument/aws/aws-user-function.js:133:12)"
]
},
"promise": {},
"stack": [
"Runtime.UnhandledPromiseRejection: SyntaxError: Cannot use import statement outside a module",
" at process. (file:///var/runtime/index.mjs:1250:17)",
" at process.emit (node:events:514:28)",
" at emit (node:internal/process/promises:149:20)",
" at processPromiseRejections (node:internal/process/promises:283:27)",
" at process.processTicksAndRejections (node:internal/process/task_queues:96:32)"
]
}

And Yes also need to mention that while upgrading using Update Master Command

ReferenceError: module is not defined at file:///tmp/tmp.MyEnoNeQOL/auto-tag/babelrc-node.js:1:1 at ModuleJob.run (internal/modules/esm/module_job.js:145:37) at async Loader.import (internal/modules/esm/loader.js:182:24)

Following error is triggred.

from auto-tag.

rayjanoka avatar rayjanoka commented on August 14, 2024

ok, I fully tested this one in my account. Should be good to go with aws-sdk v3!

https://github.com/GorillaStack/auto-tag/releases/tag/0.5.7

from auto-tag.

estanqueiroa avatar estanqueiroa commented on August 14, 2024

from auto-tag.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.