Fabbi / autoshift

automatic SHiFT code redemption script™
GNU General Public License v3.0
64 stars 23 forks source link

Change in response in some cases makes a few keys continue to fail #38

Closed zarmstrong closed 2 years ago

zarmstrong commented 2 years ago
# pipenv run ./auto.py  --user xxxx --pass xxxx --games bl3 ttw bl2 blps --platforms epic steam -v
2022-05-03 10:59:40,444 [DEBUG]    auto:215 - Debug mode on
Parsing BL3  keys...done. (no new Keys)
You have 0 golden BL3 keys to redeem for EPIC
Parsing BL3  keys...done. (no new Keys)
You have 0 golden BL3 keys to redeem for STEAM
Parsing TTW  keys...done. (no new Keys)
You have 0 golden TTW keys to redeem for EPIC
Parsing TTW  keys...done. (no new Keys)
You have 0 golden TTW keys to redeem for STEAM
Parsing BL2  keys...done. (no new Keys)
You have 0 golden BL2 keys to redeem for EPIC
Parsing BL2  keys...done. (no new Keys)
You have 0 golden BL2 keys to redeem for STEAM
Parsing BLPS keys...done. (no new Keys)
You have 0 golden BLPS keys to redeem for EPIC
Parsing BLPS keys...done. (no new Keys)
You have 0 golden BLPS keys to redeem for STEAM
2022-05-03 10:59:48,005 [INFO]     Trying to redeem Maya Head (KTC3T-WTW5F-ZCHB3-BT3B3-XJ9WR)
2022-05-03 10:59:48,313 [DEBUG]    shift:187 - GET https://shift.gearboxsoftware.com/code_redemptions/new 200
2022-05-03 10:59:48,420 [DEBUG]    shift:225 - GET https://shift.gearboxsoftware.com/entitlement_offer_codes?code=KTC3T-WTW5F-ZCHB3-BT3B3-XJ9WR 200
2022-05-03 10:59:48,420 [ERROR]    This SHiFT code has already been redeemed
2022-05-03 10:59:48,421 [DEBUG]    auto:59 - Status: UNKNOWN
2022-05-03 10:59:48,421 [INFO]     A unknown Error occured
2022-05-03 10:59:48,421 [INFO]     Trying to redeem Axton Head (KJKJT-WHBKX-HC9BT-TJBJ3-XJFSJ)
2022-05-03 10:59:48,514 [DEBUG]    shift:187 - GET https://shift.gearboxsoftware.com/code_redemptions/new 200
2022-05-03 10:59:48,623 [DEBUG]    shift:225 - GET https://shift.gearboxsoftware.com/entitlement_offer_codes?code=KJKJT-WHBKX-HC9BT-TJBJ3-XJFSJ 200
2022-05-03 10:59:48,624 [ERROR]    This SHiFT code has already been redeemed
2022-05-03 10:59:48,624 [DEBUG]    auto:59 - Status: UNKNOWN
2022-05-03 10:59:48,624 [INFO]     A unknown Error occured
2022-05-03 10:59:48,624 [INFO]     Trying to redeem Maya Head (KTC3T-WTW5F-ZCHB3-BT3B3-XJ9WR)
2022-05-03 10:59:48,718 [DEBUG]    shift:187 - GET https://shift.gearboxsoftware.com/code_redemptions/new 200
2022-05-03 10:59:48,828 [DEBUG]    shift:225 - GET https://shift.gearboxsoftware.com/entitlement_offer_codes?code=KTC3T-WTW5F-ZCHB3-BT3B3-XJ9WR 200
2022-05-03 10:59:48,828 [ERROR]    This SHiFT code has already been redeemed
2022-05-03 10:59:48,828 [DEBUG]    auto:59 - Status: UNKNOWN
2022-05-03 10:59:48,828 [INFO]     A unknown Error occured
2022-05-03 10:59:48,829 [INFO]     Trying to redeem Axton Head (KJKJT-WHBKX-HC9BT-TJBJ3-XJFSJ)
2022-05-03 10:59:48,925 [DEBUG]    shift:187 - GET https://shift.gearboxsoftware.com/code_redemptions/new 200
2022-05-03 10:59:49,040 [DEBUG]    shift:225 - GET https://shift.gearboxsoftware.com/entitlement_offer_codes?code=KJKJT-WHBKX-HC9BT-TJBJ3-XJFSJ 200
2022-05-03 10:59:49,041 [ERROR]    This SHiFT code has already been redeemed
2022-05-03 10:59:49,041 [DEBUG]    auto:59 - Status: UNKNOWN
2022-05-03 10:59:49,041 [INFO]     A unknown Error occured

This will loop every time you run it, as the status comes back unknown, despite showing a This SHiFT code has already been redeemed. I've fixed this (pull request to follow)

zarmstrong commented 2 years ago

Also part of https://github.com/Fabbi/autoshift/pull/37

Fabbi commented 2 years ago

fixed in #37