Our event bus rules do have source specified, howe...
# help
d
Our event bus rules do have source specified, however I'm encountering this error
Copy code
Failed to fetch resources. TypeError: pattern.source[0].startsWith is not a function
    at /Users/dennisdang/Desktop/canopy/api/node_modules/@serverless-stack/cli/scripts/util/ConstructsState.js:326:30
    at Array.filter (<anonymous>)
    at ConstructsState.buildEventBusData (/Users/dennisdang/Desktop/canopy/api/node_modules/@serverless-stack/cli/scripts/util/ConstructsState.js:322:8)
    at runMicrotasks (<anonymous>)
Example rule construct that I logged. The source is nested inside event pattern json.
Copy code
{
      Name: 'xxxx',
      Arn: 'xxxx',
      EventPattern: '{"detail-type":["Failed New Payment Request"],"source":["canopyapi.payment_request"]}',
      State: 'ENABLED',
      EventBusName: 'xxxx'
    },
f
Hey @Dennis Dang, sorry about the delay. Just got to this. What’s ur SST version? Can you try updating to the latest v0.54.3?
d
we'll upgrade and try again with that rec. thanks @Frank