Tools icon indicating copy to clipboard operation
Tools copied to clipboard

AgoraRTCError CAN_NOT_GET_GATEWAY_SERVER with PHP 8.2

Open katjai1 opened this issue 1 year ago • 0 comments

When we're tried to use DynamicKey/AgoraDynamicKey with PHP 8.2, we started to get such error: AgoraRTCError CAN_NOT_GET_GATEWAY_SERVER: invalid vendor key, can not find appid. This code change inside Util.php fixed an issue:

    public static function packString($str)
    {
        return !empty($str)
            ? self::packUint16(strlen($str)) . $str
            : self::packUint16(0);
    }

katjai1 avatar Dec 15 '23 15:12 katjai1