api icon indicating copy to clipboard operation
api copied to clipboard

ErrorCode 8 on IndividualGroupInvite endpoint

Open soares-daniel opened this issue 2 years ago • 3 comments

Hi I have an issue with the IndividualGroupInvite endpoint. Here is my code:

    payload = {
        "GroupApplicationRequest": {
            "message": "",
        }
    }

    headers = {
        "X-API-Key": BUNGIE_API_KEY,
        "Authorization": f"Bearer {admin_token['access_token']}"
    }

    response = requests.post(url=url, json=payload, headers=headers)
    response = response.json()

It worked before when inviting users but now it gives me the error:

{'ErrorCode': 8, 'ThrottleSeconds': 0, 'ErrorStatus': 'ParameterInvalidRange', 'Message': 'One or more parameters are outside the range of valid values. Please correct them, and try again.', 'MessageData': {}}

I already tried {message: ""} and so on but still get the same error... Does anyone have any other suggestions?

soares-daniel avatar Jan 06 '23 21:01 soares-daniel

Is it this spare "f" in your code? 😏image

soren42 avatar Jan 06 '23 21:01 soren42

Is it this spare "f" in your code? 😏image

Maybe I should have mentioned it but it is written in python and that is not a spare "f" but used for formatting strings.

soares-daniel avatar Jan 06 '23 21:01 soares-daniel

Ah, sorry. My Python is quite rusty, so it looked like a syntax issue being outside the "".

I'm happy to independently test the endpoint for you, but it won't be until I'm home several hours from now. Hopefully, someone else will have some insights before then.

Good luck!

soren42 avatar Jan 06 '23 21:01 soren42