[SOLVED] Error initializing plugin at index 8 Cannot read properties of undefined (reading 'replace') TypeError: Cannot read properties of undefined (reading 'replace')

I get this error every time my server restarts. Any ideas or options on how to resolve this?

Error initializing plugin  at index 8 Cannot read properties of undefined (reading 'replace') TypeError: Cannot read properties of undefined (reading 'replace')

 at RabbitConsumer.bindQueue (/moralis-server/lib/cloud-code/plugins/helpers/consumer.js:87:20)
    at /moralis-server/lib/cloud-code/plugins/helpers/consumer.js:161:12
    at Array.forEach (<anonymous>)
    at RabbitConsumer.consume (/moralis-server/lib/cloud-code/plugins/helpers/consumer.js:156:19)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Object.initialize (/moralis-server/lib/cloud-code/plugins/evm/consumer.js:57:3)
    at async /moralis-server/lib/cloud-code/plugins/index.js:173:9
    at async /moralis-server/lib/cloud-code/plugins/index.js:134:5
    at async /moralis-server/lib/cloud-code/plugins/index.js:134:5
    at async /moralis-server/lib/cloud-code/plugins/index.js:134:5
    at async Object.initialize (/moralis-server/lib/cloud-code/plugins/index.js:133:3)

does the server work fine after that?

what type (nitro/non nitro) and version of server it is

Yes so far I have not noticed any ill effects. I just updated this with Nitro. Will check if I can reproduce the error with the next restart.

OK, looks like adding the Nitro plugin resolved this issue. Thank you!

1 Like