fetch http request err 500

Thanks.
It didn’t work with a small function as well…