Skip to content

Conversation

@ty-asuralo
Copy link

🐛 Bug Fixes

  • Fixed TypeError crashes: Resolved Cannot read properties of undefined (reading 'data') errors when requests timeout
  • Improved error handling: Added proper checks for error.response existence across all API routes
  • Enhanced error messages: Better feedback for network errors, timeouts, and other failure scenarios

🔧 Technical Improvements

  • Robust error handling: All API routes now handle network errors gracefully
  • Better user feedback: Clear error messages for different failure types

📝 Files Changed

  • src/app/api/generate/route.ts
  • src/app/api/generate_stems/route.ts
  • src/app/api/extend_audio/route.ts
  • src/app/api/generate_lyrics/route.ts
  • src/app/api/concat/route.ts

🧪 Testing

  • Tested with network timeouts

- Fix TypeError crashes when requests timeout by adding proper error.response checks
- Improve error handling across all API routes: generate, generate_stems, extend_audio, generate_lyrics, concat
- Add better error messages for network errors, timeouts, and other failure scenarios
- Prevent crashes when error.response is undefined

Resolves 'Cannot read properties of undefined (reading data)' errors.
@vercel
Copy link

vercel bot commented Jun 28, 2025

@ty-asuralo is attempting to deploy a commit to the Linkly AI LLC's projects Team on Vercel.

A member of the Team first needs to authorize 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.

2 participants