WindmillWWindmill
Powered by
Spencer ChavezS
Windmill•2w ago•
2 replies
Spencer Chavez

Wmill data tables 500 error when running Python script in IDE

When executing the following:
db = wmill.datatable()
db.query(<insert any query here>).execute()
db = wmill.datatable()
db.query(<insert any query here>).execute()


I get
Exception: http://localhost/api/w/<workspace-id>/jobs/run_inline/preview: 500, Internal: worker inline functions are meant to be called from a worker's internal server @worker.rs:4796:21
Exception: http://localhost/api/w/<workspace-id>/jobs/run_inline/preview: 500, Internal: worker inline functions are meant to be called from a worker's internal server @worker.rs:4796:21


I'm running this python in my local IDE. Windmill is running at http://localhost. Do I need to specify a DATABSE_URL environment variable perhaps? I already have WM_TOKEN, BASE_INTERNAL_URL, and WM_WORKSPACE set.
WindmillJoin
3,388Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

We're live here https://discord.com/channels/930051556043276338/1278977038430240813

henri-c · 2d ago

rubenf

Infrastructure as code

rubenf · 3w ago

rubenf

As we're preparing for a new Windmill sandbox SDK, we took the opportunity **to open-source NSJAIL sandboxing** and make it available in CE and easier to set. In 1.634.0, just set nsjail to benefit from the tightest security and isolation per job. It's constraining so no need to use it unless you need but now you won't be restricted in security for CE if you need to.

rubenf · 4w ago

Similar Threads

Error when calling a bun script using `wmill.runScript`
httpteapotHhttpteapot / help
2y ago
wmill script generate-metadata running into 502 errors
JieJJie / help
11mo ago
Error when setting up Data tables
FinnurFFinnur / help
2w ago
Logging in Python Script
Alexander EiseleAAlexander Eisele / help
2y ago