I have been trying to set up an api to access twitter data from AWS Lambda and can’t get past authentication. I’m being given the following error message when testing my code and hoping someone here can help..
{
“errorMessage”: “Cannot find module ‘sshpk’”,
“errorType”: “Error”,
“stackTrace”: [
“Function.Module._load (module.js:417:25)”,
“Module.require (module.js:497:17)”,
“require (internal/module.js:20:19)”,
“Object. (/var/task/node_modules/http-signature/lib/utils.js:4:13)”,
“Module._compile (module.js:570:32)”,
“Object.Module._extensions..js (module.js:579:10)”,
“Module.load (module.js:487:32)”,
“tryModuleLoad (module.js:446:12)”,
“Function.Module._load (module.js:438:3)”,
“Module.require (module.js:497:17)”,
“require (internal/module.js:20:19)”,
“Object. (/var/task/node_modules/http-signature/lib/parser.js:5:13)”,
“Module._compile (module.js:570:32)”,
“Object.Module._extensions..js (module.js:579:10)”,
“Module.load (module.js:487:32)”
]
}
Hopefully I’ve included enough info to make sense appologies if not, this is the first time I’ve tried accessing anything other than from S3
Related discussions:
- WorkMail Alternative: Jira Free plan?
- How would you schedule Lambda executions dynamically from DynamoDB records?
- Entire backend is in AWS. What’s the best auth provider to use?
- I tested AWS Emulator against 18 services last night
- AWS Lambda now publishes Event Function state change events to Amazon EventBridge