Search code examples
heroku

Heroku Custom Domain: sni_endpoint?


When adding a custom domain to my Heroku app I ran into the error below. Turns out Heroku has added a new requirement: Beginning November 1, 2021, this new parameter will be required: sni_endpoint

heroku domains:add www.mywebsite.com 
Adding www.mywebsite.com to ⬢ mywebiste... done

     ›   Error: Require params: sni_endpoint.
     ›   Error ID: invalid_params

Can someone tell me the new syntax to use instead of heroku domains:add www.mywebsite.com


Solution

  • I just tried on my end after running a heroku update command and it enqueued the new domain correctly.

    I guess your Heroku CLI toolbelt is out of date and not sending the newly required sni_endpoint to their API. After all, it's just a CLI wrapper for their API.