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

fix: resolved edx.course.goal.email.filtered parsing error #36059

Merged
merged 1 commit into from
Dec 26, 2024

Conversation

AhtishamShahid
Copy link
Contributor

Description

resolved edx.course.goal.email.filtered parsing error

Dec 26 07:58:03 ip-10-2-71-188 [service_variant=lms][eventtracking.backends.routing][env:prod-edx-edxapp] ERROR [ip-10-2-71-188  2106019] [user 61714135] [ip 127.0.0.1] [routing.py:146] - Unable to send edx event "edx.course.goal.email.filtered" to backend: logger
Traceback (most recent call last):
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.11/site-packages/eventtracking/backends/routing.py", line 137, in send_to_backends
    backend.send(event)
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.11/site-packages/eventtracking/backends/logger.py", line 36, in send
    event_str = json.dumps(event, cls=DateTimeJSONEncoder)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/__init__.py", line 238, in dumps
    **kw).encode(obj)
          ^^^^^^^^^^^
  File "/usr/lib/python3.11/json/encoder.py", line 200, in encode
    chunks = self.iterencode(o, _one_shot=True)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/encoder.py", line 258, in iterencode
    return _iterencode(o, 0)
           ^^^^^^^^^^^^^^^^^
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.11/site-packages/eventtracking/backends/logger.py", line 65, in default
    return super().default(obj)
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/encoder.py", line 180, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type UTC is not JSON serializable

@AhtishamShahid AhtishamShahid merged commit 953140a into master Dec 26, 2024
49 checks passed
@AhtishamShahid AhtishamShahid deleted the ahtisham/fix-goal-reminder-event branch December 26, 2024 09:34
@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production.

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

Successfully merging this pull request may close these issues.

4 participants