在Parser Server上发送push后,我将在服务器日志中获取下面的内容。服务器崩溃并在此之后重新启动。
节点版本17.1.0
解析服务器- 4.2.0
这是在我将APN证书更新到服务器之后开始发生的。我尝试从解析仪表板,它显示推送发送。
{
"result": {
"headers": {
"X-Parse-Push-Status-Id": "3euayowDhH"
},
"response": {
"result": true
}
}
}
verbose: _PushStatus 3euayowDhH: sending push to installations with %d batches
verbose: Sending push to 25
/app/node_modules/parse-server/lib/ParseServer.js:229
throw err;
^
Error: unsupported
at configSecureContext (node:internal/tls/secure-context:276:15)
at Object.createSecureContext (node:_tls_common:116:3)
at Object.connect (node:_tls_wrap:1621:48)
at Object.connect (node:internal/http2/core:3262:22)
at Client.write (/app/node_modules/@parse/node-apn/lib/client.js:37:28)
at /app/node_modules/@parse/node-apn/lib/provider.js:29:62
at Array.map (<anonymous>)
at Provider.send (/app/node_modules/@parse/node-apn/lib/provider.js:29:36)
at APNS.sendThroughProvider (/app/node_modules/@parse/push-adapter/lib/APNS.js:172:27)
at APNS.send (/app/node_modules/@parse/push-adapter/lib/APNS.js:158:28)在index.js中的推送配置
push: {
ios: {
pfx: 'certs/ApplePush.p12',
passphrase: process.env.APPLE_PUSH_PASSPHRASE,
topic: process.env.APPLE_PUSH_TOPIC,
production: false
}
}我已经搬到了M1 Macbook专业蒙特利。会不会有影响?
发现了这问题,但不确定是否相关。没有尝试它中提到的命令,因为我不熟悉它。
发布于 2022-01-21 13:59:10
发现了问题。我忽略了Parse支持Node.js直到v16,我已经将我的依赖设置为>9.0.0,所以heroku正在安装v17。
我在https://github.com/nodejs/node/issues/40672上面发布的网址应该会让我有更多的探索。
https://stackoverflow.com/questions/70086499
复制相似问题