[Bug]: OPML import containing own feed == Server crash #1816

Closed
opened 2026-04-24 23:59:04 +02:00 by adam · 6 comments
Owner

Originally created by @AeliusSaionji on GitHub (Mar 16, 2024).

Describe the issue

Mar 15 19:28:34 reServer audiobookshelf[1665003]: [2024-03-15 23:28:34.527] FATAL: [Server] Uncaught exception origin: uncaughtException, error: Error [ERR_INTERNAL_ASSERTION]: This is caused by either a bug in Node.js or incorrect usage of Node.js internals.
Mar 15 19:28:34 reServer audiobookshelf[1665003]: Please open an issue with this stack trace at https://github.com/nodejs/node/issues
Mar 15 19:28:34 reServer audiobookshelf[1665003]:
Mar 15 19:28:34 reServer audiobookshelf[1665003]:     at assert (node:internal/assert:14:11)
Mar 15 19:28:34 reServer audiobookshelf[1665003]:     at internalConnect (node:net:1037:3)
Mar 15 19:28:34 reServer audiobookshelf[1665003]:     at defaultTriggerAsyncIdScope (node:internal/async_hooks:464:18)
Mar 15 19:28:34 reServer audiobookshelf[1665003]:     at GetAddrInfoReqWrap.emitLookup [as callback] (node:net:1481:9)
Mar 15 19:28:34 reServer audiobookshelf[1665003]:     at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:130:8) {
Mar 15 19:28:34 reServer audiobookshelf[1665003]:   code: 'ERR_INTERNAL_ASSERTION'
Mar 15 19:28:34 reServer audiobookshelf[1665003]: } (Server.js:160)
Mar 15 19:28:34 reServer audiobookshelf[1665003]: node:internal/assert:14
Mar 15 19:28:34 reServer audiobookshelf[1665003]:     throw new ERR_INTERNAL_ASSERTION(message);
Mar 15 19:28:34 reServer audiobookshelf[1665003]:     ^
Mar 15 19:28:34 reServer audiobookshelf[1665003]:
Mar 15 19:28:34 reServer audiobookshelf[1665003]: Error [ERR_INTERNAL_ASSERTION]: This is caused by either a bug in Node.js or incorrect usage of Node.js internals.
Mar 15 19:28:34 reServer audiobookshelf[1665003]: Please open an issue with this stack trace at https://github.com/nodejs/node/issues
Mar 15 19:28:34 reServer audiobookshelf[1665003]:
Mar 15 19:28:34 reServer audiobookshelf[1665003]:     at assert (node:internal/assert:14:11)
Mar 15 19:28:34 reServer audiobookshelf[1665003]:     at internalConnect (node:net:1037:3)
Mar 15 19:28:34 reServer audiobookshelf[1665003]:     at defaultTriggerAsyncIdScope (node:internal/async_hooks:464:18)
Mar 15 19:28:34 reServer audiobookshelf[1665003]:     at GetAddrInfoReqWrap.emitLookup [as callback] (node:net:1481:9)
Mar 15 19:28:34 reServer audiobookshelf[1665003]:     at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:130:8) {
Mar 15 19:28:34 reServer audiobookshelf[1665003]:   code: 'ERR_INTERNAL_ASSERTION'
Mar 15 19:28:34 reServer audiobookshelf[1665003]: }
Mar 15 19:28:34 reServer audiobookshelf[1665003]:
Mar 15 19:28:34 reServer audiobookshelf[1665003]: Node.js v20.11.1

Steps to reproduce the issue

I can't publicly share the OPML, but it's an export from antennapod and it looks fine to me.

Audiobookshelf version

v2.8.0

How are you running audiobookshelf?

Docker

