Revadike / epicgames-freebies-claimer

Claim available free game promotions from the Epic Games Store.
MIT License
2.23k stars 361 forks source link

ERROR | TypeError: Cannot read properties of undefined (reading 'id') #159

Closed XEGARE closed 2 years ago

XEGARE commented 2 years ago

Hello. On the latest version I get: 2021-12-09 | 21:40:05.268 | INFO | Epicgames Freebies Claimer (1.5.6) by Revadike 2021-12-09 | 21:40:10.124 | ERROR | TypeError: Cannot read properties of undefined (reading 'id') at getOfferId (F:\EpicClaimer\src\gamePromotions.js:37:30) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async F:\EpicClaimer\src\gamePromotions.js:52:18 at async Promise.all (index 0) at async freeGamesPromotions (F:\EpicClaimer\src\gamePromotions.js:50:22) at async F:\EpicClaimer\claimer.js:91:30

ArmoredVortex commented 2 years ago

Facing the same Issue

Revadike commented 2 years ago

Yes, I also saw this. The response structure of the free promotions API endpoint must have changed.

Revadike commented 2 years ago

The exact problem is that getting product info from slug godfall--challenger-edition is returning an error.

ArmoredVortex commented 2 years ago

I just tried to claim the game manually and it gave me a captcha to solve. Maybe that's the cause for this ?

Revadike commented 2 years ago

No, it's not. I actually will be pushing a fix in a minute.

Revadike commented 2 years ago

Should be fixed in V1.5.7

ffuubarbuzz commented 2 years ago

@jackblk could you please release new container?

jackblk commented 2 years ago

@ffuubarbuzz it was released 5 hours ago. It's having a bug with the notification, I will fix it later. https://github.com/Revadike/epicgames-freebies-claimer/issues/161

jackblk commented 2 years ago

@ffuubarbuzz ah by the way, if you haven't notice, the latest tag now supports apprise. You can check out the wiki, i've updated it.

Github action guide is also updated.

zzz6839 commented 2 years ago

@Revadike sir, same issue happened on v1.5.8.

22-04-21 | 13:17:52.675 | INFO | Epicgames Freebies Claimer (1.5.8) by Revadike m 2022-04-21 | 13:17:57.520 | ERROR | TypeError: Cannot read properties of undefined (reading 'id')

m at getOfferId (/app/src/gamePromotions.js:42:25) m at processTicksAndRejections (node:internal/process/task_queues:96:5) m at async /app/src/gamePromotions.js:59:33 m at async Promise.all (index 0) m at async freeGamesPromotions (/app/src/gamePromotions.js:57:22) m at async /app/claimer.js:91:30