Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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:\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?

like image 705
mikha koltjia Avatar asked Feb 22 '18 09:02

mikha koltjia


2 Answers

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

like image 152
Arount Avatar answered Sep 21 '22 16:09

Arount


API Errors for Free Accounts

Tools 0 MINUTES ACTIVITY

Issue

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. POSTED 4 MINUTES AGO, FEB 22, 2018 10:47 UTC

https://status.heroku.com/incidents/1404

like image 29
symon Muriuki Avatar answered Sep 22 '22 16:09

symon Muriuki