Incorrect Webhook {Region}

Options
Will2X
Will2X

I seem to be getting {AppVersion} as the value for {Region} when using "Path" webhooks (PathCreate, PathClose, etc).


I have the Base Url set to: https://domain/photon?cloud={Cloud}&region={Region}&appId={AppId}&appVersion={AppVersion}


What I receive is:

queryStringParameters: {

appId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',

appVersion: '1.0_2.40',

cloud: 'Public',

region: '1.0_2.40'

}

The body of the webhook call show the correct region value:

body: '{"AppVersion":"1.0_2.40","AppId":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","Region":"EU",...}'


When using a WebRPC call the region comes through properly:

queryStringParameters: {

appId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',

appVersion: '1.0_2.40',

cloud: 'Public',

region: 'EU'

}


Is this a known issue?

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options

    Hi @Will2X,

    Thank you for choosing Photon!

    This is new and not known.


    Does the issue persist or happened a few times only?

    If you change the region, does it happen also?


    Please double check your configuration, maybe you had Base Url set to: https://domain/photon?cloud={Cloud}&region={Region}&appId={AppId}&appVersion={Region} and then you fixed it and changed afterwards?

    If the issue persists, could you send an email with your AppId and details about the issue so we could investigate from server side?

  • Will2X
    Will2X
    edited December 2021
    Options

    I tested again without making any changes. PathCreate webhook is showing:

    queryStringParameters:

    region: '1.0_2.40'

    body:

    "Region":"EU"


    I then set the regions whitelist to "us;" and tested again:

    queryStringParameters:

    region: '1.0_2.40'

    body:

    "Region":"USW"


    I also tried changing the base url to: https://domain/prod/photon?regionCode={Region}&cloud={Cloud}&appId={AppId}&appVersion={AppVersion}&gameId=global

    queryStringParameters:

    regionCode: '1.0_2.40'

    body:

    "Region":"US"


    Tried adding a 2nd region tag: region2={Region}

    regionCode: '1.0_2.40'

    region2: '1.0_2.40',


    What email address should I send the App Id to?

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options

    Hi @Will2X,

    Please send to developer@photonengine.com.

  • Will2X
    Options

    It has been sent.