Recurrent TypeError in logs #277

Closed
opened 2022-12-08 15:53:18 +00:00 by m33 · 6 comments

Hi,

I don't know when it started, but for every note received there is a TypeError in the logs. Always on the same ts file like this:

INFO 1  [remote ap]     Updating the featured: https://pouet.chapril.org/users/thimy                                                                                             
INFO 1  [remote ap]     Creating the Note: https://pouet.chapril.org/users/thimy/statuses/109478468971621221                                                                     
WARN 1  [queue deliver] failed(TimeoutError: Promise timed out after 60000 milliseconds) id=78104 attempts=8/12 age=290m to=https://mastodontwitter.com/inbox                    
TypeError: Cannot read properties of undefined (reading 'id')                                                                                                                    
    at file:///foundkey/packages/backend/built/queue/processors/deliver.js:41:32                                                                                                 
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)           

Everything looks normal btw... is it a normal error?

Hi, I don't know when it started, but for every note received there is a TypeError in the logs. Always on the same ts file like this: ``` INFO 1 [remote ap] Updating the featured: https://pouet.chapril.org/users/thimy INFO 1 [remote ap] Creating the Note: https://pouet.chapril.org/users/thimy/statuses/109478468971621221 WARN 1 [queue deliver] failed(TimeoutError: Promise timed out after 60000 milliseconds) id=78104 attempts=8/12 age=290m to=https://mastodontwitter.com/inbox TypeError: Cannot read properties of undefined (reading 'id') at file:///foundkey/packages/backend/built/queue/processors/deliver.js:41:32 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) ``` Everything looks normal btw... is it a normal error?
Owner

This error seems to be coming from this line in the source code:

Instances.update(i.id, {


That could only happen if registerOrFetchInstanceDoc would return undefined, but I am unsure how this could happen.

This error seems to be coming from this line in the source code: https://akkoma.dev/FoundKeyGang/FoundKey/src/commit/cf7449509f6bece184f676de41b4ed2a48f5eefd/packages/backend/src/queue/processors/deliver.ts#L51 That could only happen if `registerOrFetchInstanceDoc` would return `undefined`, but I am unsure how this could happen.
Author

If you need some tests, or have a patch to debug this issue I can try to provide more feedback

If you need some tests, or have a patch to debug this issue I can try to provide more feedback
Owner

What version/commit are you currently running?

What version/commit are you currently running?
Author

preview3

preview3
Owner

Does this error still occur?

Does this error still occur?
Owner

closing this as stale, assuming it has been fixed in the meantime

closing this as stale, assuming it has been fixed in the meantime
Sign in to join this conversation.
No labels
feature
fix
upkeep
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: FoundKeyGang/FoundKey#277
No description provided.