Skip to content
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

Does not work in Bun #257

Open
bboynton97 opened this issue Oct 6, 2023 · 2 comments
Open

Does not work in Bun #257

bboynton97 opened this issue Oct 6, 2023 · 2 comments

Comments

@bboynton97
Copy link

bboynton97 commented Oct 6, 2023

I'm using this package with Node no problem. I'm currently trying to migrate to Bun and when using it as a js runtime, rss-parser fails.

646 |     if (parser.trackPosition) {
647 |       er += '\nLine: ' + parser.line +
648 |         '\nColumn: ' + parser.column +
649 |         '\nChar: ' + parser.c
650 |     }
651 |     er = new Error(er)
             ^
error: Non-whitespace before first tag.
Line: 0
Column: 1
Char: ߋ
      at error (/Users/braelynboynton/Developer/shopwithus/services/api/node_modules/sax/lib/sax.js:651:9)
      at strictFail (/Users/braelynboynton/Developer/shopwithus/services/api/node_modules/sax/lib/sax.js:677:6)
      at beginWhiteSpace (/Users/braelynboynton/Developer/shopwithus/services/api/node_modules/sax/lib/sax.js:951:6)
      at write (/Users/braelynboynton/Developer/shopwithus/services/api/node_modules/sax/lib/sax.js:1006:10)
      at /Users/braelynboynton/Developer/shopwithus/services/api/node_modules/xml2js/lib/parser.js:323:15
      at /Users/braelynboynton/Developer/shopwithus/services/api/node_modules/xml2js/lib/parser.js:5:55
      at /Users/braelynboynton/Developer/shopwithus/services/api/node_modules/rss-parser/lib/parser.js:33:6
      at new Promise (:1:20)
      at parseString (/Users/braelynboynton/Developer/shopwithus/services/api/node_modules/rss-parser/lib/parser.js:32:15)
      at /Users/braelynboynton/Developer/shopwithus/services/api/node_modules/rss-parser/lib/parser.js:96:17
      at endReadableNT (node:stream:2387:52)
      at processTicksAndRejections (:1:2602)
⚡️[job]: No episodes ready to link

@emilianomon
Copy link

Same issue here.

@muhrifqii
Copy link

have you found any solution or workaround for this? @bboynton97 @emilianomon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants