Each day, numerous sessions are initiated using a token created using the ‘topic’ and ‘session_key’ parameters. The ‘tpc’ value remains constant, serving as an identifier for a virtual table. The ‘session_key’ value, on the other hand, determines the specific day of the session linked to the tpc. This process functioned smoothly until an issue arose where a session could not be initiated due to an ‘invalid session key’ error. This suggests that the tpc might still be linked to an older session key.
example:
DAY 1
SESSION 1 =>
{
“app_key”: “XXXX”,
“tpc”: “6537e1fe611e3ffae5dbc54d@t0”, → this value does not change over time
“role_type”: 0,
“session_key”: “A#65688f2dcacb8c9f3f80cfc6”, → this value changes at least once per day
“user_identity”: “654b7fac33ebabae2224bcca”,
“version”: 1,
“iat”: 1701351947,
“exp”: 1701359147
}
DAY N
SESSION 1 =>
{
“app_key”: “XXXX”,
“tpc”: “6537e1fe611e3ffae5dbc54d@t0”, → this value does not change over time
“role_type”: 0,
“session_key”: “A#65688f2dcacb8c9f3f80cfc6”, → this value changes at least once per day
“user_identity”: “654b7fac33ebabae2224bcca”,
“version”: 1,
“iat”: 1701351947,
“exp”: 1701359147
}
SESSION 2
{
“app_key”: “XXXX”,
“tpc”: “6537e1fe611e3ffae5dbc54d@t1”,
“role_type”: 0,
“session_key”: “A#65688f2dcacb8c9f3f80cfc6”,
“user_identity”: “654b7faaasdsafe2224bc12g”,
“version”: 1,
“iat”: 1701351947,
“exp”: 1701359147
}
Share the same session key. Session 2 works, Session 1 fails. It doesn’t matters if it session 2 starts after or before attempting the initialization of session 1. The error associated indicate that you can’t join a on going session, however the session never started.
ObjecterrorCode: 200
reason: “invalid session key”
type: “JOIN_MEETING_FAILED”
[[Prototype]]: Object
SDK Version 1.8.10
Note:
Is not the same o similar issue found in => "invalid session key" error on client.join()
we have a unique topic associated to a session key. Then another topic might have the same session key, not the inverse, that is addressed as an error in that post.