Api Profitability issue?

Encounter a problem related to the pool or have a request for a feature? Post your issue here and we will help you out.
Forum rules
Welcome to the System Support forum! Encounter a problem related to the pool? Post your issue here and we will help you out.

Keep in mind that the forums are monitored by PROHASHING less closely than the official support channels, so if you have a pressing issue, please submit an official support ticket so that our Support Analyst can look into your issue in a timely manner.

We cannot answer financial questions related to your account on a public forum, so those questions should always be submitted through the orange Support button on prohashing.com/about.

For the full list of PROHASHING forums rules, please visit https://prohashing.com/help/prohashing- ... rms-forums.
Locked
backwerd
Posts: 8
Joined: Thu Sep 14, 2017 3:45 am

Api Profitability issue?

Post by backwerd » Wed Oct 25, 2017 6:30 am

ive subscribed via wamp protocol to profitability updates channel but it not getting any events
all other channels seem to work just fine
is there an issue with this api function?

heres the debug output below

Code: Select all

/prohashing# node app.js
AutobahnJS debug enabled
trying to create WAMP transport of type: websocket
using WAMP transport type: websocket
[ 1,
  'mining',
  { roles:
     { caller: [Object],
       callee: [Object],
       publisher: [Object],
       subscriber: [Object] },
    authmethods: [ 'wampcra' ],
    authid: 'web' } ]
[ 5, 'Q81EmPt5ZvJ6RiylPP1CprCU37HQdLQWdNeXiEsoHZM=', {} ]
[ 48, 5064584368919518, {}, 'f_all_profitability_updates' ]
Connected to Prohashing WAMP
[ 32, 4523087202897478, {}, 'profitability_updates' ]
^C
User avatar
Steve Sokolowski
Posts: 4585
Joined: Wed Aug 27, 2014 3:27 pm
Location: State College, PA

Re: Api Profitability issue?

Post by Steve Sokolowski » Wed Oct 25, 2017 7:15 am

backwerd wrote:ive subscribed via wamp protocol to profitability updates channel but it not getting any events
all other channels seem to work just fine
is there an issue with this api function?

heres the debug output below

Code: Select all

/prohashing# node app.js
AutobahnJS debug enabled
trying to create WAMP transport of type: websocket
using WAMP transport type: websocket
[ 1,
  'mining',
  { roles:
     { caller: [Object],
       callee: [Object],
       publisher: [Object],
       subscriber: [Object] },
    authmethods: [ 'wampcra' ],
    authid: 'web' } ]
[ 5, 'Q81EmPt5ZvJ6RiylPP1CprCU37HQdLQWdNeXiEsoHZM=', {} ]
[ 48, 5064584368919518, {}, 'f_all_profitability_updates' ]
Connected to Prohashing WAMP
[ 32, 4523087202897478, {}, 'profitability_updates' ]
^C
I'll tell Chris to look into this issue. It says "ERROR: INSECURE RESPONSE" in the Chrome console, and I was unable to determine what that means. Everything seems to be functioning normally and no code changes have been made.
User avatar
Steve Sokolowski
Posts: 4585
Joined: Wed Aug 27, 2014 3:27 pm
Location: State College, PA

Re: Api Profitability issue?

Post by Steve Sokolowski » Wed Oct 25, 2017 2:11 pm

This issue has been resolved. The SSL certificate had expired, so Chris renewed it. Thanks for your patience.
backwerd
Posts: 8
Joined: Thu Sep 14, 2017 3:45 am

Re: Api Profitability issue?

Post by backwerd » Wed Oct 25, 2017 5:37 pm

that doesnt seem to be the issue as it shows connected and all other channels subs are getting updates except profitability
backwerd
Posts: 8
Joined: Thu Sep 14, 2017 3:45 am

Re: Api Profitability issue?

Post by backwerd » Wed Oct 25, 2017 5:56 pm

im using https://github.com/KaptainKrayola/prohashing
its was last commited about 5 months ago
has something changed that would cause it not to work correctly
User avatar
AppleMiner
Posts: 736
Joined: Sat Sep 30, 2017 1:44 pm

Re: Api Profitability issue?

Post by AppleMiner » Wed Oct 25, 2017 7:26 pm

try:

https://pas.ma/prohash/

as a test, someone else posted it in another thread.
And I thought the API was altered recently in the past month, so more recently than 5 months ago.
backwerd
Posts: 8
Joined: Thu Sep 14, 2017 3:45 am

Re: Api Profitability issue?

Post by backwerd » Thu Oct 26, 2017 4:05 am

yeah i have tried that pas.ma site but it doesnt show profitability updates either
so maybe they have an issue getting those as well?
backwerd
Posts: 8
Joined: Thu Sep 14, 2017 3:45 am

Re: Api Profitability issue?

Post by backwerd » Thu Oct 26, 2017 4:07 am

the api documentaion seems to be the same and it seems to me the app is connected and subscribed to the channel just not getting any thing sent to it
backwerd
Posts: 8
Joined: Thu Sep 14, 2017 3:45 am

Re: Api Profitability issue?

Post by backwerd » Thu Oct 26, 2017 4:39 am

i figured it out the issue not with channel or the profitability function it is with the client i was using i downloaded from github
i have added the code needed to make it work thanks for the help
Locked