Closed Freekers closed 4 years ago
Once the Docker hub build is finished on https://github.com/claabs/epicgames-freegames-node/commit/9eb347439e6410020478357351c901fd2e7ef76a, can you pull and try again? I expect it to fail, but we should get the 400 error message body this time.
My first suspicion is that it's a region issue, but we'll find out.
I pulled the new image and it worked :) Here's the log:
> epicgames-freegames-node@1.0.0 start /usr/app
> node dist/index.js
[2020-05-30 01:33:59.859 +0000] INFO (18 on 769a785336ff): Successfully refreshed login
[2020-05-30 01:34:00.823 +0000] INFO (18 on 769a785336ff): Available free games
availableGames: [
"Borderlands: The Handsome Collection"
]
[2020-05-30 01:34:00.826 +0000] DEBUG (18 on 769a785336ff): Fetching updated IDs
url: "https://store-content.ak.epicgames.com/api/en-US/content/bundles/borderlands-the-handsome-collection"
[2020-05-30 01:34:00.899 +0000] DEBUG (18 on 769a785336ff): Getting product info
linkedOfferNs: "85189f7cf7a64f86aa6aa91d81d36c08"
linkedOfferId: "a61c6602b5784d36801d0cab73e02337"
[2020-05-30 01:34:00.899 +0000] DEBUG (18 on 769a785336ff): Posting for offer entitlement
data: {
"query": "query launcherQuery($namespace:String!, $offerId:String!) {\n Launcher {\n entitledOfferItems(namespace: $namespace, offerId: $offerId) {\n namespace\n offerId\n entitledToAllItemsInOffer\n entitledToAnyItemInOffer\n }\n }\n }",
"variables": {
"namespace": "85189f7cf7a64f86aa6aa91d81d36c08",
"offerId": "a61c6602b5784d36801d0cab73e02337"
}
}
url: "https://www.epicgames.com/store/backend/graphql-proxy"
[2020-05-30 01:34:01.279 +0000] INFO (18 on 769a785336ff): Unpurchased free games
purchasableGames: [
"Borderlands: The Handsome Collection"
]
[2020-05-30 01:34:01.280 +0000] INFO (18 on 769a785336ff): Purchasing Borderlands: The Handsome Collection
[2020-05-30 01:34:03.586 +0000] DEBUG (18 on 769a785336ff): purchaseToken
purchaseToken: "a99d359e07054269833e02d6af53dff1"
[2020-05-30 01:34:03.587 +0000] DEBUG (18 on 769a785336ff): Order preview request
orderPreviewRequest: {
"useDefault": true,
"setDefault": false,
"namespace": "85189f7cf7a64f86aa6aa91d81d36c08",
"country": null,
"countryName": null,
"orderId": null,
"orderComplete": null,
"orderError": null,
"orderPending": null,
"offers": [
"a61c6602b5784d36801d0cab73e02337"
],
"offerPrice": ""
}
[2020-05-30 01:34:04.319 +0000] DEBUG (18 on 769a785336ff): Order preview response
orderPreviewResponse: {
"affiliation": null,
"catalogResponse": {
"currencySymbolPlacement": "LEFT",
"code": "NL",
"displayName": "NETHERLANDS",
"ratingSystem": "PEGI",
"embargoed": false,
"sellerOfRecord": "EPIC_INT",
"vatChargeRate": 23,
"vatPercentage": 21,
"defaultCurrency": "EUR",
"vatIncluded": true,
"region": "EURO",
"sellerOfRecordName": "Epic Games International S.à r.l.",
"paymentCurrency": "EUR"
},
"country": "NL",
"countryName": "Netherlands",
"message": null,
"namespace": "85189f7cf7a64f86aa6aa91d81d36c08",
"offers": [
"a61c6602b5784d36801d0cab73e02337"
],
"orderComplete": false,
"orderError": false,
"orderId": null,
"orderPending": false,
"orderResponse": {
"orderType": "PURCHASE",
"symbol": "€",
"country": "NL",
"agentUserName": "anonymous",
"toUSDExchangeRate": 1.1101803965564998,
"totalPrice": 0,
"accountIpCountry": "NL",
"formattedTotalPrice": {
"amount": "0.00",
"symbol": "€",
"placement": "f",
"decimals": 2,
"digits": 2
},
"formattedConvenienceFee": {
"amount": "0.00",
"symbol": "€",
"placement": "f",
"decimals": 2,
"digits": 2
},
"paymentCurrencySymbol": "€",
"orderStatus": "PREVIEW",
"epicAccountId": "XXXXXXXXXXXXXXXXXXXXXXXXXX",
"salesChannel": "epic-store-web-purchase",
"formattedPresentmentAmount": {
"amount": "0.00",
"symbol": "€",
"placement": "f",
"decimals": 2,
"digits": 2
},
"canQuickPurchase": true,
"formattedBillingPaymentAmount": {
"amount": "0.00",
"symbol": "€",
"placement": "f",
"decimals": 2,
"digits": 2
},
"taxStatus": "NOT_APPLICABLE",
"totalTax": 0,
"isFree": true,
"coupons": [],
"walletPaymentAmount": 0,
"totalDiscounted": 0,
"useSplitPayment": false,
"currency": "EUR",
"formattedTotalTax": {
"amount": "0.00",
"symbol": "€",
"placement": "f",
"decimals": 2,
"digits": 2
},
"rewardVoucher": null,
"fraudScore": 0,
"lastModifiedDate": "2020-05-30T01:34:04.230+0000",
"paymentCurrencyCode": "EUR",
"paymentCurrencyAmount": 0,
"accountIpAddress": "XXXXXXXXXXXXXXXXXXXXXXXXXX",
"vat": 0,
"batchJobFailedRetryCount": 0,
"lineOffers": [
{
"totalPrice": 0,
"formattedTotalPrice": {
"amount": "0.00",
"symbol": "€",
"placement": "f",
"decimals": 2,
"digits": 2
},
"entitlementSource": "AppEpicgamesCom",
"sellerName": "2K Games, Inc.",
"refundedRevenueWithoutTax": 0,
"revenueWithoutTax": 0,
"title": "Borderlands: The Handsome Collection",
"formattedBasePrice": {
"amount": "59.99",
"symbol": "€",
"placement": "f",
"decimals": 2,
"digits": 2
},
"offerType": "BUNDLE",
"basePayoutCurrencyCode": "USD",
"sellerId": "o-37m6jbj5wcvrcvm4wusv7nazdfvbjk",
"formattedDiscountedPrice": {
"amount": "0.00",
"symbol": "€",
"placement": "f",
"decimals": 2,
"digits": 2
},
"refundedBasePayoutPrice": 0,
"remainingDiscountPrice": 0,
"refundedConvenienceFee": 0,
"refundedTax": 0,
"initiatedBy": "SELLER",
"basePrice": 5999,
"formattedBasePayoutPrice": {
"amount": "0.00",
"symbol": "€",
"placement": "f",
"decimals": 2,
"digits": 2
},
"unitPrice": 0,
"refundedDiscountPrice": 0,
"quantity": 1,
"vat": 0,
"formattedVoucherPrice": {
"amount": "0.00",
"symbol": "€",
"placement": "f",
"decimals": 2,
"digits": 2
},
"refundedQuantity": 0,
"shareRate": 0,
"shareRateByDeveloper": 0,
"voucherDiscount": 0,
"namespaceDisplayName": "Ivory",
"convenienceFee": 0,
"discountedPrice": 0,
"formattedTaxPrice": {
"amount": "0.00",
"symbol": "€",
"placement": "f",
"decimals": 2,
"digits": 2
},
"namespace": "85189f7cf7a64f86aa6aa91d81d36c08",
"formattedUnitPrice": {
"amount": "0.00",
"symbol": "€",
"placement": "f",
"decimals": 2,
"digits": 2
},
"offerId": "a61c6602b5784d36801d0cab73e02337",
"taxPrice": 0,
"basePayoutPrice": 0,
"roleNames": []
}
],
"merchantGroup": "EGS_MKT",
"creationDate": "2020-05-30T01:34:04.230+0000",
"formattedWalletPaymentAmount": {
"amount": "0.00",
"symbol": "€",
"placement": "f",
"decimals": 2,
"digits": 2
},
"convenienceFee": 0,
"identityId": "XXXXXXXXXXXXXXXXXXXXXXXXXX",
"fraud": false,
"billingPaymentAmount": 0,
"vatIncluded": true,
"paymentCurrencyExchangeRate": 1,
"formattedTotalDiscounted": {
"amount": "0.00",
"symbol": "€",
"placement": "f",
"decimals": 2,
"digits": 2
},
"canSplitPayment": false
},
"paypalError": null,
"showCurrencyChangeMessage": false,
"syncToken": "XXXXXXXXXXXXXXXXXXXXXXXXXX",
"voucherList": null
}
[2020-05-30 01:34:04.321 +0000] DEBUG (18 on 769a785336ff): Confirm order request
confirmOrderRequest: {
"useDefault": true,
"setDefault": false,
"namespace": "85189f7cf7a64f86aa6aa91d81d36c08",
"country": "NL",
"countryName": "Netherlands",
"orderId": null,
"orderComplete": false,
"orderError": false,
"orderPending": false,
"offers": [
"a61c6602b5784d36801d0cab73e02337"
],
"includeAccountBalance": false,
"totalAmount": 0,
"affiliateId": "",
"creatorSource": "",
"threeDSToken": "",
"voucherCode": null,
"syncToken": "XXXXXXXXXXXXXXXXXXXXXXXXXX",
"isFreeOrder": false
}
[2020-05-30 01:34:04.746 +0000] DEBUG (18 on 769a785336ff): confirm order response
confirmOrderResponse: {
"captchaResult": "CAPTCHA",
"syncToken": "XXXXXXXXXXXXXXXXXXXXXXXXXX",
"errorCode": "errors.com.epicgames.purchase.purchase.captcha.challenge"
}
[2020-05-30 01:34:04.747 +0000] DEBUG (18 on 769a785336ff): Captcha required
[2020-05-30 01:34:05.632 +0000] DEBUG (18 on 769a785336ff):
audioURL: "https://epic-games-api.arkoselabs.com/fc/get_audio/?session_token=XXXXXXXXXXXXXXX&analytics_tier=40&r=eu-west-1&game=0&language=en&d=1"
[2020-05-30 01:34:07.898 +0000] DEBUG (18 on 769a785336ff): Guessing captcha
digitString: "0322009"
[2020-05-30 01:34:08.324 +0000] INFO (18 on 769a785336ff): Captcha successful
[2020-05-30 01:34:08.325 +0000] DEBUG (18 on 769a785336ff): Captcha session token
verificationCode: "XXXXXXXXXXXXXXXXXXXXXXXXXX"
[2020-05-30 01:34:08.327 +0000] DEBUG (18 on 769a785336ff): Confirm order request
confirmOrderRequest: {
"captchaToken": "XXXXXXXXXXXXXXXXXXXXXXXXXX",
"useDefault": true,
"setDefault": false,
"namespace": "85189f7cf7a64f86aa6aa91d81d36c08",
"country": "NL",
"countryName": "Netherlands",
"orderId": null,
"orderComplete": false,
"orderError": false,
"orderPending": false,
"offers": [
"a61c6602b5784d36801d0cab73e02337"
],
"includeAccountBalance": false,
"totalAmount": 0,
"affiliateId": "",
"creatorSource": "",
"threeDSToken": "",
"voucherCode": null,
"syncToken": "XXXXXXXXXXXXXXXXXXXXXXXXXX",
"isFreeOrder": false
}
[2020-05-30 01:34:09.023 +0000] DEBUG (18 on 769a785336ff): confirm order response
confirmOrderResponse: {
"cardinalInfo": null,
"cardinalLookUpResponse": null,
"confirmation": "XXXXXXXXXXXXXXXXXXXXXXXXXX",
"message": null,
"orderPending": null,
"receiptResponse": {
"orderType": "PURCHASE",
"symbol": "€",
"country": "NL",
"agentUserName": "anonymous",
"toUSDExchangeRate": 1.1101803965564998,
"orderId": "XXXXXXXXXXXXXXXXXXXXXXXXXX",
"totalPrice": 0,
"accountIpCountry": "NL",
"formattedTotalPrice": {
"amount": "0.00",
"symbol": "€",
"placement": "f",
"decimals": 2,
"digits": 2
},
"formattedConvenienceFee": {
"amount": "0.00",
"symbol": "€",
"placement": "f",
"decimals": 2,
"digits": 2
},
"paymentCurrencySymbol": "€",
"orderStatus": "COMPLETED",
"epicAccountId": "XXXXXXXXXXXXXXXXXXXXXXXXXX",
"salesChannel": "epic-store-web-purchase",
"formattedPresentmentAmount": {
"amount": "0.00",
"symbol": "€",
"placement": "f",
"decimals": 2,
"digits": 2
},
"taxStatus": "NOT_APPLICABLE",
"totalTax": 0,
"coupons": [],
"totalDiscounted": 0,
"currency": "EUR",
"formattedTotalTax": {
"amount": "0.00",
"symbol": "€",
"placement": "f",
"decimals": 2,
"digits": 2
},
"rewardVoucher": null,
"fraudScore": 0,
"completedAt": "2020-05-30T01:34:08.933+0000",
"comments": "Free Checkout",
"lastModifiedDate": "2020-05-30T01:34:08.933+0000",
"paymentCurrencyCode": "EUR",
"paymentCurrencyAmount": 0,
"accountIpAddress": "XXXXXXXXXXXXXXXXXXXXXXXXXX",
"vat": 0,
"batchJobFailedRetryCount": 0,
"lineOffers": [
{
"totalPrice": 0,
"formattedTotalPrice": {
"amount": "0.00",
"symbol": "€",
"placement": "f",
"decimals": 2,
"digits": 2
},
"entitlementSource": "AppEpicgamesCom",
"sellerName": "2K Games, Inc.",
"refundedRevenueWithoutTax": 0,
"revenueWithoutTax": 0,
"title": "Borderlands: The Handsome Collection",
"formattedBasePrice": {
"amount": "59.99",
"symbol": "€",
"placement": "f",
"decimals": 2,
"digits": 2
},
"offerType": "BUNDLE",
"basePayoutCurrencyCode": "USD",
"sellerId": "o-37m6jbj5wcvrcvm4wusv7nazdfvbjk",
"formattedDiscountedPrice": {
"amount": "0.00",
"symbol": "€",
"placement": "f",
"decimals": 2,
"digits": 2
},
"refundedBasePayoutPrice": 0,
"remainingDiscountPrice": 0,
"refundedConvenienceFee": 0,
"refundedTax": 0,
"initiatedBy": "SELLER",
"basePrice": 5999,
"formattedBasePayoutPrice": {
"amount": "0.00",
"symbol": "€",
"placement": "f",
"decimals": 2,
"digits": 2
},
"unitPrice": 0,
"refundedDiscountPrice": 0,
"quantity": 1,
"offerItems": [
{
"itemId": "9aeadc7744b14bc1a948f632198f4052",
"entitlementRevoked": false,
"entitlementId": "6ec63de24eb744ca9c258faefdd3dc00",
"namespace": "6110c92696a54f108c8e9002713ea5f9",
"entitlementName": "9aeadc7744b14bc1a948f632198f4052"
},
{
"itemId": "aeee0bdf01f44f9ba56751358f00850a",
"entitlementRevoked": false,
"entitlementId": "0de226dcadeb472ab7eb4dfe06d864a4",
"namespace": "f4a7772a4da24870a3ea6dfb8aeac662",
"entitlementName": "aeee0bdf01f44f9ba56751358f00850a"
}
],
"vat": 0,
"formattedVoucherPrice": {
"amount": "0.00",
"symbol": "€",
"placement": "f",
"decimals": 2,
"digits": 2
},
"refundedQuantity": 0,
"shareRate": 0,
"shareRateByDeveloper": 0,
"voucherDiscount": 0,
"namespaceDisplayName": "Ivory",
"convenienceFee": 0,
"discountedPrice": 0,
"formattedTaxPrice": {
"amount": "0.00",
"symbol": "€",
"placement": "f",
"decimals": 2,
"digits": 2
},
"namespace": "85189f7cf7a64f86aa6aa91d81d36c08",
"formattedUnitPrice": {
"amount": "0.00",
"symbol": "€",
"placement": "f",
"decimals": 2,
"digits": 2
},
"offerId": "a61c6602b5784d36801d0cab73e02337",
"taxPrice": 0,
"basePayoutPrice": 0
}
],
"merchantGroup": "EGS_MKT",
"creationDate": "2020-05-30T01:34:08.888+0000",
"convenienceFee": 0,
"identityId": "XXXXXXXXXXXXXXXXXXXXXXXXXX",
"fraudDecision": "APPROVE",
"fraud": false,
"vatIncluded": false,
"paymentCurrencyExchangeRate": 1,
"invoiceId": "XXXXXXXXXXXXXXXXXXXXXXXXXX",
"formattedTotalDiscounted": {
"amount": "0.00",
"symbol": "€",
"placement": "f",
"decimals": 2,
"digits": 2
}
},
"syncToken": null
}
[2020-05-30 01:34:09.025 +0000] INFO (18 on 769a785336ff): Purchase successful
[2020-05-30 01:34:09.025 +0000] DEBUG (18 on 769a785336ff): Done purchasing
Well that's cool I guess. Cheers
Thank you very much for fixing the issue :) !
Hi again :)
I pulled the latest Docker image which worked fine for one account, but fails again on a second account with the following error:
Any idea what this might be causing?
Thanks again :) !