Error to get data from url json

If you had checked my own Open-Notify sketch in my 1st reply:

You’d see it works as long the “.html” file is running under the http:// protocol.

If your only option is to use the https:// protocol, maybe you can find some proxy service which would access http://api.Open-Notify.org/astros.json and forward it back to your sketch.