title: Laravel Echo Server can not be authenticated, got HTTP status 500
body: <p>I've installed both <a href="https://github.com/tlaverdure/laravel-echo-server" rel="nofollow noreferrer">Laravel echo server</a> and <a href="https://github.com/laravel/echo" rel="nofollow noreferrer">Laravel echo client</a>.</p>
  
  <p>Following is the <code>laravel-echo-server.json</code> configuration.</p>
  
  <pre><code>{
  "authHost": "http://taxation.com",
  "authEndpoint": "/broadcasting/auth",
  "clients": [
      {
          "appId": "APP_ID",
          "key": "someKey"
      }
  ],
  "database": "redis",
  "databaseConfig": {
      "redis": {},
      "sqlite": {
          "databasePath": "/database/laravel-echo-server.sqlite"
      }
  },
  "devMode": true,
  "host": "127.0.0.1",
  "port": "3000",
  "protocol": "http",
  "socketio": {},
  "sslCertPath": "",
  "sslKeyPath": "",
  "sslCertChainPath": "",
  "sslPassphrase": ""
  }
  </code></pre>
  
  <p>The following script listens for channel events. It builds fine with <code>npm run dev</code>.</p>
  
  <pre><code>import Echo from 'laravel-echo'
  let token = document.head.querySelector('meta[name="token"]');
  if (token) {
      window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;
  } else {
      console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token');
  }
  window.Echo = new Echo({
      broadcaster: 'socket.io',
      host: '127.0.0.1:3000',
      reconnectionAttempts: 5
  });
  
  
  window.Echo.join('checked-in-1')
              .listen('.user.checked_in', (e) =&gt; {
              console.log(e);
          });
  </code></pre>
  
  <p>When trying to listen for any event on <code>start laravel-echo-server</code> command. It keeps throwing <code>Client can not be authenticated, got HTTP status 500</code>.</p>
  
  <p><strong>Note :</strong></p>
  
  <p>I really didn't find anything helpful on laravel-echo-serve nor on google.</p>
  
  <p>Any help will be appreciated a lot.</p>
  
  <p><strong>Laravel V5.4</strong></p>
  
  <p>Thanks</p>