bfgminer icon indicating copy to clipboard operation
bfgminer copied to clipboard

Error "Pool 0: Unknown stratum msg: {"error":null,"id":auth,"result":true}"

Open mooko-dev opened this issue 4 years ago • 5 comments

Hello! I'm trying to connect to the AntPool. I have created a subaccount with the name "miner888". I use the console command "bfgminer -o stratum+tcp://ss.antpool.com:3333 -u miner888.worker1 -p anything". I get the error "Pool 0: Unknown stratum msg: {"error":null,"id":auth,"result":true}". Also, I tried to connect to the pool using CGMiner with the same parameters and it connects successful. Why BFGMiner can't connect to the pool? Version of BFGMiner I have tested is 5.5.0. Hope for your help! Thanks in advance!

mooko-dev avatar Feb 18 '21 20:02 mooko-dev

I have the same problem

gaoxuezhao avatar Mar 29 '21 05:03 gaoxuezhao

Did you resolve?

gorghino avatar Sep 17 '21 13:09 gorghino

"id": auth is NOT valid JSON reply, because auth is not in " ", so it's not string... If it works in CGMiner they have some workaround... This is BUG report to Antminer's pool, because string is NOT valid JSON string.

$ echo '{"error":null,"id":auth,"result":true}' | jq . 
parse error: Invalid numeric literal at line 1, column 24

versus (notice added " " to auth string)

$ echo '{"error":null,"id":"auth","result":true}' | jq . 
{
  "error": null,
  "id": "auth",
  "result": true
}

petrkr avatar Jan 05 '22 01:01 petrkr

不是我的问题,我没有向您们提这个这个问题

Petr Kracík @.***>于2022年1月5日 周三上午9:03写道:

"id": auth is NOT valid JSON reply, because auth is not in " ", so it's not string... If it works in CGMiner they have some workaround... This is BUG report to Antminer's pool, because string is NOT valid JSON string.

$ echo '{"error":null,"id":auth,"result":true}' | jq . parse error: Invalid numeric literal at line 1, column 24

versus (notice added " " to auth string)

$ echo '{"error":null,"id":"auth","result":true}' | jq . { "error": null, "id": "auth", "result": true }

— Reply to this email directly, view it on GitHub https://github.com/luke-jr/bfgminer/issues/806#issuecomment-1005294023, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARMRMSXW6JTED4TCVZ3MXSDUUOKHLANCNFSM4X26CGWA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

130666ourgame avatar Jan 05 '22 01:01 130666ourgame

Well..

It's half/half problem on both side. From name "ID" should be number, not string.. But on other hand, antpool should reply string and not unquoted string (which is NOT valid JSON).

For now solution is send number instead string

fixed by https://github.com/petrkr/bfgminer/commit/635041d85e8ec2d5a88cf690a4cc20ee8d98b295

petrkr avatar Jan 05 '22 09:01 petrkr