-
Notifications
You must be signed in to change notification settings - Fork 716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 BUG: Need a better error for dev-ing Python modules when missing the python_workers
compatibility flag
#5479
Comments
Good good all paranys |
@kflansburg @dom96 @garrettgu10 @hoodmane FYI, EW-8347 |
It looks like Wrangler is not showing the full output from workerd. When I run workerd on a Python Worker without this compat flag I get:
This possibly needs to be fixed in Wrangler. @cloudflare/wrangler thoughts? |
I suspect this is being hidden because we hide some error logs that come from workerd which aren't useful to the user. Potentially we're being over zealous here, and hiding too much. However, I wonder if it'd be a nicer experience to throw an error here much earlier in the process—when we detect that a user has a .py file without the compatibility flag. I think we could do this in |
Which Cloudflare product(s) does this pertain to?
Wrangler core
What version(s) of the tool(s) are you using?
3.43.0
What version of Node are you using?
No response
What operating system and version are you using?
macOS
Describe the Bug
If you're missing the
compatibility_flags = ["python_workers"]
in yourwrangler.toml
, you just get an opaquewhen trying to
wrangler dev
.This should be improved to instead be a useful error message prompting the user to add that flag to their config file.
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
No response
The text was updated successfully, but these errors were encountered: