We worked on this through the support channel, but I wanted to update
the group.

Although we were not able to reproduce the issue, there is potentially
still an issue with DeleteNickname followed by a CreateNickname.

To workaround this issue, code around the delete/create sequence when
alternatives exist.  For example, if you are syncing nicknames, only
delete/create when the nickname has changed.  And add some error
handling to verify that the operation is successful even if a
EntityDoesNotExist error is sporadically thrown.

-alex

On Nov 6 2007, 12:55 am, Wout <[EMAIL PROTECTED]> wrote:
> Hi Alex,
>
> There were 39 errors in 100 runs. That is consistent with earlier
> experiences.
>
> As for the code snippet. The code posted is code I wrote to reproduce
> the problem. The synchronization code is a larger program and I wanted
> to present you with the minimal code needed to reproduce the error.
>
> And yes, we're synchronizing LDAP aliases to Google nicknames. My
> posted code calls RetrieveNicknames (plural) before and after
> DeleteNickname and CreateNickname. Is there any particular reason to
> call RetrieveNickname as well?
>
> > If it's keeping you from progressing, can you log and quell the
> > AppsForYourDomainException when it's error code 1301?  e.g.
>
> I could do that but that would introduce a new (potential) problem. If
> I try to create a nickname for a user that does *not* exist, I get
> error 1301:
>
> Traceback (most recent call last):
>   File "./bug_nickname_small.py-new", line 13, in ?
>     service.CreateNickname('nonsense', 'no.nonsense')
>   File "/usr/lib/python2.3/site-packages/gdata/apps/service.py", line
> 282, in CreateNickname
>     raise AppsForYourDomainException(e.args[0])
> gdata.apps.service.AppsForYourDomainException: {'status': 400, 'body':
> '<?xml version="1.0" encoding="UTF-8"?>\r\n<AppsForYourDomainErrors>\r
> \n  <error errorCode="1301" invalidInput=""
> reason="EntityDoesNotExist" />\r\n</AppsForYourDomainErrors>\r\n\r\n',
> 'reason': 'Bad Request'}
>
> This error was caused by calling:
>   service.CreateNickname('nonsense', 'no.nonsense')
>
> NOTE: this error is *exactly* the same error as I get when the bug
> strikes.
>
> Wout
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Apps APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to