Heroku 部署错误:未找到请求的 API 端点 [英] Heroku deployment error: The requested API endpoint was not found
问题描述
我有可用的应用程序(可在此处使用 tandtpartners.herokuapp.com)
但是我有
遥控器:!未找到请求的 API 端点.您是否使用了正确的 HTTP 动词(即 GET 与 POST),并且您是否使用 Accept 标头指定了您想要的版本?
尝试再次部署应用程序时出现错误.
即使我将这个应用程序克隆到另一个文件夹并将一些 !
添加到 index.html
,我也收到了同样的错误.
C:heroku2 andtpartners>git status在分支主您的分支是最新的 'heroku/master'.要提交的更改:(使用git reset HEAD <file>..."取消暂存)修改:你好/模板/index.htmlC:heroku2 andtpartners>git commit -m "仅更改索引 html"[master 8a56e0d] 仅更改索引 html1 个文件更改,1 个插入(+),1 个删除(-)C:heroku2 andtpartners>git commit -m "仅更改索引 html"[master 8a56e0d] 仅更改索引 html1 个文件更改,1 个插入(+),1 个删除(-)C:heroku2 andtpartners>git push heroku master计数对象:5,完成.Delta 压缩最多使用 4 个线程.压缩对象:100% (5/5),完成.写入对象:100% (5/5),432 字节 |432.00 KiB/s,完成.总计 5(增量 4),重复使用 0(增量 0)远程:压缩源文件...完成.远程: 建筑源:偏僻的:偏僻的: !未找到请求的 API 端点.您是否使用了正确的 HTTP 动词(即GET"与POST"),并且您是否使用Accept"标头指定了您想要的版本?偏僻的:到 https://git.heroku.com/tandtpartners.git![远程拒绝] master ->master(预接收钩拒绝)错误:未能将一些引用推送到https://git.heroku.com/tandtpartners.git"
我能用它做什么?
来自 Heroku 状态页面><块引用>
免费帐户的 API 错误
我们正在调查有关 API 错误增加的报告.这会影响一个用户在平台上的操作数量,包括部署没有与他们的帐户相关联的信用卡.我们会更新很快就到了.
(对于未来的用户:这个答案只在很短的时间内有效,如果你有同样的问题,也许你应该看看https://status.heroku.com/)
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:heroku2 andtpartners>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:heroku2 andtpartners>git commit -m "Changed only index html"
[master 8a56e0d] Changed only index html
1 file changed, 1 insertion(+), 1 deletion(-)
C:heroku2 andtpartners>git commit -m "Changed only index html"
[master 8a56e0d] Changed only index html
1 file changed, 1 insertion(+), 1 deletion(-)
C:heroku2 andtpartners>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?
From Heroku status page
API Errors for Free Accounts
We are investigating reports of increased API errors. This affects a number of actions on the platform, including deploys, for users without a credit card associated with their account. We will update here shortly.
(For future users: This answer is valid only for a short period of time, if you have the same issue, maybe you should give a look at https://status.heroku.com/)
这篇关于Heroku 部署错误:未找到请求的 API 端点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!