【发布时间】:2018-08-02 02:50:56
【问题描述】:
我有工作的应用程序(在此处可用tandtpartners.herokuapp.com)
但是我在尝试再次部署应用程序时遇到了 remote: ! The requested API endpoint was not found. Are you using the right HTTP verb (i.e. GET vs. POST), and did you specify your intended version with the Accept header?
错误。
即使我将此应用程序克隆到另一个文件夹并将一些! 添加到index.html,我也收到了同样的错误。
C:\heroku\2\tandtpartners>git status
On branch master
Your branch is up-to-date with 'heroku/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: hello/templates/index.html
C:\heroku\2\tandtpartners>git commit -m "Changed only index html"
[master 8a56e0d] Changed only index html
1 file changed, 1 insertion(+), 1 deletion(-)
C:\heroku\2\tandtpartners>git commit -m "Changed only index html"
[master 8a56e0d] Changed only index html
1 file changed, 1 insertion(+), 1 deletion(-)
C:\heroku\2\tandtpartners>git push heroku master
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 432 bytes | 432.00 KiB/s, done.
Total 5 (delta 4), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: ! The requested API endpoint was not found. Are you using the right HTTP verb (i.e. `GET` vs. `POST`), and did you specify your intended version with the `Accept` header?
remote:
To https://git.heroku.com/tandtpartners.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/tandtpartners.git'
我能用它做什么?
【问题讨论】:
-
我们可能需要联系 Heroku 支持,当我尝试使用 dpl 进行部署时遇到了同样的错误。
-
是的。我们需要联系支持。自过去 1 小时以来,我也遇到了同样的错误。
-
是的,最近几个小时:stackoverflow.com/questions/48924984/…
-
我用 NodeJS 试过了,nodejs 也一样。我猜这是一个内部 Heroku 服务器错误。也许他们会在一两个小时内识别出错误并自动修复,就像社区现在已经报告的那样。
标签: django git python-3.x heroku