Originally created by @AeliusSaionji on GitHub (Mar 16, 2024). ### Describe the issue ```log Mar 15 19:28:34 reServer audiobookshelf[1665003]: [2024-03-15 23:28:34.527] FATAL: [Server] Uncaught exception origin: uncaughtException, error: Error [ERR_INTERNAL_ASSERTION]: This is caused by either a bug in Node.js or incorrect usage of Node.js internals. Mar 15 19:28:34 reServer audiobookshelf[1665003]: Please open an issue with this stack trace at https://github.com/nodejs/node/issues Mar 15 19:28:34 reServer audiobookshelf[1665003]: Mar 15 19:28:34 reServer audiobookshelf[1665003]: at assert (node:internal/assert:14:11) Mar 15 19:28:34 reServer audiobookshelf[1665003]: at internalConnect (node:net:1037:3) Mar 15 19:28:34 reServer audiobookshelf[1665003]: at defaultTriggerAsyncIdScope (node:internal/async_hooks:464:18) Mar 15 19:28:34 reServer audiobookshelf[1665003]: at GetAddrInfoReqWrap.emitLookup [as callback] (node:net:1481:9) Mar 15 19:28:34 reServer audiobookshelf[1665003]: at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:130:8) { Mar 15 19:28:34 reServer audiobookshelf[1665003]: code: 'ERR_INTERNAL_ASSERTION' Mar 15 19:28:34 reServer audiobookshelf[1665003]: } (Server.js:160) Mar 15 19:28:34 reServer audiobookshelf[1665003]: node:internal/assert:14 Mar 15 19:28:34 reServer audiobookshelf[1665003]: throw new ERR_INTERNAL_ASSERTION(message); Mar 15 19:28:34 reServer audiobookshelf[1665003]: ^ Mar 15 19:28:34 reServer audiobookshelf[1665003]: Mar 15 19:28:34 reServer audiobookshelf[1665003]: Error [ERR_INTERNAL_ASSERTION]: This is caused by either a bug in Node.js or incorrect usage of Node.js internals. Mar 15 19:28:34 reServer audiobookshelf[1665003]: Please open an issue with this stack trace at https://github.com/nodejs/node/issues Mar 15 19:28:34 reServer audiobookshelf[1665003]: Mar 15 19:28:34 reServer audiobookshelf[1665003]: at assert (node:internal/assert:14:11) Mar 15 19:28:34 reServer audiobookshelf[1665003]: at internalConnect (node:net:1037:3) Mar 15 19:28:34 reServer audiobookshelf[1665003]: at defaultTriggerAsyncIdScope (node:internal/async_hooks:464:18) Mar 15 19:28:34 reServer audiobookshelf[1665003]: at GetAddrInfoReqWrap.emitLookup [as callback] (node:net:1481:9) Mar 15 19:28:34 reServer audiobookshelf[1665003]: at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:130:8) { Mar 15 19:28:34 reServer audiobookshelf[1665003]: code: 'ERR_INTERNAL_ASSERTION' Mar 15 19:28:34 reServer audiobookshelf[1665003]: } Mar 15 19:28:34 reServer audiobookshelf[1665003]: Mar 15 19:28:34 reServer audiobookshelf[1665003]: Node.js v20.11.1 ``` ### Steps to reproduce the issue I can't publicly share the OPML, but it's an export from antennapod and it looks fine to me. ### Audiobookshelf version v2.8.0 ### How are you running audiobookshelf? Docker
adam added the bug label 2026-04-24 23:59:04 +02:00
adam closed this issue 2026-04-24 23:59:04 +02:00
Author
Owner

@AeliusSaionji commented on GitHub (Mar 16, 2024):

I found the issue. Ironically, the problem is caused by the opml containing rss feeds hosted by my audiobookshelf.

@AeliusSaionji commented on GitHub (Mar 16, 2024): I found the issue. Ironically, the problem is caused by the opml containing rss feeds hosted by my audiobookshelf.
Author
Owner

@advplyr commented on GitHub (Mar 16, 2024):

What do you mean hosted by your audiobookshelf? You are trying to import an OPML with feeds that are hosted on the same server you are importing?

@advplyr commented on GitHub (Mar 16, 2024): What do you mean hosted by your audiobookshelf? You are trying to import an OPML with feeds that are hosted on the same server you are importing?
Author
Owner

@advplyr commented on GitHub (Mar 16, 2024):

