mahendrakalkura / www.bet365.com

44 stars 16 forks source link

Got 1006 and Going away. How can I get the odd of soccer? #3

Closed Jolly23 closed 6 years ago

Jolly23 commented 6 years ago
opening connection...
opened connection
fetching session id...
(u'session id:', '78E25193565B48EB931BBFE91E0CB0E6000003')
(u'sending message:', "u'#\\x03P\\x01__time,S_78E25193565B48EB931BBFE91E0CB0E6000003\\x00'")
(u'received message:', u'100\x02I1PIP11-qby4k03MSJIJ\x00')
(u'sending message:', "u'\\x16\\x00__host\\x01'")
(u'sending message:', "u'\\x16\\x00CONFIG_2_0\\x01'")
(u'sending message:', "u'\\x16\\x00HL_L1_Z3_C1_W4\\x01'")
(u'sending message:', "u'\\x16\\x00HR_L1_Z3_C1_W4\\x01'")
(u'sending message:', "u'\\x16\\x00InPlay_2_0\\x01'")
(u'sending message:', "u'\\x16\\x00LHInPlay_2_0\\x01'")
(u'sending message:', "u'\\x16\\x00Media_l1_Z3\\x01'")
(u'sending message:', "u'\\x16\\x00OVInPlay_2_0\\x01'")
(u'sending message:', "u'\\x16\\x00XI_2_0\\x01'")
(u'sending message:', "u'\\x16\\x00XL_L1_Z3_C1_W4\\x01'")
(u'received message:', u'\x14__time\x01F|IN;TI=20171127171439306;UF=55;|')
[u'__time',
 u'F|IN;TI=20171127171439306;UF=55;|']
closed connection
(u'code:', 1006)
(u'reason:', 'Going away')

There is not any change in your original code, and I run python manage.py.

Sorry, I cannot understand the result, I want to get the odds of soccer from BET365. What should I do?

mahendrakalkura commented 6 years ago

Is this a one-off occurrence or can you reproduce this consistently?

xtonousou commented 6 years ago

I have the same issue, it happens consistently.

Jolly23 commented 6 years ago

Today's return data.

opening connection...
opened connection
fetching session id...
(u'session id:', '652A70A648034D38BF13491B67F70CCC000003')
(u'sending message:', "u'#\\x03P\\x01__time,S_652A70A648034D38BF13491B67F70CCC000003\\x00'")
(u'received message:', u'100\x02I1PIP07-WgDF9UwJmLxU\x00')
(u'sending message:', "u'\\x16\\x00__host\\x01'")
(u'sending message:', "u'\\x16\\x00CONFIG_1_3\\x01'")
(u'sending message:', "u'\\x16\\x00HL_L1_Z3_C1_W4\\x01'")
(u'sending message:', "u'\\x16\\x00HR_L1_Z3_C1_W4\\x01'")
(u'sending message:', "u'\\x16\\x00InPlay_1_3\\x01'")
(u'sending message:', "u'\\x16\\x00LHInPlay_1_3\\x01'")
(u'sending message:', "u'\\x16\\x00Media_l1_Z3\\x01'")
(u'sending message:', "u'\\x16\\x00OVInPlay_1_3\\x01'")
(u'sending message:', "u'\\x16\\x00XI_1_3\\x01'")
(u'sending message:', "u'\\x16\\x00XL_L1_Z3_C1_W4\\x01'")
(u'received message:', u'\x14__time\x01F|IN;TI=20171128015556021;UF=55;|')
[u'__time',
 u'F|IN;TI=20171128015556021;UF=55;|']
(u'received message:', u'\x14EMPTY\x01F|IN;EM=1;TO=__host;|\x08\x14CONFIG_1_3\x01F|CG;AM=0;AQ=0;CB=0;CM=1;CP=0;CW=1;DM=0;DR=;EE=0;EM=0;EW=0;FC= 998,129,95,197,171,10,25,41,47,49,57,58,60,82,85,87,139,147,149,150,199,28,181,13,126,44,999;IF=1;IT=CONFIG_1_3;MB=0;MC=1;MP=0;MR=1;MT=0;OP=0;PB=1;RE=;SB=1;SS=0;WB=0;WC=1;WI=;WL=0;WR=1;WT=0;|')
[u'CONFIG_1_3',
 u'F|CG;AM=0;AQ=0;CB=0;CM=1;CP=0;CW=1;DM=0;DR=;EE=0;EM=0;EW=0;FC= 998,129,95,197,171,10,25,41,47,49,57,58,60,82,85,87,139,147,149,150,199,28,181,13,126,44,999;IF=1;IT=CONFIG_1_3;MB=0;MC=1;MP=0;MR=1;MT=0;OP=0;PB=1;RE=;SB=1;SS=0;WB=0;WC=1;WI=;WL=0;WR=1;WT=0;|']
[u'EMPTY',
 u'F|IN;EM=1;TO=__host;|']
closed connection
(u'code:', 1006)
(u'reason:', 'Going away')
Jolly23 commented 6 years ago

The Monitor of Network shows that image

mahendrakalkura commented 6 years ago

Connection is closed abruptly on your side (hence 1006).

xtonousou commented 6 years ago

Do we have any solution?

mahendrakalkura commented 6 years ago

Connection is closed on your side. I don't think I can provide a solution.

xtonousou commented 6 years ago

Could you post an example output?

Jolly23 commented 6 years ago

@xtonousou good news. I have solved this problem by using this project mahendrakalkura/diffusion, it was also wrote by @mahendrakalkura .

For more detail, you can touch me by zhaolei@protonmail.com

Now, I can get real-time data of BET365

default
Jolly23 commented 6 years ago

@mahendrakalkura Thanks again for your masterpiece.

mahendrakalkura commented 6 years ago

You are welcome. :)

Chiang97912 commented 5 years ago

LOL,I solved this problem, Its very interesting that the reason of this error is result from the ws4py's bug, the solution is replace ws4py with autobahn whilch is a better and more effective websocket package. But you can find a little document to introduce the usage of autobahn. so if someone have encountered with the same error, send email for more detail or find code in my github repo(https://github.com/Chiang97912/bet365.com). my email is chiang97912@gmail.com

egalitarian commented 5 years ago

I'm having the same problem? Anyone care to explain what can be done?