WindmillWWindmill
Powered by
JieJ
Windmill•10mo ago•
5 replies
Jie

wmill script generate-metadata running into 502 errors

I keep getting this message when i'm trying to generate metadata, even for a single file that has very basic dependencies. this has never happened to me before.

Generating metadata for f/shared/mod_run_structured_data_extraction.py
file:///Users/jiezhoumini/Library/pnpm/global/5/.pnpm/windmill-cli@1.458.4/node_modules/windmill-cli/esm/metadata.js:229
        throw new Error(`Failed to generate lockfile. Status was: ${rawResponse.statusText}, ${responseText}, ${e}`);
              ^
Error: Failed to generate lockfile. Status was: Bad Gateway, 
<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>502 Server Error</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Server Error</h1>
<h2>The server encountered a temporary error and could not complete your request.<p>Please try again in 30 seconds.</h2>
<h2></h2>
</body></html>
, SyntaxError: Unexpected token '<', "
<html><hea"... is not valid JSON
    at updateScriptLock (file:///Users/jiezhoumini/Library/pnpm/global/5/.pnpm/windmill-cli@1.458.4/node_modules/windmill-cli/esm/metadata.js:229:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async generateScriptMetadataInternal (file:///Users/jiezhoumini/Library/pnpm/global/5/.pnpm/windmill-cli@1.458.4/node_modules/windmill-cli/esm/metadata.js:141:13)
Generating metadata for f/shared/mod_run_structured_data_extraction.py
file:///Users/jiezhoumini/Library/pnpm/global/5/.pnpm/windmill-cli@1.458.4/node_modules/windmill-cli/esm/metadata.js:229
        throw new Error(`Failed to generate lockfile. Status was: ${rawResponse.statusText}, ${responseText}, ${e}`);
              ^
Error: Failed to generate lockfile. Status was: Bad Gateway, 
<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>502 Server Error</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Server Error</h1>
<h2>The server encountered a temporary error and could not complete your request.<p>Please try again in 30 seconds.</h2>
<h2></h2>
</body></html>
, SyntaxError: Unexpected token '<', "
<html><hea"... is not valid JSON
    at updateScriptLock (file:///Users/jiezhoumini/Library/pnpm/global/5/.pnpm/windmill-cli@1.458.4/node_modules/windmill-cli/esm/metadata.js:229:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async generateScriptMetadataInternal (file:///Users/jiezhoumini/Library/pnpm/global/5/.pnpm/windmill-cli@1.458.4/node_modules/windmill-cli/esm/metadata.js:141:13)

Tried updating wmill cli but didn't help
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

wmill script generate-metadata Error: Failed to generate lockfile.
rubenfRrubenf / help
2y ago
wmill script generate-metadata --yes generates new diff every time
NackiNNacki / help
7mo ago
generate-metadata command failing
immortal3Iimmortal3 / help
2y ago
All wmill.get_resource() calls generate 404 Exceptions
rubenfRrubenf / help
2d ago