heroku / heroku-repo

Plugin for heroku CLI that can manipulate the repo
MIT License
687 stars 111 forks source link

Certificate errors #90

Closed coler-j closed 3 years ago

coler-j commented 5 years ago

Getting the follow error when trying to download the plugin (windows 10):

Installing heroku-repo@latest... !
 !    yarn add heroku-repo@latest --non-interactive --mutex=file:C:\Users\JLCJ\AppData\Local\heroku\plugins\yarn.lock
 !    --preferred-cache-folder=C:\Users\JLCJ\AppData\Local\heroku\yarn --registry=https://cli-npm.heroku.com exited with
 !    code 1
 !    error An unexpected error occurred: "https://cli-npm.heroku.com/heroku-repo: Hostname/IP does not match
 !    certificate's altnames: Host: cli-npm.heroku.com. is not in the cert's altnames: DNS:*.herokuapp.com,
 !    DNS:herokuapp.com".
 !
 !    yarn add v1.5.1
 !    info No lockfile found.
 !    [1/4] Resolving packages...
 !    info If you think this is a bug, please open a bug report with the information provided in
 !    "C:\\Users\\JLCJ\\AppData\\Local\\heroku\\plugins\\yarn-error.log".
 !    info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
 !

yarn-error.log contains:

Yarn version: 
  1.5.1

Node version: 
  9.10.1

Platform: 
  win32 x64

npm manifest: 
  {
    "private": true,
    "cli-engine": {
      "schema": 1
    }
  }

yarn manifest: 
  No manifest

Lockfile: 
  No lockfile

Trace: 
  Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames: Host: cli-npm.heroku.com. is not in the cert's altnames: DNS:*.herokuapp.com, DNS:herokuapp.com
      at Object.checkServerIdentity (tls.js:225:17)
      at TLSSocket.onConnectSecure (_tls_wrap.js:1056:27)
      at TLSSocket.emit (events.js:180:13)
      at TLSSocket._finishInit (_tls_wrap.js:633:8)
OmarKhaledAbdo commented 5 years ago

Having the same error on MacOs

joaopedroasz commented 5 years ago

Having the same error in my delpoy on heroku. I using Linux Mint 19.1 32bits

kamransaeb commented 5 years ago

Same on OSX

astrofrog commented 5 years ago

Getting this error too

xjlin0 commented 5 years ago

same here

alwyndavis commented 4 years ago

Upgrading to the latest version of the Heroku CLI (heroku/7.33.3 darwin-x64 node-v11.14.0 currently) fixed this issue for me.

Was previously on heroku-cli/6.16.12.

callyb commented 4 years ago

I'm getting this error now - but there's no ref to it apart from this one on stack/google/anywhere I can find...it's not heroku-cli because I'm not using it - I just uploaded my first react app to heroku a couple of days ago, it was working fine and now after a few seemingly benign updates to the code (mainly styling) it's showing this error and I've lost my app...

dcporter44 commented 4 years ago

I'm also getting this error just trying to install a plugin "heroku plugins:install heroku-fork"

tomaadland commented 4 years ago

Updated to latest heroku-cli worked for me.

superandrew commented 4 years ago

brew upgrade heroku did the trick for me as well

EDIT: I thought it did the trick but ▸ ERR_TLS_CERT_ALTNAME_INVALID: Hostname/IP does not match certificate's altnames: Host: api.heroku.com. is not in the cert's altnames: DNS:sticky.ai, DNS:*.sticky.ai

heaven commented 3 years ago

Getting this:

heroku run rails c
Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames: Host: api.heroku.com. is not in the cert's altnames: DNS:*.herokuapp.com, DNS:herokuapp.com
Calamity-chain commented 3 years ago

same just now. With the error message on the platform : "API Unvailable" Maybe a current bug ?

nickramsbottom commented 3 years ago

@heaven Heroku are reporting a problem with their API: https://status.heroku.com/

image

Same error message brought me here.

markdowney commented 3 years ago

Heroku CLI is down: https://status.heroku.com/

savroff commented 3 years ago

Admired with the word "Potential" in their statement

heaven commented 3 years ago

@nickramsbottom yep thanks, also just discovered this.

supertrens commented 3 years ago

And still down!

gHashTag commented 3 years ago

Waiting...

Calamity-chain commented 3 years ago

it seems to work again!

emsuljic commented 3 years ago

it works now

edmorley commented 3 years ago

Hi! The errors seen yesterday were due to: https://status.heroku.com/incidents/2218

This GitHub issue was about something else (the error messages just happen to be similar) - likely using an out of date Heroku CLI.

If anyone else encounters the error in the original issue description, try uninstalling the Heroku CLI and reinstalling again: https://devcenter.heroku.com/articles/heroku-cli#uninstalling-the-heroku-cli https://devcenter.heroku.com/articles/heroku-cli#download-and-install

Closing to avoid confusion again in the future.