雖然廣播推杆時,我收到以下錯誤:「時間戳過期」從REST API響應:如何解決的時候觸發一個事件
(1/1) BroadcastException Timestamp expired: Given timestamp (2017-10-18T00:55:07Z) not within 600s of server time (2017-10-17T12:23:17Z) in PusherBroadcaster.php (line 106) at
PusherBroadcaster->broadcast(array(object(PrivateChannel)), 'App\\Events\\TestEvent', array('message' => 'How are you')) in BroadcastEvent.php (line 48) at
BroadcastEvent->handle(object(PusherBroadcaster)) at
call_user_func_array(array(object(BroadcastEvent), 'handle'), array(object(PusherBroadcaster))) in BoundMethod.php (line 29) at
BoundMethod::Illuminate\Container\{closure}() in BoundMethod.php (line 87) at
BoundMethod::callBoundMethod(object(Application), array(object(BroadcastEvent), 'handle'), object(Closure)) in BoundMethod.php (line 31) at
BoundMethod::call(object(Application), array(object(BroadcastEvent), 'handle'), array(), null) in Container.php (line 539) at
Container->call(array(object(BroadcastEvent), 'handle')) in Dispatcher.php (line 94) at
Dispatcher->Illuminate\Bus\{closure}(object(BroadcastEvent)) in Pipeline.php (line 114) at
Pipeline->Illuminate\Pipeline\{closure}(object(BroadcastEvent)) in Pipeline.php (line 102)
我使用Windows。
這是錯誤消息:Timestamp expired: Given timestamp (2017-10-18T00:55:07Z) not within 600s of server time (2017-10-17T12:23:17Z)
。
我已經正確配置了我的Pusher廣播並觸發了事件,但是 - 什麼也沒有。
下面是Laravel堆棧跟蹤和Pusher調試控制檯的屏幕截圖。
我怎樣才能解決這個問題?
你的事件創建/推送代碼是什麼樣的? –