In searching that error I did find a recent node thread discussing a fix coming soon but I don't know if the error is the same since it's not giving us any information. https://github.com/nodejs/node/issues/47644

@advplyr commented on GitHub (Mar 16, 2024): In searching that error I did find a recent node thread discussing a fix coming soon but I don't know if the error is the same since it's not giving us any information. https://github.com/nodejs/node/issues/47644
Author
Owner

@ahunigel commented on GitHub (Mar 26, 2024):

Got the same error with v2.8.1 on docker container

<html><body>
<!--StartFragment-->
date | stream | content
-- | -- | --
2024/03/26 05:00:05 | stderr | Node.js v20.11.1
2024/03/26 05:00:05 | stderr |  
2024/03/26 05:00:05 | stderr | }
2024/03/26 05:00:05 | stderr | code: 'ERR_INTERNAL_ASSERTION'
2024/03/26 05:00:05 | stderr | at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:130:8) {
2024/03/26 05:00:05 | stderr | at GetAddrInfoReqWrap.emitLookup [as callback] (node:net:1481:9)
2024/03/26 05:00:05 | stderr | at defaultTriggerAsyncIdScope (node:internal/async_hooks:464:18)
2024/03/26 05:00:05 | stderr | at internalConnect (node:net:1037:3)
2024/03/26 05:00:05 | stderr | at assert (node:internal/assert:14:11)
2024/03/26 05:00:05 | stderr |  
2024/03/26 05:00:05 | stderr | Please open an issue with this stack trace at https://github.com/nodejs/node/issues
2024/03/26 05:00:05 | stderr | Error [ERR_INTERNAL_ASSERTION]: This is caused by either a bug in Node.js or incorrect usage of Node.js internals.
2024/03/26 05:00:05 | stderr |  
2024/03/26 05:00:05 | stderr | ^
2024/03/26 05:00:05 | stderr | throw new ERR_INTERNAL_ASSERTION(message);
2024/03/26 05:00:05 | stderr | node:internal/assert:14
2024/03/26 05:00:05 | stderr | } (Server.js:158)
2024/03/26 05:00:05 | stderr | code: 'ERR_INTERNAL_ASSERTION'
2024/03/26 05:00:05 | stderr | at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:130:8) {
2024/03/26 05:00:05 | stderr | at GetAddrInfoReqWrap.emitLookup [as callback] (node:net:1481:9)
2024/03/26 05:00:05 | stderr | at defaultTriggerAsyncIdScope (node:internal/async_hooks:464:18)
2024/03/26 05:00:05 | stderr | at internalConnect (node:net:1037:3)
2024/03/26 05:00:05 | stderr | at assert (node:internal/assert:14:11)
2024/03/26 05:00:05 | stderr |  
2024/03/26 05:00:05 | stderr | Please open an issue with this stack trace at https://github.com/nodejs/node/issues
2024/03/26 05:00:05 | stderr | [2024-03-25 21:00:05.723] FATAL: [Server] Uncaught exception origin: uncaughtException, error: Error [ERR_INTERNAL_ASSERTION]: This is caused by either a bug in Node.js or incorrect usage of Node.js internals.

<!--EndFragment-->
</body>
</html>

As a workaround, can I fall back to 2.7.x?

@ahunigel commented on GitHub (Mar 26, 2024): Got the same error with v2.8.1 on docker container ``` <html><body> <!--StartFragment--> date | stream | content -- | -- | -- 2024/03/26 05:00:05 | stderr | Node.js v20.11.1 2024/03/26 05:00:05 | stderr |   2024/03/26 05:00:05 | stderr | } 2024/03/26 05:00:05 | stderr | code: 'ERR_INTERNAL_ASSERTION' 2024/03/26 05:00:05 | stderr | at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:130:8) { 2024/03/26 05:00:05 | stderr | at GetAddrInfoReqWrap.emitLookup [as callback] (node:net:1481:9) 2024/03/26 05:00:05 | stderr | at defaultTriggerAsyncIdScope (node:internal/async_hooks:464:18) 2024/03/26 05:00:05 | stderr | at internalConnect (node:net:1037:3) 2024/03/26 05:00:05 | stderr | at assert (node:internal/assert:14:11) 2024/03/26 05:00:05 | stderr |   2024/03/26 05:00:05 | stderr | Please open an issue with this stack trace at https://github.com/nodejs/node/issues 2024/03/26 05:00:05 | stderr | Error [ERR_INTERNAL_ASSERTION]: This is caused by either a bug in Node.js or incorrect usage of Node.js internals. 2024/03/26 05:00:05 | stderr |   2024/03/26 05:00:05 | stderr | ^ 2024/03/26 05:00:05 | stderr | throw new ERR_INTERNAL_ASSERTION(message); 2024/03/26 05:00:05 | stderr | node:internal/assert:14 2024/03/26 05:00:05 | stderr | } (Server.js:158) 2024/03/26 05:00:05 | stderr | code: 'ERR_INTERNAL_ASSERTION' 2024/03/26 05:00:05 | stderr | at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:130:8) { 2024/03/26 05:00:05 | stderr | at GetAddrInfoReqWrap.emitLookup [as callback] (node:net:1481:9) 2024/03/26 05:00:05 | stderr | at defaultTriggerAsyncIdScope (node:internal/async_hooks:464:18) 2024/03/26 05:00:05 | stderr | at internalConnect (node:net:1037:3) 2024/03/26 05:00:05 | stderr | at assert (node:internal/assert:14:11) 2024/03/26 05:00:05 | stderr |   2024/03/26 05:00:05 | stderr | Please open an issue with this stack trace at https://github.com/nodejs/node/issues 2024/03/26 05:00:05 | stderr | [2024-03-25 21:00:05.723] FATAL: [Server] Uncaught exception origin: uncaughtException, error: Error [ERR_INTERNAL_ASSERTION]: This is caused by either a bug in Node.js or incorrect usage of Node.js internals. <!--EndFragment--> </body> </html> ``` As a workaround, can I fall back to 2.7.x?
Author
Owner

@ahunigel commented on GitHub (Apr 8, 2024):

Got the same error with v2.8.1 on docker container


<html><body>

<!--StartFragment-->

date | stream | content

-- | -- | --

2024/03/26 05:00:05 | stderr | Node.js v20.11.1

2024/03/26 05:00:05 | stderr |  

2024/03/26 05:00:05 | stderr | }

