LaravelとPusherでのチャット構築
このページを参考にPusherを使ったリアルタイムチャットを作ろうとしたところ、ページは表示されるのですが、Pusherにうまく送れていないようです。
ネット上で調べたところ、Vue.jsなどで同じエラーが出ていたので、そのあたりが問題ではないかと考えています。
発生している問題・エラーメッセージ
app.js:11131 Uncaught (in promise) Error: Request failed with status code 500 at createError (app.js:11131) at settle (app.js:11713) at XMLHttpRequest.handleLoad (app.js:10970)
エラーが発生しているプログラム
長いのでその部分だけ抜きしています。
javascript
1 (function(module, exports, __webpack_require__) { 2 3"use strict"; 4 5 6var enhanceError = __webpack_require__(19); 7 8/** 9 * Create an Error with the specified message, config, error code, and response. 10 * 11 * @param {string} message The error message. 12 * @param {Object} config The config. 13 * @param {string} [code] The error code (for example, 'ECONNABORTED'). 14 @ @param {Object} [response] The response. 15 * @returns {Error} The created error. 16 */ 17module.exports = function createError(message, config, code, response) { 18 var error = new Error(message); 19 return enhanceError(error, config, code, response); 20}; 21 22 }),
試したこと
- Pusher API Keyなどのミスがないかを確認しました。
- 同エラーのネット記事について調べました。
バージョン
OS : Windows 10
PHP : 7.2.4
Mysql : 8.0.11
Laravel : 5.4.1
あなたの回答
tips
プレビュー