Trying to run GraphQL script with windmill TS client throws error
Hi there, trying to run a windmill GraphQL script from another TS script via the windmill TS client but I'm encountering an issue. There's not much documentation on the TS client side so I'm unsure what the issue may be.
Given my GraphQL script has the following params: api: Object (the one that is always created for GraphQL scripts), title: string, issueId: string, url: string,
I am receiving the following issue when trying to call it via path from my TS script:
Error:
Edit:
Same error when the args parameter is using [] instead of {}
7 Replies
Hi @Stefan-neo , is the script f/testDir/testAction running successfully ?
You should be able to see that in the runs page
Hi @rubenf,
the graphql script triggered by the parent runs successfully with this return
Minimal reproducible on the calling TS script side:
Error thrown on TS script (Bun) side:
Can reproduce this behavior for any other script I'm calling with wmill.runScript()
@Stefan-neo i'm doing a release right now with a fix
btw, your last arg shouldn't be true, you can leave it empty
Yeah, just used it for verbose debugging
Thanks a lot for looking into it! Will test later today
you will need to pin windmill-client@ to the next release
deployed:
does work now
Hi @rubenf , short follow-up on a related matter. It seems there's no wmill.runFlow method, and wmill.runScript does not appear to work on flows.
you can just call the webhook directly with fetch