My favorites | Sign in
Project Home Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 3695: Strange behaviour of Issue Tracker API
5 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by justin.forest, Mar 9, 2010
I am trying to update issues with a PHP script. I authenticate using 
ClientLogin API, then post an <entry>. The issue is successfully updated, 
but instead of "200 OK" I get a "401 Invalid token" message.

I never worked with GData or ClientLogin before, so I might be doing 
something wrong, but I find it strange that the server performs the task but 
complains about the token.

PHP source code: http://pastebin.com/TZLQCdHF

Sample output:

$ php -f tracker.php molinos-cms justin.forest 3
> https://code.google.com/feeds/issues/p/molinos-cms/issues/3/comments/full
<?xml version='1.0' encoding='UTF-8'?>
<entry xmlns='http://www.w3.org/2005/Atom' 
xmlns:issues='http://schemas.google.com/projecthosting/issues/2009'>
<content type='html'>a scripted message</content>
<author><name>justin.forest</name></author>
<issues:updates>
</issues:updates>
</entry>

Warning: file_get_contents(https://code.google.com/feeds/issues/p/molinos-
cms/issues/3/comments/full): failed to open stream: HTTP request failed! 
HTTP/1.0 401 Token invalid
 in /home/hex/src/tracker.php on line 139
< Response:
$ 

Sign in to add a comment

Powered by Google Project Hosting