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

Error when trying to convert GP5 to MIDI #16

Closed
AdamSEY opened this issue Mar 14, 2023 · 3 comments
Closed

Error when trying to convert GP5 to MIDI #16

AdamSEY opened this issue Mar 14, 2023 · 3 comments
Labels
invalid This doesn't seem right

Comments

@AdamSEY
Copy link

AdamSEY commented Mar 14, 2023

npx dl-librescore@latest -i /home/ubuntu/guitarpro-converter/temp/file_name.gp5 -o /home/ubuntu/guitarpro-converter/temp/dd.midi -t midi -v

ℹ File loaded
⠁ Processing…node:internal/deps/undici/undici:11413
    Error.captureStackTrace(err, this);
          ^

TypeError: Failed to parse URL from /home/ubuntu/.npm/_npx/47461c73a56e4a1f/node_modules/webmscore/webmscore.lib.wasm
    at Object.fetch (node:internal/deps/undici/undici:11413:11) {
  [cause]: TypeError [ERR_INVALID_URL]: Invalid URL
      at new NodeError (node:internal/errors:399:5)
      at URL.onParseError (node:internal/url:566:9)
      at new URL (node:internal/url:646:5)
      at new Request (node:internal/deps/undici/undici:7002:25)
      at fetch2 (node:internal/deps/undici/undici:10554:25)
      at Object.fetch (node:internal/deps/undici/undici:11411:18)
      at fetch (node:internal/process/pre_execution:230:25)
      at instantiateAsync (/home/ubuntu/.npm/_npx/47461c73a56e4a1f/node_modules/webmscore/webmscore.nodejs.cjs:60:53226)
      at createWasm (/home/ubuntu/.npm/_npx/47461c73a56e4a1f/node_modules/webmscore/webmscore.nodejs.cjs:60:53835)
      at /home/ubuntu/.npm/_npx/47461c73a56e4a1f/node_modules/webmscore/webmscore.nodejs.cjs:60:266911 {
    input: '/home/ubuntu/.npm/_npx/47461c73a56e4a1f/node_modules/webmscore/webmscore.lib.wasm',
    code: 'ERR_INVALID_URL'
  }
}

Node.js v18.15.0
@sealsrock12
Copy link
Contributor

sealsrock12 commented Mar 25, 2023

We only support MSCZ files for conversion, not GP files.

@sealsrock12 sealsrock12 added the invalid This doesn't seem right label Mar 26, 2023
@sealsrock12 sealsrock12 changed the title TypeError: Failed to parse URL from /home/ubuntu/.npm/_npx/47461c73a56e4a1f/node_modules/webmscore/webmscore.lib.wasm Error when trying to convert GP5 to MIDI Mar 26, 2023
@sealsrock12 sealsrock12 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 26, 2023
@Xmader
Copy link
Member

Xmader commented Mar 27, 2023

I believe there's a separate problem.
Reopened as LibreScore/webmscore#10

Node.js 18 added a few browser-compatible APIs, so webmscore could no longer properly detect if it's running in a Node.js environment or browser environment.

@PeterNjeim
Copy link
Member

PeterNjeim commented Apr 19, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

4 participants