heroku-repo: Certificate errors

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)

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 21 (1 by maintainers)

Most upvoted comments

Admired with the word “Potential” in their statement

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

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

image

Same error message brought me here.

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

it seems to work again!

And still down!

it works now

Waiting…