2024/03/26 05:00:05 | stderr | code: 'ERR_INTERNAL_ASSERTION'

2024/03/26 05:00:05 | stderr | at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:130:8) {

2024/03/26 05:00:05 | stderr | at GetAddrInfoReqWrap.emitLookup [as callback] (node:net:1481:9)

2024/03/26 05:00:05 | stderr | at defaultTriggerAsyncIdScope (node:internal/async_hooks:464:18)

2024/03/26 05:00:05 | stderr | at internalConnect (node:net:1037:3)

2024/03/26 05:00:05 | stderr | at assert (node:internal/assert:14:11)

2024/03/26 05:00:05 | stderr |  

2024/03/26 05:00:05 | stderr | Please open an issue with this stack trace at https://github.com/nodejs/node/issues

2024/03/26 05:00:05 | stderr | Error [ERR_INTERNAL_ASSERTION]: This is caused by either a bug in Node.js or incorrect usage of Node.js internals.

2024/03/26 05:00:05 | stderr |  

2024/03/26 05:00:05 | stderr | ^

2024/03/26 05:00:05 | stderr | throw new ERR_INTERNAL_ASSERTION(message);

2024/03/26 05:00:05 | stderr | node:internal/assert:14

2024/03/26 05:00:05 | stderr | } (Server.js:158)

2024/03/26 05:00:05 | stderr | code: 'ERR_INTERNAL_ASSERTION'

