On Friday, April 22, 2016 at 11:13:12 AM UTC-7, Ihar Suvorau wrote:
>
> Hi, 
> I'm trying to connect to Trac with PyCharm Tasks Server.
>
> Trac is running on localhost:8000::
> tracd --port 8000 --auth="project,/path/to/digest,localhost" /path/to/env
>
>
> When I login with a browser I see tracd *GET* request:
> 127.0.0.1 - - [22/Apr/2016 20:53:43] "GET /project/login HTTP/1.1" 401 -
> 127.0.0.1 - - [22/Apr/2016 20:53:47] "GET /project/login HTTP/1.1" 302 -
> 127.0.0.1 - - [22/Apr/2016 20:53:47] "GET /project/ HTTP/1.1" 200 -
>
> Everything works fine.
>
>
> Using PyCharm Tasks Server setup and running test connection I see tracd 
> *POST* request:
> 127.0.0.1 - - [22/Apr/2016 20:54:46] "POST /project/login HTTP/1.0" 401 -
> 127.0.0.1 - - [22/Apr/2016 20:54:46] "POST /project/login HTTP/1.1" 303 -
>
>
> but PyCharm responds with an error:
>
> The server localhost failed to respond with a valid HTTP response
>
> PyCharm Tasks Server setup:
> Server URL: http://localhost:8000/project/login/
> Username: name
> Password: pass
> Search [default]: status!=closed&owner={username}&summary~={query}
>
>
> Does anybody know a solution?
>

I suspect you need to have XmlRpcPlugin (1) installed. When adding a new 
server to the configuration, the default path is /login/rpc. Trac doesn't 
have a handler for that path, but XmlRpcPlugin does.



<https://lh3.googleusercontent.com/-9TQH4bZvII8/VxwBXTVzOhI/AAAAAAAADCY/Mn1cZkEmZCosuD9eduk3OjrYfJOpvp3DwCLcB/s1600/Screen%2BShot%2B2016-04-23%2Bat%2B16.11.15.png>























Also, I haven't been able to establish a connection from PyCharm to 
trac.edgewall.org, but I've had success with trac-hacks.org, where we are 
running XmlRpcPlugin.

At the very least, PyCharm should document the requirements for adding Trac 
as a task server. I think it would be worthwhile to contact PyCharm support 
to ask, and if you do, please follow-up here to let us know what they tell 
you.

See also: (2) and (3)

- Ryan

(1) https://trac-hacks.org/wiki/XmlRpcPlugin
(2) https://groups.google.com/d/msg/trac-users/JLTaonAIE1Y/KuthpaHaP8oJ
(3) https://groups.google.com/d/msg/trac-dev/zSv8JWxk4Ko/dksH_HogZ0AJ

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to