Skip to content

Conversation

@Mossop
Copy link
Member

@Mossop Mossop commented Jul 11, 2022

When creating a bug we embed the response of the bugzilla update_bugs
call into the repsonse. This contains a datetime instance which is not
serialisable by the default JSONResponse and so currently JBI throws
an internal server error back to Bugzilla which then repeats the
request a second time which is effectively ignored because by then the
bug has the see_also field set.

This switches to ORJSONResponse which can serialise datetime and a
few other types correctly.

When creating a bug we embed the response of the bugzilla update_bugs
call into the repsonse. This contains a datetime instance which is not
serialisable by the default JSONResponse and so currently JBI throws
an internal server error back to Bugzilla which then repeats the
request a second time which is effectively ignored because by then the
bug has the see_also field set.

This switches to ORJSONResponse which can serialise datetime and a
few other types correctly.
@Mossop Mossop requested a review from a team as a code owner July 11, 2022 12:40
@leplatrem leplatrem merged commit 68a2ff0 into mozilla:main Jul 11, 2022
@Mossop Mossop deleted the orjson branch July 11, 2022 13:20
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.

2 participants