{"action":"created","issue":{"url":"https://api.github.com/repos/potatolondon/djangae/issues/135","labels_url":"https://api.github.com/repos/potatolondon/djangae/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/potatolondon/djangae/issues/135/comments","events_url":"https://api.github.com/repos/potatolondon/djangae/issues/135/events","html_url":"https://github.com/potatolondon/djangae/issues/135","id":51546278,"number":135,"title":"The `validate_certificate` argument is passed in as positional and named parameter to `urlfetch.make_fetch_call` due to our decorator adding the named one.","user":{"login":"armirusco","id":1255322,"avatar_url":"https://avatars.githubusercontent.com/u/1255322?v=3","gravatar_id":"","url":"https://api.github.com/users/armirusco","html_url":"https://github.com/armirusco","followers_url":"https://api.github.com/users/armirusco/followers","following_url":"https://api.github.com/users/armirusco/following{/other_user}","gists_url":"https://api.github.com/users/armirusco/gists{/gist_id}","starred_url":"https://api.github.com/users/armirusco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/armirusco/subscriptions","organizations_url":"https://api.github.com/users/armirusco/orgs","repos_url":"https://api.github.com/users/armirusco/repos","events_url":"https://api.github.com/users/armirusco/events{/privacy}","received_events_url":"https://api.github.com/users/armirusco/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-12-10T11:14:37Z","updated_at":"2015-01-15T10:20:18Z","closed_at":"2015-01-15T10:20:18Z","body":"Basically, we decorate `urlfetch.make_fetch_call` in here: https://github.com/potatolondon/djangae/blob/master/djangae/contrib/security/middleware.py#L100 \r\n\r\nNow, when using the patched `urlfetch.fetch`, App Engine will pass `validate_certificate` along to `urlfetch.make_fetch_call` as a positional argument. Djangae's decorator adds `validate_certificate` as a keyword argument which means we end up with the same argument being passed in twice and Python getting annoyed. :( \r\n\r\nHope that all makes sense, otherwise, please shout! "},"comment":{"url":"https://api.github.com/repos/potatolondon/djangae/issues/comments/70065567","html_url":"https://github.com/potatolondon/djangae/issues/135#issuecomment-70065567","issue_url":"https://api.github.com/repos/potatolondon/djangae/issues/135","id":70065567,"user":{"login":"adamalton","id":270255,"avatar_url":"https://avatars.githubusercontent.com/u/270255?v=3","gravatar_id":"","url":"https://api.github.com/users/adamalton","html_url":"https://github.com/adamalton","followers_url":"https://api.github.com/users/adamalton/followers","following_url":"https://api.github.com/users/adamalton/following{/other_user}","gists_url":"https://api.github.com/users/adamalton/gists{/gist_id}","starred_url":"https://api.github.com/users/adamalton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamalton/subscriptions","organizations_url":"https://api.github.com/users/adamalton/orgs","repos_url":"https://api.github.com/users/adamalton/repos","events_url":"https://api.github.com/users/adamalton/events{/privacy}","received_events_url":"https://api.github.com/users/adamalton/received_events","type":"User","site_admin":false},"created_at":"2015-01-15T10:20:18Z","updated_at":"2015-01-15T10:20:18Z","body":"Yeah, I reverted the code which caused this issue.  Closing."}}