Heroku部署错误:找不到请求的API终结点

at0kjp5o  于 2022-11-13  发布在  其他
关注(0)|答案(5)|浏览(173)

I have the worked app (Availible here tandtpartners.herokuapp.com )
But I've got the
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?
error while trying to deploy the app again.
Even when I cloned this app to another folder and added some ! to index.html , I received the same error.

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'

What can I do with that?

ergxz8rk

ergxz8rk1#

Heroku status page开始
免费帐户的API错误
我们正在调查有关API错误增加的报告。这会影响平台上的许多操作,包括没有与其帐户关联的信用卡的用户的部署。我们将很快在此处更新。
(For未来用户:这个答案只在很短的时间内有效,如果你有同样的问题,也许你应该给予https://status.heroku.com/

v6ylcynt

v6ylcynt2#

免费帐户的API错误
工具0分钟活动
问题
我们正在调查有关API错误增加的报告。这会影响平台上的许多操作,包括部署,对于没有与其帐户关联的信用卡的用户。我们将很快在此处更新。发布时间:4分钟前,2018年2月22日10:47 UTC
https://status.heroku.com/incidents/1404

y3bcpkx1

y3bcpkx13#

已解决:免费帐户的API错误。
已发现导致此问题的更改,并已部署修复程序。此受影响的应用程序为08:41 UTC和11:00 UTC之间没有信用卡的用户生成。
此问题现已解决。
最新信息可从以下网址获得:https://status.heroku.com/incidents/1404

j2cgzkjk

j2cgzkjk4#

这是一个被发现并修复的错误。

ktca8awb

ktca8awb5#

1.检查是否将heroku添加为远程:git remote -v你应该会看到这样的结果:
heroku https://git.heroku.com/yourapp.git(撷取)AND heroku https://git.heroku.com/yourapp.git(推入)
1.如果没有,则设置远程- git remote添加heroku git@heroku.com:MyApp.git(旧版git)或heroku git:remote -a git@heroku.com:MyApp.git(新版git)

  1. git push heroku master(旧的git)git push heroku main(新的git)

相关问题