Internal getBalanceUpdates() wamp error return to API subscription attempt

Fern
Archived posts: 2
Joined: Sep 29, 2019

Internal getBalanceUpdates() wamp error return to API subscription attempt

by Fern · · Post #25037

Hi!

Doing some 3rd party monitoring tools integration, I found that all functions and topics work except for balance status and updates
I get the following error when trying to call

Code:

f_all_balance_updates
and

Code:

balance_updates_[apiKey]
:

Code:

Potentially unhandled rejection [1] {"error":"wamp.error.runtime_error","args":["getBalanceUpdates() takes exactly 2 arguments (1 given)"],"kwargs":{}} (WARNING: non-Error used)
Not sure what that 2nd arg is, do you guys have a public repo of this implementation? So I can answer these questions myself in the future.

Thanks!
Steve Sokolowski avatar
Steve Sokolowski
Archived posts: 4559
Joined: Aug 27, 2014

Re: Internal getBalanceUpdates() wamp error return to API subscription attempt

by Steve Sokolowski · · Post #25038

Fern wrote: Hi!

Doing some 3rd party monitoring tools integration, I found that all functions and topics work except for balance status and updates
I get the following error when trying to call

Code:

f_all_balance_updates
and

Code:

balance_updates_[apiKey]
:

Code:

Potentially unhandled rejection [1] {"error":"wamp.error.runtime_error","args":["getBalanceUpdates() takes exactly 2 arguments (1 given)"],"kwargs":{}} (WARNING: non-Error used)
Not sure what that 2nd arg is, do you guys have a public repo of this implementation? So I can answer these questions myself in the future.

Thanks!
Hi Fern,

Could you post some of the code around the area where you're making this call? What language are you using? A few lines of code will assist in trying to reproduce this problem.

Thanks!
Fern
Archived posts: 2
Joined: Sep 29, 2019

Re: Internal getBalanceUpdates() wamp error return to API subscription attempt

by Fern · · Post #25039

Of course! it's a fork of KaptainKrayola's JS implementation:
This is my extended/forked version i'm using and getting the error from: https://github.com/fermelone/prohashing/blob/master/index.js

It surprises me that it talks about 2 args when there's no indication of more than one args to be passed in your help page.

I then use that implementation like this: https://github.com/fermelone/prohashing/blob/master/README.md#usage

Thanks for helping Steve!
Steve Sokolowski avatar
Steve Sokolowski
Archived posts: 4559
Joined: Aug 27, 2014

Re: Internal getBalanceUpdates() wamp error return to API subscription attempt

by Steve Sokolowski · · Post #25046

Fern wrote: Of course! it's a fork of KaptainKrayola's JS implementation:
This is my extended/forked version i'm using and getting the error from: https://github.com/fermelone/prohashing/blob/master/index.js

It surprises me that it talks about 2 args when there's no indication of more than one args to be passed in your help page.

I then use that implementation like this: https://github.com/fermelone/prohashing/blob/master/README.md#usage

Thanks for helping Steve!
Hi Fern,

I installed Node and tried to get your code to work, but it seems to hang after

Code:

(node:8696) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
I think the problem is that I'm not creating the object the same way you are. Could you send me the code you're using to create the object, especially the "config" parameter? If the "config" object contains personal information, then please submit or update a support ticket with it instead.