aws-samples / aws-samples/amazon-elasticsearch-lambda-samples

Unable to import module es

Offen
#9 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
386
Forks
170
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

My name of the handler on console is es.handler.
With S3-Lambda-ES I am getting the following error

START RequestId: d6b5b2d1-672d-11e6-a9ef-1dccc79021cb Version: $LATEST
**Unable to import module 'ES':** Error at Function.Module._resolveFilename (module.js:325:15) at Function.Module._load (module.js:276:25) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object. (/var/task/ES.js:19:18) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17)

I am clueless, any inputs will be appreciated.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

The report identifies the es.handler entry point and an import failure in ES.js at line 19; begin by inspecting that file and the dependency referenced there. Reproduce the S3-Lambda-ES deployment, then verify that Lambda can load the handler without the “Unable to import module” error.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
aws, elasticsearch, javascript, node.js
Bereich
backend, cloud
Issue-Typ
Bug
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.