-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
got-scraping not working with lambda function anymore #147
Comments
What nodejs version are you on? This feels like a bug they introduced in v23.0.0, seeing the double slash in the path. |
INIT_START Runtime Version: nodejs:20.v42 Runtime Version |
if I comment out imports of got-scraping and usage, the fx works fine |
your project looks more like you are using bun, not nodejs? |
on aws I am using node only, there is no bun support, bun is for dev only async run() {
const schema = z
.object({
API_KEY: z.string().min(8),
SST_AWS_ACCESS_KEY_ID: z.string(),
SST_AWS_SECRET_ACCESS_KEY: z.string(),
PULUMI_NODEJS_PROJECT: z.string(),
PULUMI_NODEJS_STACK: z.enum(["dev"]),
})
.parse(process.env)
const apSouth1 = new sst.aws.Function(
"html-scraper",
{
handler: "dist/index.handler",
memory: "256 MB",
runtime: "nodejs20.x", // runtime
url: true,
environment: {
API_KEY: schema.API_KEY,
ACCESS_KEY_ID: schema.SST_AWS_ACCESS_KEY_ID,
SECRET_ACCESS_KEY: schema.SST_AWS_SECRET_ACCESS_KEY,
FUNCTION_NAME: `${schema.PULUMI_NODEJS_PROJECT}-${schema.PULUMI_NODEJS_STACK}-${schema.PULUMI_NODEJS_PROJECT.replace("-", "")}Function`,
FUNCTION_REGION: "ap-south-1",
},
},
{
provider: new aws.Provider("ap-south-1", { region: "ap-south-1" }),
},
) runtime is node, so is in case of logs, and after fx console aka 100% it is node |
Cloudwatch logs -
Code ref -
https://github.com/nrjdalal/html-scraper
The text was updated successfully, but these errors were encountered: