fix: resolve timeout errors in API routes#255
Open
ty-asuralo wants to merge 1 commit intogcui-art:mainfrom
Open
fix: resolve timeout errors in API routes#255ty-asuralo wants to merge 1 commit intogcui-art:mainfrom
ty-asuralo wants to merge 1 commit intogcui-art:mainfrom
Conversation
- 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.
|
@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. |
MJaydnb
approved these changes
Jul 3, 2025
MJaydnb
approved these changes
Jul 3, 2025
MJaydnb
approved these changes
Jul 3, 2025
MJaydnb
approved these changes
Jul 3, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🐛 Bug Fixes
Cannot read properties of undefined (reading 'data')errors when requests timeouterror.responseexistence across all API routes🔧 Technical Improvements
📝 Files Changed
src/app/api/generate/route.tssrc/app/api/generate_stems/route.tssrc/app/api/extend_audio/route.tssrc/app/api/generate_lyrics/route.tssrc/app/api/concat/route.ts🧪 Testing