Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

TypeError: bucketName.charAt is not a function #948

Open
itsmepetrov opened this issue Aug 19, 2024 · 0 comments
Open

TypeError: bucketName.charAt is not a function #948

itsmepetrov opened this issue Aug 19, 2024 · 0 comments

Comments

@itsmepetrov
Copy link
Contributor

itsmepetrov commented Aug 19, 2024

In our project we specify buckets via Ref:

events:
  - s3:
      existing: true
      bucket: !Ref IndexBucket
      rules:
        - prefix: data/batch/

unfortunately it breaks getResourceForBucket function:

error - unhandledRejection: TypeError: bucketName.charAt is not a function
    at ServerlessS3Local.getResourceForBucket (.../node_modules/serverless-s3-local/index.js:509:8)

I've created PR that resoles the issue: #947

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant