iQbit icon indicating copy to clipboard operation
iQbit copied to clipboard

qbt 5 compatibility

Open benfishbus opened this issue 1 year ago • 14 comments

Is anyone else running this with qbt 5.0 as a separate server? When I login to iQbit, I see a flash of UI then total black screen. My qbt 5.0 is using the (new) default webui. Sorry if this is already addressed somewhere and I missed it...

benfishbus avatar Oct 17 '24 05:10 benfishbus

Yeah, I have the same issue

espiox avatar Oct 17 '24 05:10 espiox

I should add, my phone is on iOS 18, and I'm using Firefox. I just signed in from Firefox on Windows, and iQbit displays correctly.

benfishbus avatar Oct 17 '24 13:10 benfishbus

Occurs in Safari and Chrome for iOS too. Switching off dark mode made no difference. And I confirmed my similarly set up qbt 4.x instance still displays properly through iQbit. Viewed directly on iPhone, qbt 5.0 webui displays as well as can be expected - not a black screen but still not mobile friendly. Anyway, seems like something going wrong between iQbit and webui 5.0.

benfishbus avatar Oct 18 '24 04:10 benfishbus

Im planning on taking a look today! Should be some api call that got updated

ntoporcov avatar Oct 18 '24 12:10 ntoporcov

I wasn't able to repro but a I did notice that the UI seems to be getting hung up at some point, and while that was happening the UI also fails to respond (API calls stay pending). If you're on the nox version, I imagine that would be hard to notice maybe :/

Best solution might be to downgrade :/

ntoporcov avatar Oct 18 '24 13:10 ntoporcov

Bummer! Will you be reporting that as a qb issue? I don't think I've experienced that while using the 5.0 webui directly.

benfishbus avatar Oct 20 '24 19:10 benfishbus

Not sure what changed, but I'm no longer experiencing this problem.

benfishbus avatar Oct 28 '24 11:10 benfishbus

Currently having the same issue, and my console has spouted the following error:

TypeError: Cannot read properties of undefined (reading 'short')
    at II (TorrentBox.tsx:319:57)

which does seem to correlate with the following line: https://github.com/ntoporcov/iQbit/blob/9ae14637955bfa95889c6f767b97300382e43e0c/src/components/TorrentBox.tsx#L319

I can provide more information if required.

qBit version: v5.0.0 iQbit version: 9ae14637955bfa95889c6f767b97300382e43e0c

breadbyte avatar Oct 29 '24 19:10 breadbyte

Same issue, can help with logs if required.

Lemagex avatar Nov 07 '24 23:11 Lemagex

Well, I don't know the iQbit or qB api well enough to make a real fix, but if you wanna temp fix:

  • open iQbit/release/public/static/js/main.b4c1c017.js
  • search for children:kT[t.state].short (it's about 75% to the end of the file)
  • replace it with: children:kT?.[t.state]?.short || 'Unknown'
  • save and reload the page

For me the iQbit ui works, although is a little sluggish and occasionally has additional JS errors that crash the page

If you're building from the source files you can...

  • open iQbit/src/components/TorrentBox.tsx
  • find this line: <span>{stateDictionary[torrentData.state].short}</span>
  • change it to: <span>{stateDictionary?.[torrentData.state]?.short || 'Unknown state'}</span>
  • then rebuild

brandonjp avatar Nov 13 '24 22:11 brandonjp

The above has been fixed and pushed up.

ntoporcov avatar Dec 07 '24 03:12 ntoporcov

@ntoporcov Hello, Where has it been pushed up ? The last commit is from 9 months ago. thks

imTHAI avatar Dec 07 '24 12:12 imTHAI

Haha what the hell, I thought I did.. I'll check in a little bit

ntoporcov avatar Dec 07 '24 12:12 ntoporcov

Now it is!

ntoporcov avatar Dec 07 '24 12:12 ntoporcov