hamedramzi / php-transmission-class

Automatically exported from code.google.com/p/php-transmission-class
0 stars 0 forks source link

can't connect #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm no longer able to connect to transmission for some unknown reason:

$ php tests.php 
[ERROR] Unable to connect to http://localhost:9091/transmission/rpc

~/.config/transmission-daemon/settings.json has:

"rpc-authentication-required": false,
"rpc-enabled": true,
"rpc-port": 9091,
"rpc-whitelist": "127.0.0.1",
"rpc-whitelist-enabled": true,

and transmission-remote works:

$ transmission-remote -b -l
posting:
--------
{"arguments":{"fields":["error","errorString","eta","id","isFinished","leftUntil
Done","name","peersGettingFromUs","peersSendingToUs","rateDownload","rateUpload"
,"sizeWhenDone","status","uploadRatio"]},"method":"torrent-get","tag":2}

--------
* Couldn't find host localhost in the .netrc file, using defaults
* About to connect() to localhost port 9091
*   Trying 127.0.0.1... * connected
* Connected to localhost (127.0.0.1) port 9091
> POST /transmission/rpc HTTP/1.1
User-Agent: transmission-remote/2.01 (10898)
Host: localhost:9091
Accept: */*
Accept-Encoding: deflate, gzip
Content-Length: 233
Content-Type: application/x-www-form-urlencoded

{"arguments":{"fields":["error","errorString","eta","id","isFinished","leftUntil
Done","name","peersGettingFromUs","peersSendingToUs","rateDownload","rateUpload"
,"sizeWhenDone","status","uploadRatio"]},"method":"torrent-get","tag":2}
< HTTP/1.1 409 Conflict
< Server: Transmission
< X-Transmission-Session-Id: dJO2nFr5lViQpp7QTESNZdiDAcpOgSzKG3rc3ftvwSgjPSQ6
< Date: Fri, 09 Jul 2010 02:39:05 GMT
< Content-Length: 580
< Content-Type: text/html; charset=ISO-8859-1
* Connection #0 to host localhost left intact
* Closing connection #0
posting:
--------
{"arguments":{"fields":["error","errorString","eta","id","isFinished","leftUntil
Done","name","peersGettingFromUs","peersSendingToUs","rateDownload","rateUpload"
,"sizeWhenDone","status","uploadRatio"]},"method":"torrent-get","tag":2}

--------
* Couldn't find host localhost in the .netrc file, using defaults
* About to connect() to localhost port 9091
*   Trying 127.0.0.1... * connected
* Connected to localhost (127.0.0.1) port 9091
> POST /transmission/rpc HTTP/1.1
User-Agent: transmission-remote/2.01 (10898)
Host: localhost:9091
Accept: */*
Accept-Encoding: deflate, gzip
X-Transmission-Session-Id: dJO2nFr5lViQpp7QTESNZdiDAcpOgSzKG3rc3ftvwSgjPSQ6
Content-Length: 233
Content-Type: application/x-www-form-urlencoded

{"arguments":{"fields":["error","errorString","eta","id","isFinished","leftUntil
Done","name","peersGettingFromUs","peersSendingToUs","rateDownload","rateUpload"
,"sizeWhenDone","status","uploadRatio"]},"method":"torrent-get","tag":2}
< HTTP/1.1 200 OK
< Server: Transmission
< Content-Type: application/json; charset=UTF-8
< Date: Fri, 09 Jul 2010 02:39:05 GMT
< Content-Length: 57
* Connection #0 to host localhost left intact
got response (len 57):
--------
{"arguments":{"torrents":[]},"result":"success","tag":2}

--------
ID     Done       Have  ETA           Up    Down  Ratio  Status       Name
Sum:              None               0.0     0.0
* Closing connection #0

Original issue reported on code.google.com by jo...@gormsby.com on 9 Jul 2010 at 2:41

GoogleCodeExporter commented 9 years ago
Oops, I turned off allow_url_fopen for paranoia reasons.  You can close this if 
you want.

Original comment by jo...@gormsby.com on 9 Jul 2010 at 3:13

GoogleCodeExporter commented 9 years ago
lol sure thing.

Original comment by brycied...@gmail.com on 10 Jul 2010 at 1:58