alexa-games / skills-gameon-sdk-js

The Skills GameOn SDK (Beta) is a Node.js package that makes creating leaderboards and competitions, powered by Amazon GameOn, easier for Alexa Skill developers.
https://skills-gameon-sdk.github.io
Apache License 2.0
19 stars 11 forks source link

Feature: Timeout param in client methods #47

Open jameswilsterman opened 4 years ago

jameswilsterman commented 4 years ago

Feature Request

I would like to be able to set a timeout for calls using the SDK

Current SDK Version

0.2.0

Current Behavior

No way to timeout client calls such as client.initializeNewPlayer() or client.enterTournamentForPlayer()

The lambda function ends up timing out before a response is received

Desired Behavior

Create a param called "timeout" (ms) to pass to the client.

eg. client.enterTournamentForPlayer({ tournamentId: , player: , timeout: 2000 })

mblaya commented 3 years ago

Hello, any news on this request?

I am experiencing the same issue, the lambda function times out so I cannot capture the GameOn time out. Even a generic timeout would be fine by me, for instance it could be added to the constructor const defaultClient = new sdk.SkillsGameOnApiClient( { timeout: 3000 } );

v-amzn commented 3 years ago

Hi @mblaya @jameswilsterman At this point, we are not prioritizing new functionality. Can you help us understand the impact this might have to your products/workflow?

Thanks.

mblaya commented 3 years ago

Hello, thanks for your response. Impact on my alexa skills is that players see the game abruptly stopped as the timeout exception cannot be captured. It happened 62 times in the last 4 days, causing bad customer experience and angry skill reviews. Number of unique user per week using the skill is around 4000.