Incorrect Webhook {Region}
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}®ion={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
-
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}®ion={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?
0 -
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?
0 -
It has been sent.
1