wdzeng / shopee-coins-bot

💰 蝦皮簽到機器人 💰
MIT License
444 stars 800 forks source link

Failed to load cookies: EISDIR: illegal operation on a directory, read #17

Closed yeuking closed 2 years ago

yeuking commented 2 years ago
docker run -it -v ~/cookie/coin:/cookie hyperbola/shopee-coins-bot:1 -u 'username' -p 'password' -c /cookie
Start shopee coins bot v1.0.17.
Passing password from command line is considered insecure. Should use environment variable or password file.
Start to load cookies.
Failed to load cookies: EISDIR: illegal operation on a directory, read
Start to login shopee.
Try to login by username and password.
Login form submitted. Waiting for redirect.
Login failed: wrong password.

已经确定密码无误,但还是不让进。

wdzeng commented 2 years ago
docker run -it -v ~/cookie/coin:/cookie hyperbola/shopee-coins-bot:1 -u 'username' -p 'password' -c /cookie
Start shopee coins bot v1.0.17.
Passing password from command line is considered insecure. Should use environment variable or password file.
Start to load cookies.
Failed to load cookies: EISDIR: illegal operation on a directory, read
Start to login shopee.
Try to login by username and password.
Login form submitted. Waiting for redirect.
Login failed: wrong password.

已经确定密码无误,但还是不让进。

  1. 如果密碼沒錯,那就是帳號錯了。
  2. 你的 mount 方式不對,這樣會存不了 cookie,請注意 Failed to load cookies: EISDIR: illegal operation on a directory, read 這條警告訊息。

如果需要 debug 的話,可以試試看螢幕截圖 -s

paul159321 commented 2 years ago
docker run -it -v ~/cookie/coin:/cookie hyperbola/shopee-coins-bot:1 -u 'username' -p 'password' -c /cookie
Start shopee coins bot v1.0.17.
Passing password from command line is considered insecure. Should use environment variable or password file.
Start to load cookies.
Failed to load cookies: EISDIR: illegal operation on a directory, read
Start to login shopee.
Try to login by username and password.
Login form submitted. Waiting for redirect.
Login failed: wrong password.

已经确定密码无误,但还是不让进。

先把 cookie 的檔案建立好。 /cookie/coin ← 在 cookie 資料夾下建立 coin 這個「檔案」, 就正常了。

yeuking commented 2 years ago

谢谢,我会先建立文档然后再做尝试。