Skip to content

Fix: missing error() helper and broken imports blocking server startup#407

Closed
Nakshathra-2808 wants to merge 4 commits into
Durgeshwar-AI:mainfrom
Nakshathra-2808:fix-helpers-error-function
Closed

Fix: missing error() helper and broken imports blocking server startup#407
Nakshathra-2808 wants to merge 4 commits into
Durgeshwar-AI:mainfrom
Nakshathra-2808:fix-helpers-error-function

Conversation

@Nakshathra-2808

Copy link
Copy Markdown
Contributor

While testing PR #377, I found the backend wouldn't start at all due to two pre-existing bugs:

  1. blueprints/pdf.py was missing required imports (Blueprint, request, error) and pointed to the wrong module for some validators.
  2. utils/helpers.py was missing the error() helper function entirely, along with internal imports (send_file, os, jsonify, after_this_request) needed by send_file_and_cleanup.

This fix adds the missing error() function and restores the broken imports so python main.py runs cleanly.

@vercel

vercel Bot commented Jun 22, 2026

Copy link
Copy Markdown

@Nakshathra-2808 is attempting to deploy a commit to the Durgeshwar's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Nakshathra-2808

Copy link
Copy Markdown
Contributor Author

Closing this — checked against the latest main and you've already fixed this independently, plus added a success() helper that goes further than my fix. My branch is now outdated/redundant. Thanks for catching it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant