Error: Cannot find module './rapid-client.node'
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 25/100
- Type d'issue
- Bug
- Clarté
- À clarifier
- Activité
- À l'abandon
- Stack technique
- docker, node.js, typescript
Piste de recherche
Commencez par reproduire la configuration Docker Lambda signalée avec l’image de base alternative, puis inspectez le package aws-lambda-ric installé et le chemin NativeModuleLoader dans node_modules/aws-lambda-ric/dist/index.mjs. C’est terminé lorsque le package inclut un rapid-client.node chargeable et que le runtime démarre correctement sans l’erreur MODULE_NOT_FOUND.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Hello, I am getting this error trying to run a docker on a lambda using an alternative base image with the runtime interface client.
`7 Apr 2024 14:01:50,774 [INFO] (rapid) exec '/usr/local/bin/npx' (cwd=/function, handler=index.handler)
17 Apr 2024 14:01:57,708 [INFO] (rapid) INIT START(type: on-demand, phase: init)
17 Apr 2024 14:01:57,709 [INFO] (rapid) The extension's directory "/opt/extensions" does not exist, assuming no extensions to be loaded.
START RequestId: 79953563-5601-4e3c-b77c-ab118b367ef4 Version: $LATEST
17 Apr 2024 14:01:57,711 [INFO] (rapid) Starting runtime without AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN , Expected?: false
Executing 'index.handler' in function directory '/function'
node:internal/modules/cjs/loader:1140
const err = new Error(message);
^
Error: Cannot find module './rapid-client.node'
Require stack:
- /function/node_modules/aws-lambda-ric/dist/index.mjs
at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
at Module._load (node:internal/modules/cjs/loader:981:27)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at require (node:internal/modules/helpers:177:18)
at NativeModuleLoader.js.exports.load (file:///function/node_modules/aws-lambda-ric/dist/index.mjs:439:26)
at new RAPIDClient (file:///function/node_modules/aws-lambda-ric/dist/index.mjs:454:74)
at run (file:///function/node_modules/aws-lambda-ric/dist/index.mjs:1411:18)
at file:///function/node_modules/aws-lambda-ric/bin/index.mjs:14:7
at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:337:24) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/function/node_modules/aws-lambda-ric/dist/index.mjs' ]
}
Node.js v18.20.2
17 Apr 2024 14:01:58,891 [WARNING] (rapid) First fatal error stored in appctx: Runtime.ExitError
17 Apr 2024 14:01:58,892 [WARNING] (rapid) Process runtime-1 exited: exit status 1
17 Apr 2024 14:01:58,892 [INFO] (rapid) INIT RTDONE(status: error)
17 Apr 2024 14:01:58,892 [INFO] (rapid) INIT REPORT(durationMs: 1185.888000)
17 Apr 2024 14:01:58,892 [ERROR] (rapid) Init failed InvokeID= error=Runtime exited with error: exit status 1
17 Apr 2024 14:01:58,893 [WARNING] (rapid) Shutdown initiated: spindown
17 Apr 2024 14:01:58,893 [INFO] (rapid) Waiting for runtime domain processes termination
17 Apr 2024 14:01:58,894 [INFO] (rapid) INIT START(type: on-demand, phase: invoke)
17 Apr 2024 14:01:58,894 [INFO] (rapid) The extension's directory "/opt/extensions" does not exist, assuming no extensions to be loaded.
17 Apr 2024 14:01:58,894 [INFO] (rapid) INIT REPORT(durationMs: 0.060000)
17 Apr 2024 14:01:58,894 [INFO] (rapid) INVOKE START(requestId: 0fd547e3-fe80-44eb-a9e2-67b5cb4b8000)
17 Apr 2024 14:01:58,894 [ERROR] (rapid) Invoke failed error=Runtime exited with error: exit status 1 InvokeID=0fd547e3-fe80-44eb-a9e2-67b5cb4b8000
17 Apr 2024 14:01:58,897 [ERROR] (rapid) Invoke DONE failed: Sandbox.Failure
17 Apr 2024 14:01:58,897 [WARNING] (rapid) Reset initiated: ReleaseFail
17 Apr 2024 14:01:58,897 [INFO] (rapid) Waiting for runtime domain processes termination`
The rapid-client library is installed but does not have an exportable node file.
- Langage dominant
- TypeScript
- Étoiles
- 224
- Forks
- 60
- Merge moyen
- 26 min
- PR mergées (30 j)
- 2
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de aws/aws-lambda-nodejs-runtime-interface-client
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 20/100
aws/aws-lambda-nodejs-runtime-interface-client#198 · 3 commentaires · 6 réactions ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
aws/aws-lambda-nodejs-runtime-interface-client#195 · 12 réactions ·
-
bug
aws/aws-lambda-nodejs-runtime-interface-client#170 · 15 commentaires · 6 réactions · 1 personne assignée ·
-
AWS Inspector findings for curl Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 38/100
aws/aws-lambda-nodejs-runtime-interface-client#159 · 2 réactions ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 42/100
aws/aws-lambda-nodejs-runtime-interface-client#145 · 1 commentaire · 6 réactions ·
Toutes les issues de aws/aws-lambda-nodejs-runtime-interface-client
Issues similaires
-
Browser Waiting for: Product Owner
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
getsentry/sentry-javascript#24577 · 1 commentaire ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
agilepathway/label-checker#640 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
copse-dev/agent-pane#2953 ·
-
[aw] Upgrade available Ouverteagentic-workflows
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
githubnext/rig#534 ·
-
automation missing-model model-sync provider:pioneer
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
anomalyco/models.dev#7701 ·