-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught undefined in tweet splitter #174
Labels
bug
Something isn't working
Comments
A few console.log statements later, and it looks to be a missing catch around an error thrown when a tweet has two links in it. Deleted the tweet and the error stopped. |
I've deleted the tweet, but the newentries object here was:
The |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was working fine until a few days ago, then it started throwing this trace; any tips on how to figure out what it's choking on / get it to handle the failure gracefully?
│ content-mapper ✔ tweets: total: 14 retweets: 0 replies: 0 quotes: 0 │
│ content-mapper ✔ task finished │
│ TypeError: Cannot read properties of undefined (reading 'matchAll') │
│ at file:///app/dist/helpers/tweet/split-tweet-text/extract-words-and-spacers.js:36:34 │
│ at Array.forEach () │
│ at extractWordsAndSpacers (file:///app/dist/helpers/tweet/split-tweet-text/extract-words-and-spacers.js:35:13) │
│ at splitTweetText (file:///app/dist/helpers/tweet/split-tweet-text/split-tweet-text.js:23:21) │
│ at process.processTicksAndRejections (node:internal/process/task_queues:95:5) │
│ at async makeBlueskyPost (file:///app/dist/helpers/post/make-bluesky-post.js:40:17) │
│ at async makePost (file:///app/dist/helpers/post/make-post.js:29:23) │
│ at async postsSynchronizerService (file:///app/dist/services/posts-synchronizer.service.js:26:70) │
│ at async touitomamout (file:///app/dist/index.js:21:31) │
│ at async file:///app/dist/index.js:33:1 │
│
The text was updated successfully, but these errors were encountered: