Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

retry google api calls #27

Open
escapewindow opened this issue Apr 27, 2017 · 0 comments
Open

retry google api calls #27

escapewindow opened this issue Apr 27, 2017 · 0 comments

Comments

@escapewindow
Copy link
Contributor

It looks like we hit an intermittent error when running pushapk for 53.0.1. Retrying the task worked, but it might make sense to put in a retry in mozapkpublisher.

2017-04-27 19:15:04,779 - mozapkpublisher.googleplay - INFO - What's new listing for ("pl-PL", "2015484972") has been updated to: "* Obsługa języków pisanych od prawej do lewej"
2017-04-27 19:15:04,780 - mozapkpublisher.googleplay - DEBUG - Apk listing response: {'recentChanges': '* Obsługa języków pisanych od prawej do lewej', 'language': 'pl-PL'}
2017-04-27 19:15:04,782 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): l10n.mozilla-community.org
2017-04-27 19:15:05,759 - requests.packages.urllib3.connectionpool - DEBUG - https://l10n.mozilla-community.org:443 "GET /stores_l10n/api/v1/fx_android/translation/release/pt-BR/ HTTP/1.1" 200 3629
2017-04-27 19:15:05,763 - googleapiclient.discovery - INFO - URL being requested: PUT https://www.googleapis.com/androidpublisher/v2/applications/org.mozilla.firefox/edits/10046882899884944865/listings/pt-BR?alt=json
Traceback (most recent call last):
  File "/builds/scriptworker/bin/pushapkscript", line 9, in <module>
    load_entry_point('pushapkscript==0.3.2', 'console_scripts', 'pushapkscript')()
  File "/builds/scriptworker/lib/python3.5/site-packages/pushapkscript/script.py", line 85, in main
    loop.run_until_complete(async_main(context))
  File "/tools/python35/lib/python3.5/asyncio/base_events.py", line 387, in run_until_complete
    return future.result()
  File "/tools/python35/lib/python3.5/asyncio/futures.py", line 274, in result
    raise self._exception
  File "/tools/python35/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/builds/scriptworker/lib/python3.5/site-packages/pushapkscript/script.py", line 45, in async_main
    publish_to_googleplay(context, apks_per_architectures)
  File "/builds/scriptworker/lib/python3.5/site-packages/pushapkscript/googleplay.py", line 12, in publish_to_googleplay
    push_apk.run()
  File "/builds/scriptworker/lib/python3.5/site-packages/mozapkpublisher/push_apk.py", line 82, in run
    self.upload_apks(apks)
  File "/builds/scriptworker/lib/python3.5/site-packages/mozapkpublisher/push_apk.py", line 66, in upload_apks
    _update_or_create_all_locales(edit_service, release_channel, apk['version_code'])
  File "/builds/scriptworker/lib/python3.5/site-packages/mozapkpublisher/push_apk.py", line 97, in _update_or_create_all_locales
    title=translation.get('title'),
  File "/builds/scriptworker/lib/python3.5/site-packages/mozapkpublisher/googleplay.py", line 68, in _transaction_required
    return method(*args, **kwargs)
  File "/builds/scriptworker/lib/python3.5/site-packages/mozapkpublisher/googleplay.py", line 117, in update_listings
    editId=self._edit_id, packageName=self._package_name, language=language, body=body
  File "/builds/scriptworker/lib/python3.5/site-packages/oauth2client/util.py", line 137, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/builds/scriptworker/lib/python3.5/site-packages/googleapiclient/http.py", line 838, in execute
    raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: <HttpError 502 when requesting https://www.googleapis.com/androidpublisher/v2/applications/org.mozilla.firefox/edits/10046882899884944865/listings/pt-BR?alt=json returned "Bad Gateway">
exit code: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant