Log for #openttdcoop.devzone on 21st July 2014:
Times are UTC Toggle Colours
00:23:19  *** yorick has quit IRC
04:17:31  *** Supercheese has quit IRC
05:20:01  *** Supercheese has joined #openttdcoop.devzone
06:25:42  *** Supercheese has quit IRC
06:52:34  *** andythenorth has joined #openttdcoop.devzone
08:10:16  *** andythenorth has quit IRC
10:50:56  *** yorick has joined #openttdcoop.devzone
11:12:54  *** oskari89 has joined #openttdcoop.devzone
11:50:13  *** oskari89 has quit IRC
13:23:32  *** LSky` has joined #openttdcoop.devzone
14:34:53  *** oskari89 has joined #openttdcoop.devzone
14:41:07  *** tycoondemon has quit IRC
14:41:07  *** oskari89 has quit IRC
14:41:07  *** Rubidium has quit IRC
14:41:07  *** orudge has quit IRC
14:41:07  *** Guest823 has quit IRC
14:46:38  *** oskari89 has joined #openttdcoop.devzone
14:46:38  *** tycoondemon has joined #openttdcoop.devzone
14:46:38  *** Rubidium has joined #openttdcoop.devzone
14:46:38  *** orudge has joined #openttdcoop.devzone
14:46:38  *** Guest823 has joined #openttdcoop.devzone
16:48:36  <DevZone> Project OpenGFX+ Airports build #34-push: SUCCESS in 45 sec:
16:50:05  <DevZone> Project 2ccts build #205-push: SUCCESS in 1 min 29 sec:
16:50:37  <DevZone> Project ecs build #60-push: SUCCESS in 32 sec:
16:51:01  <DevZone> Project xussrset - Trains from Russia build #359-push: SUCCESS in 3 min 33 sec:
17:14:04  *** Supercheese has joined #openttdcoop.devzone
17:20:13  *** yorick has quit IRC
17:42:42  *** frosch123 has joined #openttdcoop.devzone
18:11:04  *** andythenorth has joined #openttdcoop.devzone
18:28:53  *** yorick has joined #openttdcoop.devzone
18:33:06  *** ODM has joined #openttdcoop.devzone
19:16:48  <planetmaker> <-- I'm battling with request module of python
19:17:17  <andythenorth> ho ho
19:17:22  <planetmaker> I obtain an xml config and I want to post the same thing (slightly modified) to another URL. Yet I get a 400 (bad request) instead of the 200 I want to see
19:17:27  <andythenorth> so am I, in an entirely different context
19:18:14  <andythenorth> hmm it’s doing a post, not a get?
19:18:22  <andythenorth> so we can’t just dump it in the query string
19:18:45  <planetmaker> creation of a task is a post (it needs to get the config as xml)
19:18:46  <andythenorth> what’s it posting to?  (and does it have console output?)
19:19:11  <planetmaker> I can get the config of an existing task (that's what I do first (line 13)
19:19:24  <andythenorth> it’s fricking impossible to debug this stuff without seeing what the receiving app is complaining about
19:20:06  <planetmaker> hm, not sure I can teach jenkins to disclose that info
19:20:19  <planetmaker> but I shall look at that
19:20:48  <andythenorth> often you can start an app in foreground
19:20:52  <andythenorth> and then read the output
19:21:01  <andythenorth> or get it to dump to a log alternatively
19:21:02  <planetmaker> jenkins runs as service
19:21:09  <frosch123> planetmaker: does https work?
19:21:21  <frosch123> you can check with lynx or links or something
19:21:28  <andythenorth> anything in jenkins error log?
19:21:29  <frosch123> iirc https did not work on the eints vm
19:21:34  * andythenorth is reading jenkins docs
19:21:46  <planetmaker> hm, with http it's 405 instead of 400
19:23:58  <planetmaker> though FF returns with a page when I enter the https:// address: POST is required for jenkins.model.Jenkins.doCreateItem
19:24:42  <andythenorth> you’re passing auth creds, or have them in a cookie?
19:25:10  <planetmaker> I've defined them in a line which I didn't paste entirels. line 11
19:25:16  <planetmaker> *entirely
19:25:18  <andythenorth> better not pasted :P
19:25:22  * andythenorth has made that mistake
19:25:36  <frosch123> planetmaker: but what you are using is http-based authentication
19:25:37  <planetmaker> it's only my auth token. I can delete and re-generate that
19:25:40  <frosch123> does jenkins even do that?
19:26:08  <frosch123> you do not get a browser-based login window as for eints, do you?
19:26:09  <planetmaker> frosch123, the get reqeust in line 13 works fine
19:26:16  <planetmaker> that returns the thing I expect and want
19:26:25  <planetmaker> what fails is post request in line 24
19:27:33  <planetmaker> but ok, let's stick to http
19:27:56  <frosch123> <- maybe that is easier :)
19:27:57  <Webster> Title: pyjenkins 0.1.2 : Python Package Index (at
19:28:52  <planetmaker>  well... not necessarily. Especially as the python API always is several revs behind jenkins
19:29:13  <andythenorth> I can’t see any logs in jenkins web ui
19:29:15  <andythenorth> hmm
19:29:42  <frosch123> planetmaker: what happens if you remove the "auth=" from line 13?
19:29:45  <frosch123> does it still work?
19:30:35  <planetmaker> ah, I got the logs from jenkins. Thanks, andy
19:30:57  <andythenorth> debugging web service integration without logging is a fool’s errand
19:31:15  <andythenorth> I spent [too many] years posting from flash games to remote servers that were a black box
19:31:53  <planetmaker> frosch123, line 13 requires auth (as every api access should)
19:32:09  <frosch123> so, it really uses http-authentication?
19:32:13  <andythenorth> can’t be python syntax error, and your post looks valid compared to the tutorial I found
19:32:26  <frosch123> i wondered whether the auth wouldn't happen via the ?token
19:32:28  <planetmaker> anonymous misses Job/Create permission :D
19:32:54  <planetmaker> though I wonder why...
19:32:57  <andythenorth> logging ftw
19:33:43  <planetmaker> yeah, some andythenorth also accessed jenkins by pushing something which needs building
19:34:28  <andythenorth> really? :o
19:34:30  <andythenorth> shocking
19:34:48  <planetmaker> hm.. or was it you trying to access jenkins web interface? Maybe
19:36:36  <planetmaker> frosch123, the ?token=XXX is afaik only used for the job build call. The admin interface (which create job belongs to) would need user + token
20:31:27  *** ODM has quit IRC
20:51:24  *** LSky` has quit IRC
21:01:58  *** andythenorth has left #openttdcoop.devzone
21:52:05  *** frosch123 has quit IRC
22:55:08  *** oskari89 has quit IRC
23:52:36  *** yorick has quit IRC

Powered by YARRSTE version: svn-trunk