Intercept requests from a GraphQL mutation using a Serverless Function. Use this function to encrypt user's passwords before persisting them to the database.
This is the error I'm getting.
{
"errors": [
{
"extensions": {
"internal": {
"type": "http_exception",
"message": "ConnectionFailure Network.Socket.getAddrInfo (called with preferred socket type/protocol: AddrInfo {addrFlags = [AI_ADDRCONFIG], addrFamily = AF_UNSPEC, addrSocketType = Stream, addrProtocol = 0, addrAddress = <assumed to be undefined>, addrCanonName = <assumed to be undefined>}, host name: Just \"host.docker.internal\", service name: Just \"7071\"): does not exist (Name or service not known)"
},
"path": "$",
"code": "unexpected"
},
"message": "http exception when calling webhook"
}
]
}
The url in my handler is http://host.docker.internal:7071/api/insertUser
so I can't figure out the error.