Skip to content

Fix JSON parsing errors and Docker healthcheck #114

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

Merged
merged 1 commit into from
Apr 22, 2025
Merged

Conversation

SpirusNox
Copy link
Collaborator

This PR addresses two issues:

  1. JSON parsing errors in transcript handling:
    - Fixed transcript parsing in /api/audio-files/[id]/transcript endpoint to properly handle different
    data formats (string, array, object)
    - Added robust type checking to prevent "[object Obj]" parsing errors
    - Enhanced error handling in the summarize endpoint when processing transcript data
  2. Docker configuration improvement:
    - Removed /health path from Docker healthcheck
    - Now using the base URL for health checks which is more reliable

These changes improve the application's stability when handling different transcript data formats and
simplify the Docker healthcheck configuration.

- Fixed transcript parsing in audio-files/[id]/transcript endpoint
- Added robust type checking for transcript data formats
- Added type safety to summarize endpoint for transcript processing
- Removed /health path from Docker healthcheck

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
@SpirusNox SpirusNox changed the base branch from main to nightly April 22, 2025 21:41
@SpirusNox SpirusNox merged commit f54de0b into nightly Apr 22, 2025
@SpirusNox SpirusNox deleted the fix/json-error branch April 22, 2025 21:43
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