Skip to content

got-scraping not working with lambda function anymore #147

@nrjdalal

Description

@nrjdalal

Cloudwatch logs -

{
    "errorType": "Error",
    "errorMessage": "ENOENT: no such file or directory, open '/var/task/dist//data_files/headers-order.json'",
    "code": "ENOENT",
    "errno": -2,
    "syscall": "open",
    "path": "/var/task/dist//data_files/headers-order.json",
    "stack": [
        "Error: ENOENT: no such file or directory, open '/var/task/dist//data_files/headers-order.json'",
        "    at Object.openSync (node:fs:573:18)",
        "    at readFileSync (node:fs:452:35)",
        "    at new HeaderGenerator (file:///var/task/dist/index.mjs:75050:62)",
        "    at file:///var/task/dist/index.mjs:88702:17",
        "    at ModuleJob.run (node:internal/modules/esm/module_job:234:25)",
        "    at async ModuleLoader.import (node:internal/modules/esm/loader:473:24)",
        "    at async _tryAwaitImport (file:///var/runtime/index.mjs:1008:16)",
        "    at async _tryRequire (file:///var/runtime/index.mjs:1057:86)",
        "    at async _loadUserApp (file:///var/runtime/index.mjs:1081:16)",
        "    at async UserFunction.js.module.exports.load (file:///var/runtime/index.mjs:1119:21)"
    ]
}

Code ref -

https://github.com/nrjdalal/html-scraper

Metadata

Metadata

Assignees

Labels

t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions