Pyfetch example

pyfetch is an async function, so you need to use await:

response = await pyfetch(...)

You probably will want to actually read the response after that, which requires another await. Furthermore, you should ensure that your endpoint is configured to allow CORS from anywhere.