2024/03/26 05:00:05 | stderr | at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:130:8) {

2024/03/26 05:00:05 | stderr | at GetAddrInfoReqWrap.emitLookup [as callback] (node:net:1481:9)

2024/03/26 05:00:05 | stderr | at defaultTriggerAsyncIdScope (node:internal/async_hooks:464:18)

2024/03/26 05:00:05 | stderr | at internalConnect (node:net:1037:3)

2024/03/26 05:00:05 | stderr | at assert (node:internal/assert:14:11)

2024/03/26 05:00:05 | stderr |  

2024/03/26 05:00:05 | stderr | Please open an issue with this stack trace at https://github.com/nodejs/node/issues

2024/03/26 05:00:05 | stderr | [2024-03-25 21:00:05.723] FATAL: [Server] Uncaught exception origin: uncaughtException, error: Error [ERR_INTERNAL_ASSERTION]: This is caused by either a bug in Node.js or incorrect usage of Node.js internals.



<!--EndFragment-->

</body>

</html>

As a workaround, can I fall back to 2.7.x?

after roll back to 2.7.2, this issue didn't happen again.

@ahunigel commented on GitHub (Apr 8, 2024): > Got the same error with v2.8.1 on docker container > > > > ``` > > <html><body> > > <!--StartFragment--> > > date | stream | content > > -- | -- | -- > > 2024/03/26 05:00:05 | stderr | Node.js v20.11.1 > > 2024/03/26 05:00:05 | stderr |   > > 2024/03/26 05:00:05 | stderr | } > > 2024/03/26 05:00:05 | stderr | code: 'ERR_INTERNAL_ASSERTION' > > 2024/03/26 05:00:05 | stderr | at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:130:8) { > > 2024/03/26 05:00:05 | stderr | at GetAddrInfoReqWrap.emitLookup [as callback] (node:net:1481:9) > > 2024/03/26 05:00:05 | stderr | at defaultTriggerAsyncIdScope (node:internal/async_hooks:464:18) > > 2024/03/26 05:00:05 | stderr | at internalConnect (node:net:1037:3) > > 2024/03/26 05:00:05 | stderr | at assert (node:internal/assert:14:11) > > 2024/03/26 05:00:05 | stderr |   > > 2024/03/26 05:00:05 | stderr | Please open an issue with this stack trace at https://github.com/nodejs/node/issues > > 2024/03/26 05:00:05 | stderr | Error [ERR_INTERNAL_ASSERTION]: This is caused by either a bug in Node.js or incorrect usage of Node.js internals. > > 2024/03/26 05:00:05 | stderr |   > > 2024/03/26 05:00:05 | stderr | ^ > > 2024/03/26 05:00:05 | stderr | throw new ERR_INTERNAL_ASSERTION(message); > > 2024/03/26 05:00:05 | stderr | node:internal/assert:14 > > 2024/03/26 05:00:05 | stderr | } (Server.js:158) > > 2024/03/26 05:00:05 | stderr | code: 'ERR_INTERNAL_ASSERTION' > > 2024/03/26 05:00:05 | stderr | at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:130:8) { > > 2024/03/26 05:00:05 | stderr | at GetAddrInfoReqWrap.emitLookup [as callback] (node:net:1481:9) > > 2024/03/26 05:00:05 | stderr | at defaultTriggerAsyncIdScope (node:internal/async_hooks:464:18) > > 2024/03/26 05:00:05 | stderr | at internalConnect (node:net:1037:3) > > 2024/03/26 05:00:05 | stderr | at assert (node:internal/assert:14:11) > > 2024/03/26 05:00:05 | stderr |   > > 2024/03/26 05:00:05 | stderr | Please open an issue with this stack trace at https://github.com/nodejs/node/issues > > 2024/03/26 05:00:05 | stderr | [2024-03-25 21:00:05.723] FATAL: [Server] Uncaught exception origin: uncaughtException, error: Error [ERR_INTERNAL_ASSERTION]: This is caused by either a bug in Node.js or incorrect usage of Node.js internals. > > > > <!--EndFragment--> > > </body> > > </html> > > ``` > > > > As a workaround, can I fall back to 2.7.x? after roll back to 2.7.2, this issue didn't happen again.
Author
Owner

@advplyr commented on GitHub (May 20, 2024):

Is this still an issue on v2.9.0?

@advplyr commented on GitHub (May 20, 2024): Is this still an issue on v2.9.0?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#1816