Skip to content
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

TypeError: Cannot read properties of undefined (reading 'sendToQueue') #56

Open
cyri113 opened this issue Jun 3, 2023 · 1 comment · Fixed by #63
Open

TypeError: Cannot read properties of undefined (reading 'sendToQueue') #56

cyri113 opened this issue Jun 3, 2023 · 1 comment · Fixed by #63
Assignees

Comments

@cyri113
Copy link
Contributor

cyri113 commented Jun 3, 2023

TypeError: Cannot read properties of undefined (reading 'sendToQueue')
development-tc-server-comm-dev-1  | 2023-06-02T15:29:44.877817582Z     at RabbitMQ.publish (/user/app/node_modules/@togethercrew.dev/tc-messagebroker/dist/rabbitmq/rabbit.js:54:22)
development-tc-server-comm-dev-1  | 2023-06-02T15:29:44.877824013Z     at model.start (/user/app/node_modules/@togethercrew.dev/tc-messagebroker/dist/models/schemas/methods/saga.schema.methods.js:16:24)
development-tc-server-comm-dev-1  | 2023-06-02T15:29:44.877829450Z     at Object.<anonymous> (/user/app/lib/services/saga.service.js:20:20)
development-tc-server-comm-dev-1  | 2023-06-02T15:29:44.877834590Z     at Generator.next (<anonymous>)
development-tc-server-comm-dev-1  | 2023-06-02T15:29:44.877839014Z     at fulfilled (/user/app/lib/services/saga.service.js:5:58)
development-tc-server-comm-dev-1  | 2023-06-02T15:29:44.877843572Z     at processTicksAndRejections (node:internal/process/task_queues:96:5)
@cyri113 cyri113 changed the title Callback error TypeError: Cannot read properties of undefined (reading 'cache') Jun 3, 2023
@cyri113 cyri113 changed the title TypeError: Cannot read properties of undefined (reading 'cache') TypeError: Cannot read properties of undefined (reading 'sendToQueue') Jun 3, 2023
@scientiststwin
Copy link
Contributor

publish method/Saga start should be called after RabbitMQ is connected.

@Behzad-rabiei Behzad-rabiei linked a pull request Jun 6, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants