videokit-ai / videokit

Low-code, cross-platform media SDK for Unity Engine. Register at https://videokit.ai
https://videokit.ai
Apache License 2.0
103 stars 14 forks source link

VideoKit session token is invalid. Check your NatML access key. #64

Closed LoopIssuer closed 11 months ago

LoopIssuer commented 1 year ago

Hi We have noticed some of the logs on the analytics with this message:

VideoKit session token is invalid. Check your NatML access key.

Affected devices are so far: OPPO/CPH2385/OP571DL1 Android OS 12 / API-31 (SP1A.210812.016/S.R4T2.d1c72a-3591e) CPU ARM64

LGE/LM-G900TM/mcaymanlm Android OS 12 / API-31 (SKQ1.211103.001/6885120230801) CPU ARM64

Hard to say if this ends with some crash or sth like that. My question is - can this be an issue that blocks using Videokit, or maybe it is only warning or false error?

VideoKitToken.txt

olokobayusuf commented 1 year ago

Hey @LoopIssuer , this issue has been reported on Windows. On Android, can you share the full logs from logcat? Also, make sure that you're on VideoKit 0.0.15.

LoopIssuer commented 1 year ago

Unfortunately, logcat is unavailable - we get only errors from users via analytics. We are using currently 0.0.15-alpha.6.

Could you please say something about this issue - is it blocker, application crashes?

olokobayusuf commented 1 year ago

Hey @LoopIssuer , can you upgrade to VideoKit 0.0.15? The session token handling was improved in the final release.

olokobayusuf commented 1 year ago

Also, this should never result in a crash.

LoopIssuer commented 1 year ago

Thank you. If no crash, then VideoKit is just not working in that case? Or maybe this error is only some kind of warning and everything is working?

olokobayusuf commented 12 months ago

That's correct. It throws an InvalidOperationException in code that you can surround in try { ... } catch

LoopIssuer commented 12 months ago

Sorry, but please clarify, I don't understand last one: Am I correct because: a) VideoKit is just not working in that case b) this error is only some kind of warning and everything is working

olokobayusuf commented 11 months ago

Hey @LoopIssuer following up on this. If the token is invalid, then you will get an InvalidOperationException when you call VideoKitRecorder.StartRecording, MediaRecorder.Create, CameraDevice.StartRunning, or AudioDevice.StartRunning. You can catch these errors with a try { } catch block.

LoopIssuer commented 11 months ago

Thank you for the info :)