Open optsing opened 8 months ago
Hey OP, I am just a lurker, but glancing at your error dump...
async DevServer.handleRequestImpl (C:\Users\optsi\projects\srt-ai\node_modules\next\dist\server\base-server.js:805:17) { [cause]: TypeError: Cannot read properties of undefined (reading 'timestamp') at Object.start (webpack-internal:///(rsc)/./app/api/route.ts:70:59) ...
At a glance, that seems say that some code that accesses foo.timestamp
has failed because foo
is unexpectedly undefined
or null
.
So if I were in your place I would try redoing this inside VSC with the debugger -- first asding a conditional breakpoint on that line that fails, so it only debugs/pauses if foo == null
... and then you can at least look at all the other variable values too, maybe then you will be able to see the full problem.
That's my first instinct anyway.
Or if it seems an allowed possibility (maybe badly formatted SRT file?) then update the code to cleanly fail when foo == null
, or skip that loop step and log the issue (but do not fail).
HTH!
Each attempt to translate ends with the following error after few minutes of normal work: