Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.6k views
in Technique[技术] by (71.8m points)

django - Heroku deployment error: The requested API endpoint was not found

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:heroku2andtpartners>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:heroku2andtpartners>git commit -m "Changed only index html"
[master 8a56e0d] Changed only index html
 1 file changed, 1 insertion(+), 1 deletion(-)

C:heroku2andtpartners>git commit -m "Changed only index html"
[master 8a56e0d] Changed only index html
 1 file changed, 1 insertion(+), 1 deletion(-)

C:heroku2andtpartners>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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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/)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...