FGRibreau / FGRibreau/node-amqp-tool

TypeError: Cannot call method 'bind' of undefined

Open
#7 1 comment 0 reactions 0 assignees View on GitHub
bug help needed
Dominant language
JavaScript
Stars
26
Forks
13
PR merge metrics
No merged PRs in 30d

Description

I run this command "amqp-tool --host localhost -u guest -p guest -q queue1 --count 5 --import dump.json".
It comes this error.

```
/usr/local/lib/node_modules/amqp-tool/bin/amqp-tool:133
streamController.close(stream, conn.destroySoon.bind(conn));
^
TypeError: Cannot call method 'bind' of undefined
at stopImport (/usr/local/lib/node_modules/amqp-tool/bin/amqp-tool:133:53)
at importMsg (/usr/local/lib/node_modules/amqp-tool/bin/amqp-tool:128:7)
at /usr/local/lib/node_modules/amqp-tool/node_modules/lazy/lazy.js:99:35
at Lazy. (/usr/local/lib/node_modules/amqp-tool/node_modules/lazy/lazy.js:74:37)
at Lazy.emit (events.js:98:17)
at Lazy. (/usr/local/lib/node_modules/amqp-tool/node_modules/lazy/lazy.js:74:22)
at Lazy.emit (events.js:95:17)
at yieldTo (/usr/local/lib/node_modules/amqp-tool/node_modules/lazy/lazy.js:181:18)
at Function. (/usr/local/lib/node_modules/amqp-tool/node_modules/lazy/lazy.js:219:27)
at Lazy. (/usr/local/lib/node_modules/amqp-tool/node_modules/lazy/lazy.js:187:21)
```
##

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26268836-typeerror-cannot-call-method-bind-of-undefined?utm_campaign=plugin&utm_content=tracker%2F2158434&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F2158434&utm_medium=issues&utm_source=github).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.