Closed springCozyRock closed 7 months ago
update: solved
I have known why, change the environment
- gateway
from localhost:31112
to gateway.openfaas
, although I still don't know why. Can you help me? @s8sg @pasdam
flow.yml
environment:
gateway: "gateway.openfaas"
enable_tracing: true
trace_server: "jaeger-agent.faasflow:5775"
enable_hmac: true
consul_url: "consul.faasflow:8500"
consul_dc: "dc1"
s3_url: "minio.faasflow:9000"
s3_tls: false
I'm not involved in the project anymore unfortunately. but from the sound of it, it looks like openfass gateway is deployed in a different container than your function, hence when the function tries to call the gateway on localhost can't reach it (localhost from the perspective of the function is only the container where the function is executing), so you need to use a proper dns hostname to call it.
I am a student, and your help means a lot to me. @s8sg @pasdam I was trying out faas-flow-example, and take Sync-chain for example. As the following figure shows, I successfully deployed them to OpenFaas API gateway, and I can invoked the function. But with failed information.
I checked the logs. basically connection refused error. But I can invoke func1, func2 in the ui. Why can't I invoke them in sync-chain function???
Some configuration information are as follows flow.yml
stack.yml