当前位置: 首页 > 知识库问答 >
问题:

Laravel Echo服务器和网络::错误\u SSL\u协议\u https版本错误

苏承载
2023-03-14

我正在我的nginx服务器上使用laravel5.8,带有laravelecho服务器socket。伊奥和雷迪斯。

我的网站一直工作到昨天没有错误,但今天它一直给我套接字错误,如:

GET https://example.com:6001/socket.io/?EIO=3&transport=polling&t=NHtNFvZ net::ERR_SSL_PROTOCOL_ERROR

这是我的laravel-echo-server.json文件:

{
    "authHost": "http://localhost:8000",
    "authEndpoint": "/broadcasting/auth",
    "clients": [
        {
            "appId": "123",
            "key": "123"
        }
    ],
    "database": "redis",
    "databaseConfig": {
        "redis": {
            "port": "6379",
            "host": "127.0.0.1"
        },
        "sqlite": {
            "databasePath": "/database/laravel-echo-server.sqlite"
        }
    },
    "devMode": true,
    "host": null,
    "port": "6001",
    "protocol": "http",
    "socketio": {},
    "sslCertPath": "",
    "sslKeyPath": "",
    "sslCertChainPath": "",
    "sslPassphrase": "",
    "apiOriginAllow": {
        "allowCors": true,
        "allowOrigin": "http://localhost:80",
        "allowMethods": "GET, POST",
        "allowHeaders": "Origin, Content-Type, X-Auth-Token, X-Requested-With, Accept, Authorization, X-CSRF-TOKEN, X-Socket-Id"
    }
}

首先我遇到了ERR_CRT_DATE_INVALID错误,但后来ERR_SSL_PROTOCOL_ERROR

我已经重新启动的echo工作者使用sudo监管ctl重新启动echo-server:*但仍然是相同的问题。

共有1个答案

廉雅惠
2023-03-14

我终于解决了这个问题。

我补充说:

“authHost”:https://localhost:8000“,

"协议":"https",

"sslCertPath":"/etc/lets加密/live/example.com/fullchain.pem",

“sslKeyPath”:“/etc/letsencrypt/live/example.com/privkey.pem”,

在我的laravel echo服务器中。json文件并使用sudo-supervisortl restart-echo-server:

它可能会在将来帮助某人。

 类似资料:
  • 我正在EC2实例上开发apache2环境。为了安全起见,我想更改apache2的ssl端口。我已经确认默认的ssl端口443是通过检查页面与chrome浏览器工作。但修改ports.conf如下,我有一个错误,ERR_SSL_PROTOCOL_ERROR当访问这个服务器像https://xxxxxxx: 18443/ 是否有任何更改ssl端口的设置? 侦听端口 /etc/apache2/ports

  • 我试图安装Caffe库,但我有一个编译问题,由于一个错误的原型版本安装在我的系统。 我在论坛上遵循了许多提议的方法,我认为在这篇帖子中讨论了最类似的问题。 在caffe.pb.h中控件是: 但是在我的系统标头(/usr/include/google/cript buf/stubs/Common. h)中: 命令protoc--version从终端返回libprotoc 3.2.0。 所以我安装了3

  • 我在使用API的post请求(使用chrome)时遇到了这2个错误 xhr.js:178后MY_API_URL::ERR_HTTP2_PROTOCOL_ERRORcreateError.js:16未捕获(promise)错误:网络错误在createError(createError.js:16)在XMLHttpRequest.handle错误(xhr.js:83) 我正在做一个简单的POST请求(

  • This file describes the network protocol used by Ceph. In order to understand the way the structures are defined it is recommended to read the introduction of Network Encoding first. Hello The protoco

  • 每次我尝试用截击的POST方法时,我都会犯严重的错误。我在getCause中得到null值,在getNetworkResponse中得到一些默认值。toString()。 如果我使用GET方法,这工作正常(我从我的网址得到响应)。 有人能帮忙吗?我能做什么? 错误日志: 错误:错误:com.android.volley.服务器错误 更新:networkResponse。statusCode是404

  • 两台计算机是怎样进行数据传递的