Closed rickyelopez closed 2 years ago
how to fix this problem?
On a whim, I tried to generate a new device_auths.json
, but it's producing this error:
Maybe something has changed on the Epic side?
On a whim, I tried to generate a new
device_auths.json
, but it's producing this error: Maybe something has changed on the Epic side?
Maybe you're running on DeviceAuth 1.1.0? There's a fix on a fork for 1.1.1 https://github.com/xMistt/DeviceAuthGenerator/issues/3#issuecomment-924350309
Maybe you're running on DeviceAuth 1.1.0?
Ah, yeah didn't notice the fork. Let me give that a shot.
I think the problem not from DeviceAuth problem from the epic store
Yup, the 1.1.1 release was able to generate a device_auths.json
, but I'm still seeing the same error with the new credentials.
This bug is not related to device auth, just wait for a fix.
2 problems:
/home
paladins--paladins-epic-pack
(this week's freebie) is kinda special. The client cannot parse the offer. Need to investigate more.Calling API to receive info as bundle or product will both fail:
It's an addon but I cannot find the correct API for it.
I think those endpoints can be replaced with https://www.epicgames.com/graphql?operationName=getMappingByPageSlug&variables=%7B%22pageSlug%22:%22paladins--paladins-epic-pack%22%7D&extensions=%7B%22persistedQuery%22:%7B%22version%22:1,%22sha256Hash%22:%225a08e9869c983776596498e0c4052c55f9e54c79e18a303cd5eb9a46be55c7d7%22%7D%7D
But here the problem is calculating the hash, which I am currently looking into.
I think those endpoints can be replaced with https://www.epicgames.com/graphql?operationName=getMappingByPageSlug&variables=%7B%22pageSlug%22:%22paladins--paladins-epic-pack%22%7D&extensions=%7B%22persistedQuery%22:%7B%22version%22:1,%22sha256Hash%22:%225a08e9869c983776596498e0c4052c55f9e54c79e18a303cd5eb9a46be55c7d7%22%7D%7D
But here the problem is calculating the hash, which I am currently looking into.
Nice find. I don't think we need to calculate the hash, try another addon:
This is for https://www.epicgames.com/store/en-US/p/horizon-chase-turbo--horizon-chase-turbo-rookie-series
I think the hash is for the query itself, so we can reuse the hash. Btw how did you find this query lol.
Yeah, I was thinking that too. I found it by just sniffing http traffic.
Hmm I'm also sniffing the traffic, from the addon page, but I didn't find that one. What action do you do (or visit which page) to get that one?
Hmm I'm also sniffing the traffic, from the addon page, but I didn't find that one. What action do you do (or visit which page) to get that one?
When visiting https://www.epicgames.com/store/en-US/p/paladins--paladins-epic-pack
Ok, so seems even epic uses different endpoints for different category types. For example, the other freebie will not return an offer: https://www.epicgames.com/graphql?operationName=getMappingByPageSlug&variables=%7B%22pageSlug%22:%22stubbs-the-zombie-in-rebel-without-a-pulse%22%7D&extensions=%7B%22persistedQuery%22:%7B%22version%22:1,%22sha256Hash%22:%225a08e9869c983776596498e0c4052c55f9e54c79e18a303cd5eb9a46be55c7d7%22%7D%7D
When visiting the freebie page, epicgames will use the product slug endpoint.
Hence, I think the best way to handle this, add this endpoint as option in gamePromotions.js > getOffer()
.
Yeah, we can handle it by checking "offerType": "ADD_ON"
too. If it is an addon then we do specific function for getOffer()
, otherwise we just use the client getBundleForSlug
and getProductForSlug
like normal.
Anyone want to test/review my PR? Here is the changed file directly: https://github.com/Revadike/epicgames-freebies-claimer/blob/766ae427192417d4105930d098a006fc795ac031/src/gamePromotions.js
^
SyntaxError: Unexpected token '<' at wrapSafe (internal/modules/cjs/loader.js:1053:16) at Module._compile (internal/modules/cjs/loader.js:1101:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10) at Module.load (internal/modules/cjs/loader.js:985:32) at Function.Module._load (internal/modules/cjs/loader.js:878:14) at Module.require (internal/modules/cjs/loader.js:1025:19) at require (internal/modules/cjs/helpers.js:72:18) at Object. (C:\Users\meow\Desktop\epicgames-freebies-claimer-master1\claimer.js:4:33) at Module._compile (internal/modules/cjs/loader.js:1137:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
It complains about a character <
, but this character does not exist in claimer.js
. You sure this problem is not yours only?
worked after downloading V1.5.5 big thanks
When will the docker image be updated? Does it happen automatically?
When will the docker image be updated? Does it happen automatically?
@jackblk is in charge of the docker image.
Docker image is updated. Sorry for the delay, it was 2AM at my timezone when v1.5.5 was released lol.
No worries! Thank you for updating it, it works perfectly now!
Actual Behavior
Steps to Reproduce the Problem
docker-compose run epic_free
Specifications
Running using docker-compose instructions, pulled latest image
Notes
This was working previously, stopped working today.