you mentioned an HTTP function. Are you interacting with an API? Or making external requests? If so what is the status of those requests in the network tab when you inspect the page and then call the function? You should see the request and get a response back.