Ich habe andere ähnliche Fragen untersucht und dieser Fehler wird normalerweise durch ein fehlendes '+' Zeichen verursacht, wenn man Text zu einer Textvariablen hinzufügt oder wenn man irgendwelche komischen Zeichen hat. Irgendwelche Vorschläge, wie meine erkennen? Mein Fehler ist hier:Amazon Alexa Lambda Unerwartetes Token ILLEGAL
-Code in Node.js ist
{
"errorMessage": "Unexpected token ILLEGAL",
"errorType": "SyntaxError",
"stackTrace": [
"Module._compile (module.js:373:25)",
"Object.Module._extensions..js (module.js:416:10)",
"Module.load (module.js:343:32)",
"Function.Module._load (module.js:300:12)",
"Module.require (module.js:353:17)",
"require (internal/module.js:12:17)",
"Object.<anonymous> (/var/task/index.js:9:14)",
"Module._compile (module.js:409:26)",
"Object.Module._extensions..js (module.js:416:10)"
]
}
In Cloudwatch:
Syntaxfehler im Modul 'index': Syntax
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
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)
at require (internal/module.js:12:17)
at Object.<anonymous> (/var/task/index.js:8:14)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
Ich löste dieses Problem. Wird updaten, was falsch gelaufen ist. Es war ein Syntaxfehler. Nicht jetzt aber. In 1 Stunde werde ich updaten. – Diana