blinktrade / BlinkTradeJS

BlinkTrade JavaScript SDK and CLI
GNU General Public License v3.0
122 stars 46 forks source link

BE not authorized #44

Open VinickGold opened 6 years ago

VinickGold commented 6 years ago

Hi guys,

i'm running a program using your api and eventually i get an error with the message "BE not authorized". I really don't know what the error means, cause the message doesn't say to much about the root cause (At least to me ). Do you know anything about? I could just write some code to retry/restart the the process, but a really want to know if i'm doing something wrong related to the api usage instead write a lot more code to just "workaround" the situation.

Thanks in advance.

cesardeazevedo commented 6 years ago

BE is the message type for login, i am not sure what could be causing it, but maybe you were disconnected and tried to send a message?

Are you sure that you are sending heartbeat message each 20 seconds in order to keep the connection alive?

VinickGold commented 6 years ago

I'm sending the hearthbeat every 5s, now the message is a litlle bit more meaninfull to me. I will try reproduce the error and then i back here to provide more information and close the issue. I hope this information will be helpfull to other devs reading the github issues :)

cesardeazevedo commented 6 years ago

Good, i will be adding more meaningful messages and validation on the new version.

pinhopro commented 6 years ago

Can you please give us message log of your connection? It will be a lot easier for us to identify the problem, if any.