Lu-Yi-Hsun / iqoptionapi

IQ Option API
372 stars 289 forks source link

Error in get_profile #77

Open Mecabot opened 5 years ago

Mecabot commented 5 years ago

Hi everyone:

The other day I got the next error:

_ERROR:root:error getprofile try reconnect DEBUG:iqoptionapi.ws.client:Websocket client connected.

After this error, I could not bought any other active.

I was thinking in the possibly source of the last error and I got the next two lines:

if(I_want_money.check_connect()==False):
    I_want_money.get_balance()

Do you know how can I catch and avoid this error?

Thanks in advance for your support.

Lu-Yi-Hsun commented 5 years ago

so your program stock stop on get_profile?

Mecabot commented 5 years ago

Not at all, after the DEBUG:iqoptionapi.ws.client:Websocket client connected the debug was getting the realtime candles but the program stock could not buy or sell any binary option.

I attached a picture in low quality, I did not get all debug because I loose it between a data mountain. image

Lu-Yi-Hsun commented 5 years ago

I think iq api required some data but IQOption not respond ,so the api stop to wait respond... I will fix that if wait too long time,return false

Mecabot commented 5 years ago

Thanks for your answer, I will close this issue because you have added an To Do task.

Lu-Yi-Hsun commented 4 years ago

https://github.com/Lu-Yi-Hsun/iqoptionapi/issues/145