You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I stumbled upon media.GetProfiles()[0] returning a set instead of a token string and the SOAP library complaining about a type mismatch. Camera model is a Vivotek SD9161.
I didn't bother to include a type check. In fact there are no checks at all for if the thing returned is actually a set and has a key "token". So regard this as an real world example of a working config for this particular camera model and maybe integrate it with the necessary checks and a branch to old behavior if thing returned was a string and not a set.
Best
The text was updated successfully, but these errors were encountered:
Hi,
I stumbled upon
media.GetProfiles()[0]
returning a set instead of a token string and the SOAP library complaining about a type mismatch. Camera model is a Vivotek SD9161.The following patch worked for me.
I didn't bother to include a type check. In fact there are no checks at all for if the thing returned is actually a set and has a key "token". So regard this as an real world example of a working config for this particular camera model and maybe integrate it with the necessary checks and a branch to old behavior if thing returned was a string and not a set.
Best
The text was updated successfully, but these errors were encountered: