Closed gastg77 closed 5 years ago
Hi @gastg77. Did you figure this out?
If there is an error inside your catch
handler, I think you would get that error.
Looking at the code, I see you're doing if (typeof cb === 'undefined')
and then calling cb
... That means you're calling cb
only when it is undefined, which will not work.
If that's not the issue, could you please run node with --trace-warnings
and provide the trace?
Hey @MiniGod
Thanks for reviewing my code, I did not see the mistake :) (I'll check my code right away)
Actually, I did it another way. Before calling the function that use your lib, I test if the server is launched or not. If it is, then I call the function. Not very clean because all the error that can happen won't be catch but .... I'll check your fix !
Thanks !
Hi,
I'm facing with what I will call an issue with your gbxremote's lib.
First of all, I'd like to say that I'm not familiar with promises. I understand the theory but never coded with it.
I have this code :
When I execute it here is what I have :
My server is not launch. I wanted to test this case (it can be for another reason, like the "xmlrpc_allowremote" parameter set to 'false') and it is not what I expected.
Did I miss something in my code or is it really an issue ?
Thanks !
Seb