The signature has expired WEB SDK SAMPLE

When I try to join meeting using sdk web sample (CDN)
Its Back With

  1. errorCode: 3705

  2. errorMessage: “The signature has expired.”

  3. method: “join”

  4. result: “The signature has expired.”

  5. status: false
    How Can I Solve It PLease???
    It worked for me in the first time
    But I tried many times after that and it doesn’t work
    I Tried that
    var generation = $.ajax({

     url: "generateSignature.php",
    
     type: "GET",
    
     data: { 'meeting_number': tmpArgs.mn },
    
     async: false
    

    }).responseText;

// generateSignuture.php

require_once ‘…/zoom_config.php’;

meeting_number = @_GET[‘meeting_number’];

function generate_signature ( $api_key, $api_secret, $meeting_number, $role){

$time = time() * 1000 - 30000;//time in milliseconds (or close enough)



$data = base64_encode($api_key . $meeting_number . $time . $role);



$hash = hash_hmac('sha256', $data, $api_secret, true);



$_sig = $api_key . "." . $meeting_number . "." . $time . "." . $role . "." . base64_encode($hash);



//return signature, url safe base64 encoded

return rtrim(strtr(base64_encode($_sig), '+/', '-_'), '=');

}

echo generate_signature(API_KEY,API_SECRET,$meeting_number,0);

And It Still Back With the same error.
And It Causes Many Problems In My Work

Hey @powertiger563,

Can you double check your computer time settings:

Let me know if that fixes the issue! :slight_smile:

Thanks,
Tommy