pymedusa / Medusa

Automatic Video Library Manager for TV Shows. It watches for new episodes of your favorite shows, and when they are posted it does its magic.
https://pymedusa.com
GNU General Public License v3.0
1.77k stars 275 forks source link

Medusa can't communicate with Transmission #9619

Closed tcamargo closed 3 years ago

tcamargo commented 3 years ago

Describe the bug Medusa can't RPC to transmission. I suspect it is something on Transmission 3.00 (CSRF protection). I get the same error if i try to connect to transmission rpc directly in a browser.

409: Conflict Your request had an invalid session-id header. To fix this, follow these steps: When reading a response, get its X-Transmission-Session-Id header and remember it Add the updated header to your outgoing requests When you get this 409 error message, resend your request with the updated header This requirement has been added to help prevent CSRF attacks. X-Transmission-Session-Id: VZjCBODmHwSZifbrPg7d2XUnXO2TXzCNAcgcVcyIl2FKKXec

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Torrent Search'
  2. Add transmission details
  3. Click on Test Connection

Expected behavior "Success. Connected and authenticated"

Screenshots

2021-06-08_09-37-55

Medusa (please complete the following information):

Debug logs (at least 50 lines): General > Advanced Settings > Enable debug

2021-06-08 09:32:37 DEBUG Thread_0 :: [] GET URL: http://transmission.discworld:9091/transmission/rpc [Status: 409] 2021-06-08 09:32:37 DEBUG Thread_0 :: [] User-Agent: Medusa/0.5.12 (Linux; 4.4.59+; 1607cb9e-c854-11eb-be8c-0242ac150002) 2021-06-08 09:32:37 DEBUG Thread_0 :: [] The response returned a non-200 response while requesting url http://transmission.discworld:9091/transmission/rpc Error: HTTPError('409 Client Error: Conflict for url: http://transmission.discworld:9091/transmission/rpc')

Additional context Migrating from Sickchill to Medusa. Same config works with Sickchill in a container.

p0psicles commented 3 years ago

Just verified with a docker version of transmission. We've fixed the issue in the develop branch.

tcamargo commented 3 years ago

Thx! Confirmed!

teocasse commented 3 years ago

Any plans on when this will be released to master?