Node.js -> RabbitMQ -> Couchbase issue

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Node.js -> RabbitMQ -> Couchbase issue

Jason Broughton
Good Day Everyone.
Im a few months new to Node.js and Rabbit and im having a strange issue.

RabbitMQ 3.3.1
Node.js v0.10.26
Express 4.2.0
Couchbase 2.5.1
AMQP (module from NPM) 0.2.0


The architecture

I have a main app that has a producer which sends a json object to RabbitMQ to a queue.

I have a secondary app that is the consumer. It receives the json object, parses it and formats the data to be saved in couchbase.

When I try to connect to couchbase or interact with couchbase at all from the consumer method, i get the following error amqp connection error:
error:  code=ECONNRESET, errno=ECONNRESET, syscall=read 

I then added LongJohn from NPM which gives longer stack trace.

and the error i get is :
/node_modules/express/lib/request.js:252
var trustProxy = this.app.get('trust proxy');
                                      ^
TypeError: Cannot call method 'get' of undefined

I have note enabled a 'trust proxy' and I think this is unrelated to my issue.

Im not sure how else to debug this issue and I am hoping someone out there has seen this before or can guide me where to look next.

Thanks
Jason





_______________________________________________
rabbitmq-discuss mailing list has moved to https://groups.google.com/forum/#!forum/rabbitmq-users,
please subscribe to the new list!

[hidden email]
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Reply | Threaded
Open this post in threaded view
|

Re: Node.js -> RabbitMQ -> Couchbase issue

Michael Klishin-2
On 15 July 2014 at 19:54:27, Jason Broughton ([hidden email]) wrote:

> > I have a secondary app that is the consumer. It receives the json
> object, parses it and formats the data to be saved in couchbase.
>
> When I try to connect to couchbase or interact with couchbase
> at all from the consumer method, i get the following error amqp
> connection error:
> error: code=ECONNRESET, errno=ECONNRESET, syscall=read
>
> I then added LongJohn from NPM which gives longer stack trace.
>
> and the error i get is :
> /node_modules/express/lib/request.js:252
> var trustProxy = this.app.get('trust proxy');
> ^
> TypeError: Cannot call method 'get' of undefined

This error has nothing to do with the RabbitMQ client. See RabbitMQ log,
it may give a better clue what's going on.

Also, node-amqp is not really maintained, consider using amqp.lib:
https://github.com/squaremo/amqp.node/
--
MK

Staff Software Engineer, Pivotal/RabbitMQ
_______________________________________________
rabbitmq-discuss mailing list has moved to https://groups.google.com/forum/#!forum/rabbitmq-users,
please subscribe to the new list!

[hidden email]
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss