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
timeout error not happening in node v6 #48
Comments
Interesting. TBH, I haven't tried Seneca 3.0.0, yet - though, all unit tests run fine on it. I'll give it a spin and get back to you. |
@vigneshnrfs Tried it with both node $ ~/seneca-amqp-transport on git:develop ✖︎ [15:29:12]
→ node -v
v6.5.0
$ ~/seneca-amqp-transport on git:develop ✖︎ [15:29:19]
→ npm -v
3.10.6
$ ~/seneca-amqp-transport on git:develop ✖︎ [15:29:23]
→ AMQP_URL=amqp://guest@guest:my.rabbitmq.server:5672 node examples/client.js
{"kind":"notice","notice":"hello","level":"info","seneca":"arpyjxxb899k/1472567371003/1009/3.0.0/-","when":1472567371038}
# Error stacktrace was shortened for legibility
{"notice":"seneca: Action role:create failed: [TIMEOUT]." Could you try reproducing what I just did here? Just run the |
Hi.. tried the same as above. But the result is the same.
The 'Run...' message is emitted everytime setInterval function executes. I ran the same with just seneca 2.1.0 and it works as expected.
|
@vigneshnrfs I believe I know what's going on. On Seneca So, could you try waiting longer on your first run? It should take half the time for a TIMEOUT error to arise in Seneca |
I've waited for about 2 minutes and no error is thrown. I'm wondering does is it specific to amqp-transport or an issue in the seneca core module itself. |
I know this is going to sound rather insulting, but I gotta ask: are you completely positive? Because, in your example I can read 8 "Run..." prints on the
The transport does not manage actions specifically. And is not responsible for triggering timeouts at that level. It does, however, handle timeouts when reaching the broker or on idle connections. |
I am absolutely positive. I ran the scripts just before replying to you.
|
Ok, I re-cloned the repo, started from scratch and now I'm getting the same behaviour you're describing. I wonder what was different on my first attempt. I'll open an issue on senecajs/seneca. Let's see what they can tell us about this. Thanks for letting me know. |
@vigneshnrfs Feel free to follow this up on senecajs/seneca#517 |
@nfantone Thanks a lot. |
Folks, just a heads up, still digging here. The only changes I can see where doubling time-out and updating the Gate Executor. Still not sure the root cause, as soon as I find it I'll let ye know. |
@mcdonnelldean Could you find a possible suspect on this? @vigneshnrfs Any chance you figured this out? |
Haven't really looked into it. For the moment, using v2. |
@vigneshnrfs I'm testing with latest |
@vigneshnrfs Ok, sadly this is still going on in latest release. Already reached out to @mcdonnelldean for input. |
The only thing that has changed that could be responsible is the gate executor. No other part of transport got any significant updates. @rjrodger any thoughts on this. Amqp is broken on 3 On 27 Sep 2016 10:15 p.m., Nicolás Fantone notifications@github.com wrote: @vigneshnrfshttps://github.com/vigneshnrfs Ok, sadly this is still going on in latest release. Already reached out to @mcdonnelldeanhttps://github.com/mcdonnelldean for input. — |
@nfantone We are going to put some time on this issue in the next couple of days, we have someone working with seneca who should be able to drill in to this and figure out just what happened. |
@nfantone @vigneshnrfs I'm able to confirm this is a bug on the seneca side that causes the timeout to not work for most actions (not only related to amqp or even transports). The bug actually resides in seneca gate-executor, you can follow the resolution here senecajs/gate-executor#16 |
@paolochiodi Replied to you in senecajs/gate-executor#16. I'm going to leave this issue open for people coming to the transport to be aware of the bug until it's fixed. |
Fixed in |
I tried installing the latest version of seneca on node v6.
I am using seneca-amqp-transport. When I try calling a pattern that does not even exist, the seneca instance does not even throw a timeout error.
However, it works as expected in seneca v2.0.1.
Explicitly setting the timeout as below does not help either.
The text was updated successfully, but these errors were encountered: