You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Cannot read property 'trim' of undefined
at LibID.parseResponse (opensubtitles-api/lib/identify.js:44:80)
at opensubtitles-api/index.js:201:37
The text was updated successfully, but these errors were encountered:
On this line https://github.com/vankasteelj/opensubtitles-api/blob/master/lib/identify.js#L44 it does a
split()
andtrim()
but doesn't check that there is anything to trim, so it can end up throwing this error, which I noticed in my server logs:The text was updated successfully, but these errors were encountered: