Invalid token error in creating the room using Jitsi Meet SDK

HI Team ,

I’m trying to connect my JITSI backend server. But there’s an issue in creating the room only from android sdk. But iOS is working fine. Please check the below error logs and advise if any thoughts on this. Thank you.

Questions:

  • Should I have to modify the config.js to accept the token
  • How to get the JWT token. Do we have any specific endpoint to get the token.

Error Log:
2021-04-16 14:25:55.520 12169-12205/net.jitsi.sdktest E/JitsiMeetSDK: [features/base/lib-jitsi-meet] Failed to load config from https://*****:8443/config.js?room=test121323 Error(Error){“message”:“SyntaxError: invalid token (line 25)”,“code”:“EUNSPECIFIED”}

2021-04-16 14:25:56.332 12169-12205/net.jitsi.sdktest E/JitsiMeetSDK: [features/base/lib-jitsi-meet] Failed to load config from https://*****:8443/config.js Error(Error){“message”:“SyntaxError: invalid token (line 25)”,“code”:“EUNSPECIFIED”}

2021-04-16 14:25:56.898 12169-12205/net.jitsi.sdktest E/JitsiMeetSDK: [features/base/lib-jitsi-meet] Failed to load config from https://*****:8443/config.js Error(Error){“message”:“SyntaxError: invalid token (line 25)”,“code”:“EUNSPECIFIED”}

Can you share your config.js ?

We use a sandboxed environment for making sure no code injection is possible through config.js. The engine we use to do this on Android only supports ES5, so please avoid using template strings and the like, or it will error out.

Thank you for the quick reply and it’s working now.