LeleDerGrasshalmi / FortniteEndpointsDocumentation

Fortnite & Epic Games Unofficial API Documentation
234 stars 65 forks source link

Authorization issue #206

Closed Ricoroma closed 9 months ago

Ricoroma commented 9 months ago

Hello. I've written full working authorization by device_id Mechanism, but sometimes after updating access token account starts getting 401 and 403 codes (especially 403) Do you know, why does it happen? Screenshot_20231217_000737_com microsoft rdc androidx_edit_91152354362131

LeleDerGrasshalmi commented 9 months ago

the account needs to have fn access (started it once) the account you are using hasnt done that once, thats why you get the missing_action error

Ricoroma commented 9 months ago

Well interesting, cause that acc definitely has some v-bucks and skins on it. Moreover, it was used in my script for gifting previously (successfully) I don't think that it misses fortnite

Ricoroma commented 9 months ago

I just noticed that acc on screen might not be used for that But just now ive encountered that error again. And i noticed other errror Is current mistake caused by owning this skin? Screenshot_20231217_145743

LeleDerGrasshalmi commented 9 months ago

could you please include proper requests with responses.

Ricoroma commented 9 months ago

Sorry, thats all i have. I can only say, that dicts in shell {} and {offer_id....} are given params (data). So link to post is in client response and given params are above it. Also don't look at tracebacks, they are about other. Im asking about purchase_not_allowed (account has v-bucks more than 1500)

LeleDerGrasshalmi commented 9 months ago

maybe look at the response body, that has details...

Ricoroma commented 9 months ago

Yeah i saw it and that's exactly what I'm asking. Is purchase_not_allowed being caused by by owning this skin?

LeleDerGrasshalmi commented 9 months ago

it can have many reasons, thats why you should look at the response.

Ricoroma commented 9 months ago

Well response that i see on screenshot has only error_code and error_name I can't access the json of it

LeleDerGrasshalmi commented 9 months ago

then i cannot help you.

Ricoroma commented 9 months ago

kk, i understood. i'll make request in test file

Ricoroma commented 9 months ago

{'offerId': 'v2:/187fec3a3acbd5747a31c0590107ca84e1eed230e4145c35b61fbe099ffdca9d', 'currency': 'MtxCurrency', 'currencySubType': '', 'expectedTotalPrice': 1500, 'gameContext': '', 'purchaseQuantity': 1} <ClientResponse(https://fortnite-public-service-prod11.ol.epicgames.com/fortnite/api/game/v2/profile/21aaa6a2e3f9413bb35e58c618b007a1/client/PurchaseCatalogEntry?profileId=common_core&rvn=-1) [403 Forbidden]> <CIMultiDictProxy('Date': 'Sun, 17 Dec 2023 12:36:57 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Content-Length': '517', 'Connection': 'keep-alive', 'X-Epic-Error-Code': '28004', 'X-Epic-Error-Name': 'errors.com.epicgames.modules.gamesubcatalog.purchase_not_allowed', 'X-Epicgames-Mcpversion': 'prod-live Release-28.01-28.01 build 401 cl 30329245', 'X-Epicgames-Profile-Revision': '760', 'X-Epic-Correlation-Id': 'b049c2f6-930c-48fa-a0ee-f825334b1e6e', 'Server': 'fn-gateway')>

{'errorCode': 'errors.com.epicgames.modules.gamesubcatalog.purchase_not_allowed', 'errorMessage': 'Could not purchase catalog offer [VIRTUAL]1 x Satoru Gojo, 1 x Sweet Selection for 1500 MtxCurrency, item AthenaCharacter:character_floodplain x 1 (exceeding the limit of 0)', 'messageVars': ['[VIRTUAL]1 x Satoru Gojo, 1 x Sweet Selection for 1500 MtxCurrency', 'AthenaCharacter:character_floodplain', '1', '0'], 'numericErrorCode': 28004, 'originatingService': 'fortnite', 'intent': 'prod-live'}

well i can't tell the difference

LeleDerGrasshalmi commented 9 months ago

so as the errorMessage says:

Could not purchase catalog offer [VIRTUAL]1 x Satoru Gojo, 1 x Sweet Selection for 1500 MtxCurrency, item AthenaCharacter:character_floodplain x 1 (exceeding the limit of 0)

The offer is already owned

Ricoroma commented 9 months ago

ok, thanks a lot