killemov / Shift

A minimalistic approach to maximum control of your Transmission. (Web UI)
https://forum.transmissionbt.com/viewtopic.php?f=8&t=12555
263 stars 20 forks source link

Unable to upload torrent file #31

Open c1tyguide opened 2 weeks ago

c1tyguide commented 2 weeks ago

Trying upload torrent file nothing happens In console gets:

prototype.js:1737 

       POST http://192.168.xxx.xxx:9091/transmission/rpc 409 (Conflict)
request @ prototype.js:1737
initialize @ prototype.js:1702
(anonymous) @ prototype.js:447
klass @ prototype.js:80
doRequest @ shift.js:955
(anonymous) @ shift.js:6398
(anonymous) @ prototype.js:7299
fireEvent_DOM @ prototype.js:7158
fire @ prototype.js:7147
_methodized @ prototype.js:456
fireContentLoadedEvent @ prototype.js:7334
shift.js:776 Uncaught TypeError: Cannot read properties of undefined (reading 'length')
    at persistPath (shift.js:776:28)
    at HTMLButtonElement.<anonymous> (shift.js:5433:72)
    at HTMLButtonElement.<anonymous> (prototype.js:7283:15)
killemov commented 2 weeks ago

The 409 error is standard. See https://github.com/killemov/Shift/issues/30#issuecomment-2428835369

But it may have triggered an unwanted side-effect.

Do you get this error all the time when uploading? I just get the 409 every once in a while.

c1tyguide commented 1 week ago

Yes, it permanent. I using Version: 1.2 / 2.84 (14307) on NAS WD MyBook Live with Debian Jessie under chroot. And with any browsers: Chrome, Edge, Opera

killemov commented 3 days ago

@c1tyguide I could just add a check to verify settings.paths exists but that would be pointless if the entire settings object is empty. Can you add a breakpoint on line 776 and see if the settings object has any data at all at that moment? If that is the case can you navigate to [Session] -> [Shift], push [Scrape Paths] and then push [Apply]? And then test again?

This issue could be related to #30.