Commit 45f992c
committed
fix: Correct Gotenberg API usage for markdown to PDF conversion
�� Gotenberg API Fix:
- Changed file name from markdown filename to 'index.html' as required by Gotenberg
- Gotenberg /forms/chromium/convert/markdown endpoint expects 'index.html' file name
- Fixed PDF generation fallback to return 200 OK instead of 500 error
- Added debug logging for markdown content length
📋 Root Cause:
- Gotenberg error: 'form file index.html is required'
- We were sending files with .md extension, but API expects 'index.html'
- This caused 400 errors from Gotenberg, leading to 500 responses
✅ Expected Behavior After Deploy:
- Template validation errors: 200 OK with PDF error report
- Gotenberg conversion will now succeed with proper file naming
- No more 500 Internal Server Error responses1 parent 3331dd7 commit 45f992c
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
| 568 | + | |
568 | 569 | | |
569 | 570 | | |
570 | | - | |
| 571 | + | |
571 | 572 | | |
572 | 573 | | |
573 | 574 | | |
| |||
643 | 644 | | |
644 | 645 | | |
645 | 646 | | |
646 | | - | |
| 647 | + | |
647 | 648 | | |
648 | | - | |
| 649 | + | |
649 | 650 | | |
650 | 651 | | |
651 | 652 | | |
| |||
0 commit comments