Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't connect #4

Closed
GoogleCodeExporter opened this issue Mar 25, 2015 · 2 comments
Closed

can't connect #4

GoogleCodeExporter opened this issue Mar 25, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

lol sure thing.

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

  • Changed state: Invalid
  • Added labels: ****
  • Removed labels: Priority-Medium

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant