wdzeng / shopee-coins-bot

💰 蝦皮簽到機器人 💰
MIT License
441 stars 797 forks source link

Unexpected end of JSON input 這問題是? #38

Closed kai456789 closed 2 years ago

kai456789 commented 2 years ago

指令如下,也在 cookie 用 touch 建立 coin 檔案 。

docker run -it -v ~/cookie/coin:/cookie hyperbola/shopee-coins-bot:1 -u '' -p '' -c /cookie

會出現 Unexpected end of JSON input

Start shopee coins bot v1.1.0.
Start to load cookies.
Failed to load cookies: Unexpected end of JSON input
Start to login shopee.
Failed to login. Missing username or password.

用的是甲骨文的 ARM。

wdzeng commented 2 years ago

你的 cookie 是一個空檔案,所以機器人解讀不了,這是正常的。然而,你給的帳號密碼都是空字串,這當然登不進去。

kai456789 commented 2 years ago

已成功用上 感謝 在ubuntu上 沒用-u的話 cookie寫不進去