The connection cannot be established, this usually occurs due to an incorrect host(domain) value

I am trying to write a python function and aking question related to that.

But it gives the error The connection cannot be established, this usually occurs due to an incorrect host(domain) value.

I am using in npx mode

I have did this also

Allows usage of all builtin modules

export NODE_FUNCTION_ALLOW_BUILTIN=*

Allow usage of external npm modules.

export NODE_FUNCTION_ALLOW_EXTERNAL=*

I have the exact same problem using the docker version