【发布时间】:2018-02-28 04:39:41
【问题描述】:
这是我在使用 Parse-Server (/Heroku) 上的应用时遇到的问题。
我不断收到消息:
WARNING, Unable to connect to 'https://myapp.herokuapp.com/'. Cloud code and push notifications may be unavailable!
这是我运行命令时的完整日志:git push heroku master
2018-02-2...+00:00 app[api]: Build started by user me@xyz.com
2018-02-2...+00:00 app[api]: Deploy bduxedc8 by user me@xyz.com
2018-02-2...+00:00 app[api]: Build succeeded
2018-02-2...+00:00 app[api]: Release v25 created by user me@xyz.com
2018-02-2...+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2018-02-2...+00:00 heroku[web.1]: Process exited with status 143
2018-02-2...+00:00 heroku[web.1]: Restarting
2018-02-2...+00:00 heroku[web.1]: State changed from up to starting
2018-02-2...+00:00 heroku[web.1]: Starting process with command `npm start`
2018-02-2...+00:00 app[web.1]:
2018-02-2...+00:00 app[web.1]: > parse-server-example@1.4.0 start /app
2018-02-2...+00:00 app[web.1]: > node index.js
2018-02-2...+00:00 app[web.1]:
2018-02-2...+00:00 app[web.1]: parse-server-example running on port 23377.
2018-02-2...+00:00 heroku[web.1]: State changed from starting to up
2018-02-2...+00:00 heroku[router]: at=info method=GET path="/health" host=myapp.herokuapp.com request_id=fb429287-9b14-4373-97ab-30dac19a4db7 fwd="1.2.3.438" dyno=web.1 connect=2ms service=20ms status=404 bytes=217 protocol=https
2018-02-28T04:03:21.595649+00:00 app[web.1]:
2018-02-28T04:03:21.595660+00:00 app[web.1]: WARNING, Unable to connect to 'https://myapp.herokuapp.com/'. Cloud code and push notifications may be unavailable!
2018-02-28T04:03:21.595663+00:00 app[web.1]:
如果我将配置中的https 更改为http,我会看到完全相同的行为。
如果我尝试在浏览器中访问https://myapp.herokuapp.com/,我可以毫无问题地做到这一点。
我已经阅读了很多关于这个问题的帖子,但没有什么能促使我找到解决方案。 如果有人能告诉我如何解决这个问题,那就太好了。
【问题讨论】:
标签: node.js heroku push-notification parse-server parse-cloud-code