LeleDerGrasshalmi / FortniteEndpointsDocumentation

Fortnite & Epic Games Unofficial API Documentation
259 stars 69 forks source link

Global Service - Profile: Get Profiles #221

Closed fowummmmm closed 8 months ago

fowummmmm commented 9 months ago

I keep getting this:

{ "message": "namespace is not supported", "type": "MCPNamespaceNotFoundException", "stackTrace": [], "causes": [], "code": 404 }

I am using an eg1 token. I am using the Fortnite namespace.

LeleDerGrasshalmi commented 9 months ago

whatever you are doing, it is wrong.

the error shows you dont even specify any namespace

when you have an invalid ns it would show the following

{
    "message": "namespace {invalidNS} is not supported",
    "type": "MCPNamespaceNotFoundException",
    "stackTrace": [],
    "causes": [],
    "code": 404
}

So can you please share your request payload

fowummmmm commented 9 months ago

It is sending a request to https://global-profile-service.game-social.epicgames.com/profiles with these parameters: namespace: Fortnite and accountIds: (the account ID). I am not sure what I am doing wrong.

LeleDerGrasshalmi commented 9 months ago

send the payload please..

fowummmmm commented 9 months ago

I got it working now but I think I am doing something wrong, I am generating eg1 tokens and it looks like this: {"access_token":"(token)","token_type":"bearer","client_id":"3446cd72694c4a4485d81b77adbb2141","internal_client":true,"client_service":"prod-fn","product_id":"prod-fn","application_id":"fghi4567FNFBKFz3E4TROb0bmPS8h1GW"}. I have a Discord bot that generates eg1 tokens for me but it looks different and they work. I am not sure why mine don't work. Do you have any idea?

LeleDerGrasshalmi commented 9 months ago

You need account auth, what you sent is client auth.

fowummmmm commented 9 months ago

Would I need to use authorization_code?

LeleDerGrasshalmi commented 9 months ago

You can, but it doesnt matter which method you are using to authenticate as an account

LeleDerGrasshalmi commented 8 months ago

stale