WindmillWWindmill
Powered by
EntVlE
Windmill•15mo ago
EntVl

Output is wrapped in a promise

Hello, I have a flow with scripts in it. The problem is that one of the scripts behaves differently from the others. It returns an object, but when I try to access this object in an
if
if
statement (or just pass it to another inline script), I can't access its attributes because the entire object is wrapped in a promise. Before returning this object, it's definitely a regular JavaScript object, but after returning, it gets wrapped. What could be wrong?
WindmillJoin
3,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

Input doesn't get preprocessor output in the flow
konclaveKkonclave / help
6mo ago
error: Top-level await promise never resolved
EggingtonEEggington / help
15mo ago
Using a function's output typescript types in the next step of the flow
RicoRRico / help
3y ago
is it possible to transform output from multi select so it will update fields in grid?
mitzjukimMmitzjukim / help
12mo ago