Homey Script fetch gives error

I am trying to get some data for sunrise and sunset, but get an error, someone an idea what is going wrong? When i copy paste the url into a browser it does respond.

This is the response i get when i copy paste it in a browser

“Niet beveiligd”.

The TLS/HTTPS certificate of the site has expired. The owner of the webserver should fix this.

Adding the following two lines to the top of your script will provide a (rather dirty) workaround:

const process = this.constructor.constructor('return process')();
1 Like

Thx it works now