https://www.activepieces.com logo
hi, did something change with latest
# 🐶|general
m
hi, did something change with latest release? i'm seeing such errors for webhooks: [cause]: ConnectTimeoutError: Connect Timeout Error (attempted address: example.com:443, timeout: 10000ms) i'm using activepieces under a reverse proxy
m
First Long time no see! 😄
Do you have more information, What do you see in the UI!?
m
eheh yeah. hope you're well
m
Oh wait so you call the webhook, and you get no response and this error appears in the docker logs?
m
in the UI nothing, but in the logs i see that: {"level":30,"time":1761836769776,"pid":11,"hostname":"25860d415eb4","runId":"bs1I9P5X6Nrsa7ygWlEwX","webhookId":"mwD2eRObjtP3NSc7dAC4D","flowId":"9st2c9jkQR9uNvs8EQWf4","flowVersionId":"umFhXpUtegk4FsfJYPD9F","pieces":["@activepieces/piece-webhook@0.1.5","@activepieces/piece-http@0.4.5","@activepieces/piece-sendy@0.0.7","@activepieces/piece-http@0.5.1","@activepieces/piece-http@0.5.1"],"path":"/usr/src/app/cache/v5/common","timeTaken":"6348ms","msg":"Installed official pieces in sandbox"} {"level":30,"time":1761836769776,"pid":11,"hostname":"25860d415eb4","runId":"bs1I9P5X6Nrsa7ygWlEwX","webhookId":"mwD2eRObjtP3NSc7dAC4D","flowId":"9st2c9jkQR9uNvs8EQWf4","flowVersionId":"umFhXpUtegk4FsfJYPD9F","timeTaken":"6348ms","msg":"Sandbox installation complete"} {"level":30,"time":1761836769777,"pid":11,"hostname":"25860d415eb4","runId":"bs1I9P5X6Nrsa7ygWlEwX","webhookId":"mwD2eRObjtP3NSc7dAC4D","flowId":"9st2c9jkQR9uNvs8EQWf4","flowVersionId":"umFhXpUtegk4FsfJYPD9F","workerIndex":9,"timeoutInSeconds":600,"msg":"Sending operation to worker"} Error sending update: TypeError: fetch failed at node:internal/deps/undici/undici:13510:13 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { [cause]: ConnectTimeoutError: Connect Timeout Error (attempted address: example:443, timeout: 10000ms) at onConnectTimeout (node:internal/deps/undici/undici:2602:28) at Immediate._onImmediate (node:internal/deps/undici/undici:2583:11) at process.processImmediate (node:internal/timers:483:21) { code: 'UND_ERR_CONNECT_TIMEOUT' } }
yes
seems like if the webhook module tried to connect to the external ip, but i have no idea why and it worked until latest version
my backend calls it automatically and on activepieces i see a failed run, but no info when clicking inside it
only info i have is that, which i see from the docker logs
m
Do you deploy worker and app together?
I am wondering where example is coming from, IS this environment variable?
AP_FRONTEND_URL?
m
AP_FRONTEND_URL is set to my external url, yes https://example.com
yes, worker and app are together
so i think the url used by the webhook should be internal
m
You are correct so let me check
How we end up there 😄
Do you use subflow?
Okay it's not related to subflow
m
no
m
I think the best workaroud now to set AP_FRONTEND_URL to local one or an actual working one
I would recommend to have one that has https if you are using triggers 😄
Because most of third party services requires the url the to be http
m
my url is https by the way
and it always worked, but from last update i see: fetch failed: Connect Timeout Error (attempted address: example.com:443, timeout: 10000ms)
m
Yes seems what's changed is that
m
i never specified that 443 anywhere
m
backend generates urls to handover to the engine
the url is calling the backend using these urls which not reachable
m
where is the backend listening at?
m
I think somehow previously it used local ip
instead of public one
I am tracing these changes
Can you check if replacing
AP_FRONTEND_URL value with http://localhost:4200
does it work?
m
sure
connection refused
m
What is the value of AP_EXECUTION_MODE?
m
it's not set
so default
m
Okay perfect let me reproduce
give me a moment!
m
sure, no rush
m
building rc
m
thank you, i'll try it, should i revert my env var to the external url?
m
Yes sure xD
m
eheh, thanks, i'll let you know
Let me know if it works 😄
m
yes, it's working, thank you very much
m
Awesome!