Documentation
Troubleshooting
Reference docs for pydantic-fixturegen.
Troubleshooting: unblock generation quickly
Decode error codes, address sandbox issues, and keep CI green.
Error taxonomy
| Code | Meaning | Fix |
|---|---|---|
0 |
Success | No action needed. |
20 |
Structured discovery/config error | Inspect JSON payload (--json-errors) for kind and detail. |
40 |
Sandbox timeout | Increase --timeout or optimise imports. |
41 |
Sandbox memory limit (platform dependent) | Raise --memory-limit-mb or refactor heavy imports. |
2 |
pfg doctor --fail-on-gaps threshold hit |
Add providers or relax the fail threshold. |
Common issues
- “No models discovered.” — Check the path points to a file, not a package. Use
--hybridfor dynamic registration. - Sandbox blocked a write or network call. — Place outputs beneath the working directory and remove network access from model imports.
- JSON diffs differ between machines. — Ensure all environments pin the same seed (CLI/env/config) and enable
--freeze-seeds. - Optional fields too dense/sparse. — Adjust
p_nonevia CLI/env/config or set field-level policies. - Watch mode not triggering. — Install the
watchextra and verify edits happen under the project root. Tune--watch-debounce. ValueError: No provider registered— Add a custom provider or update dependencies (for example installregexextra for constrained strings).seed_freeze_stalewarnings. — Accept new digests by committing the updated.pfg-seeds.jsonor rerun with the previous model definition.
Debug checklist
- Run
pfg list --json-errorsto confirm discovery works. - Execute
pfg doctor --fail-on-gaps 0to catch coverage issues. - Enable
--log-jsonand capture events for review. - Drop into
pfg gen explain --treeto inspect provider choices. - Rebuild with
--seedand compare outputs viapfg diff.
Escalate to security if sandbox violations persist or to support channels when you need assistance.
Edit this page