Skip to content

with v4.14.5 php backend, error OT_AUTHENTICATION_ERROR: token has expired (1004) #344

@garrettboone

Description

@garrettboone

Both sides of call have error showing OT_AUTHENTICATION_ERROR: token has expired (1004)

Expected Behavior

Call connects fine.

Current Behavior

When upgrading to 4.14.5 it breaks something for us, however if we downgrade to v4.14.4 on the backend our code works fine without new packages (sodium, jwt, etc)

Not sure where this error is being caused.

Person A calls B.
A's publisher is seen by B after subscription.
B's publisher is never seen by A, both sides have error.

Environment

This behavior is seen in two systems:

  1. Centos 7, php83, NGINX
  2. WSL: Ubuntu Linux 5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
"Error: token has expired (1004)
    at onSessionInfoError (https://site.local/node_modules/.vite/deps/@opentok_client_dist_js_opentok__js.js?v=220147db:51486:55)
    at invokeCallback (https://site.local/node_modules/.vite/deps/@opentok_client_dist_js_opentok__js.js?v=220147db:424:31)
    at publish (https://site.local/node_modules/.vite/deps/@opentok_client_dist_js_opentok__js.js?v=220147db:413:23)
    at publishRejection (https://site.local/node_modules/.vite/deps/@opentok_client_dist_js_opentok__js.js?v=220147db:371:19)
    at MutationObserver.flush (https://site.local/node_modules/.vite/deps/@opentok_client_dist_js_opentok__js.js?v=220147db:227:21)"

package.lock says

node_modules/@opentok/client": {
      "version": "2.28.5"

Is this the correct repo?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions