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

Sync breaks with TypeError: 'builtin_function_or_method' object is not subscriptable #2285

Closed
bugzilla-to-github opened this issue Apr 7, 2021 · 3 comments · Fixed by #3312
Labels
bug P3 Default, possibly shipping in the following two quarters sync

Comments

@bugzilla-to-github
Copy link
Collaborator

This issue was created automatically by a script.

Bug 1703748

Bug Reporter: @mathjazz

Traceback (most recent call last):
  File "/app/.heroku/python/lib/python3.8/site-packages/celery/app/trace.py", line 385, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/app/.heroku/python/lib/python3.8/site-packages/newrelic/hooks/application_celery.py", line 84, in wrapper
    return wrapped(*args, **kwargs)
  File "/app/.heroku/python/lib/python3.8/site-packages/celery/app/trace.py", line 648, in __protected_call__
    return self.run(*args, **kwargs)
  File "/app/pontoon/sync/core.py", line 68, in wrapped_func
    return func(self, *args, **kwargs)
  File "/app/pontoon/sync/tasks.py", line 101, in sync_project
    sync_translations(
  File "/app/pontoon/sync/tasks.py", line 336, in sync_translations
    new_locales.append[locale.pk]
TypeError: 'builtin_function_or_method' object is not subscriptable
@bugzilla-to-github
Copy link
Collaborator Author

Comment Author: GitHub Bugzilla PR Linker <pulgasaur@mozilla.bugs>

Created attachment 9214321
Link to GitHub pull-request: #1914

Attached file: file_611289612.txt (text/x-github-pull-request, 44 bytes)
Description: Link to GitHub pull-request: #1914

@mathjazz mathjazz added P3 Default, possibly shipping in the following two quarters and removed P1 Must be fixed immediately, drop any other work labels Oct 18, 2021
@mathjazz mathjazz added the sync label Nov 10, 2021
@mathjazz mathjazz changed the title [sync] Sync breaks with TypeError: 'builtin_function_or_method' object is not subscriptable Sync breaks with TypeError: 'builtin_function_or_method' object is not subscriptable Nov 10, 2021
@mathjazz mathjazz moved this to 🔖 Ready in Pontoon Roadmap Feb 28, 2023
@mathjazz mathjazz removed their assignment Feb 28, 2023
@potat0
Copy link
Contributor

potat0 commented Jan 28, 2024

This was already fixed in #1914 ?

@mathjazz
Copy link
Collaborator

Indeed. See the comment in the PR, though:

I'll keep the bug open to increase test coverage and catch the error early.

@mathjazz mathjazz moved this to Error Recovery in Pontoon Sync reliability Apr 4, 2024
@eemeli eemeli mentioned this issue Nov 27, 2024
@github-project-automation github-project-automation bot moved this from 🔖 Ready to ✅ Done in Pontoon Roadmap Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug P3 Default, possibly shipping in the following two quarters sync
Projects
Archived in project
Status: Error Recovery
Development

Successfully merging a pull request may close this issue.

3 participants