Skip to content

Fix JSON parsing errors and Docker healthcheck#114

Merged
BarbellDwarf merged 1 commit intonightlyfrom
fix/json-error
Apr 22, 2025
Merged

Fix JSON parsing errors and Docker healthcheck#114
BarbellDwarf merged 1 commit intonightlyfrom
fix/json-error

Conversation

@BarbellDwarf
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>
@BarbellDwarf BarbellDwarf changed the base branch from main to nightly April 22, 2025 21:41
@BarbellDwarf BarbellDwarf merged commit f54de0b into nightly Apr 22, 2025
@BarbellDwarf BarbellDwarf 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