Windmill

W

Windmill

Join the community to ask questions about Windmill and get answers from other members.

Join

help

general

changelog

Postgresql job crashing native worker

I believe I managed to accidently create a postgresql job/script that crashes the windmill native workers. I think its due to the select returning quite big numbers. I'm getting this log in my worker: `` thread 'tokio-runtime-worker' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/rust_decimal-1.32.0/src/str.rs:30:15: called Result::unwrap() on an Err` value: CapacityError: insufficient capacity...

Embedding an App

Is it possible to embed a Windmill App into another site?

Can I use async main function in python?

I'm trying to use async function in script, but this error occured. When I delete async part in main, then this syntax error was not appeared. is there any way i can use async main in windmill? ExecutionErr: error during execution of the script: Error parsing code: invalid syntax. Got unexpected token Newline at byte offset 2210...
No description

How do I troubleshoot app components showing in the editor/preview view but missing when published?

Hi - I'm a brand new user. I am running in to an issue where any app component (button, dropdown,etc) shows in the preview and edit modes but when I view the published app, the window is completely blank. This happens even if I create a new app and just add a few simple components then save/publish. The chrome console shows no errors. Any pointers for how to troubleshoot this?
No description

I've killed the app editing UI

I seem to have managed to make my application editing UI unresponsive. I have to refresh the page to be able to interact with it again and then it crashes again. I'm self hosting and might have a problem with my websocket connection. Still investigating, but adding this as is doesn't seem right that I should be able to kill the stript editing UI in this way 🙂...
No description

crash

windmilldev-db-1 | 2023-11-29 19:07:23.202 UTC [1] LOG: server process (PID 439) was terminated by signal 9: Killed windmilldev-db-1 | 2023-11-29 19:07:23.202 UTC [1] DETAIL: Failed process was running: UPDATE queue windmilldev-db-1 | SET running = true windmilldev-db-1 | , started_at = coalesce(started_at, now()) windmilldev-db-1 | , last_ping = now()...

Exception when importing Python's CV2 lib

Cv2 was added to the list of libraries that are installed with one name, but used with another. However, it still doesn't work. ``` { "error": { "name": "ExecutionErr",...

Is there also an implementation planned for Google Bard and GCP

Hello is there also planned to have a Google Bard Integraton and/or GCP Integration ?

Import API Documentation

Is there a possibility to import an API Dok to use it later in the scripts ?

Self-hosted instance workspace bulk migration

Hi all. I'm trying to migrate a workspace from a self-hosted windmill server to another running a newer version (v1.179.1 -> v 1.214). I was trying to find an easy method to do so, and i managed to export the workspace as a .zip file from the "Delete Workspace" menu, but i'm struggling to find an import process. The two instances run two different Postgres versions (12.x -> 16.x) so i'm not quite confident with the idea of just dump the db and restore it on the new instance. Could anyone suggest a recommended method for this type of task? Any advice or insights would be greatly appreciated. Many thanks in advance for your kind support....

Using invisible `drawer`

Hey all. I'm trying to refactor an app to not have drawer inside list component, and to set up a single invisible drawer outside of the list component, and use a lightweight button to open and close it. Now, opening the drawer with button is simple enough - but how, inside the drawer, do I reference data of the particular list item which button I clicked? Say, the list has id= a, it contains text component (b) and button ( c), and drawer has id= d. Drawer contains a text component e that is supposed to show value of a.result.selectedRow.b.result or something like that, but I can't figure it out. Please help....

Is there any plan to support Bitbucket?

Hello, our company uses Bitbucket (instead of Github or GitLab) and curious if there are any plans to supporting Bitbucket?

What permissions does the database user require?

I'm nearly there with my nix/oci-contaner based windmill deployment. But I'm getting: ``` Nov 22 12:57:12 mc-nix windmill_server[1378228]: Error: Migrating database: while executing migrations: error returned from database: role "windmill_user" does not exist Nov 22 12:57:12 mc-nix windmill_server[1378228]: ...

How do I send a response to client from a flow?

Hello, I have created a simple flow that accepts a string as an input, calls a ts action to do some operation on the string. I then tried to call this flow via postman. The flow execute perfectly but I noticed that it returns a GUID, instead of the string returned by the custom action. How do I configure the flow to return the string to postman?
No description

Why does this code sometimes work but 95% of the time it doesnt.

`import * as wmill from "windmill-client" import { Client } from "pg" import { from as copyFrom } from "pg-copy-streams" // Defining the type for Postgres resource...

Failed to deserialize form body on twilio POSTs to Windmill intake webhook

Windmill version: CE v1.208.0-12-gd82027cbf Webhook: https://windmill.redacted.dev/api/w/home/jobs/run_wait_result/f/f/twilio/twilio_intake?token=redacted I have twilio setup to post to a webhook trigger in a flow. Twilio sends texts as x-www-form-urlencoded payloads....

Nested JSON schema required fields

Hi, I have the following schema where the goal is to make "name" and "id" required within "Persona" (also set the order of the fields). For some reason it doesn't work. Am I missing something or is it an issue?...

Foreign key issue while attempting to delete workspace

Windmill version: self hosted CE v1.206.0-7 The PG database is the one provided with the docker compose setup (which I didn't update since I first installed windmill though) I attempted to delete a windmill workspace but was greeted with foreign key constraint violation errors. As I was in a hurry I fixed it myself by deleting manually the following rows (where WK_ID is the id of the workspace I wanted to delete)...

Download csv file from python script + app

Hello, I'm trying to download a csv file created in a python script launched from an app, but I can't find a functional solution for the whole thing 😦 No matter how much I encode my raw data in base64, return it, or store it in a state for download from a download button, I never get a correct csv file 😦...