ytmdesktop / ytmdesktop

A Desktop App for YouTube Music

Home Page:https://ytmdesktop.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

macOS app crashes when enabling Last.fm scrobbling

erhhung opened this issue · comments

Consent

  • I verified that there is no open/closed issue for the same subject.
  • I understand that YTMDesktop have NO affiliation with Google or YouTube

Current Behavior

On a fresh install of the macOS app, not yet signed into YouTube, I opened the settings dialog and enabled Last.fm scrobbling, which launched browser page to connect the app to my Last.fm account.

Although I authorized the app connection, YTMDesktop did not appear in my Last.fm list of connected apps. The setting for Last.fm scrobbling is showing as enabled with "User is Authenticated: No", however.

I then toggled the scrobbling option by disabling and re-enabling, upon which the app immediately crashed:

YouTube Music Desktop App Crashed

Environment Details:
    YouTube Music Desktop App 2.0.5
    Electron 29.0.1
    macOS 14

Name: TypeError
Message: fetch failed
Cause: AggregateError

TypeError: fetch failed
    at Object.fetch (node:internal/deps/undici/undici:12293:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async t.default.getSession (/Applications/YouTube Music Desktop App.app/Contents/Resources/app.asar/.webpack/main/index.js:8:452429)

Upon relaunching the app, I first signed into YouTube, and then re-enabled scrobbling. After authorizing the app connection from the launched browser page, all seems to be working with the setting showing "User is Authenticated: Yes".

So, it seems that, unless the user signs into YouTube first, (repeated?) enabling of Last.fm scrobbling doesn't work.

Expected Behavior

The app should never crash...

Steps To Reproduce

See steps described above.

YTMDesktop

v2.0.5

OS

macOS

OS Version

14.4.1

Arch

x64

Installation way

Homebrew

Anything else?

No response