HomeSoftware Heritage

api/serializers: Force json module use to decode requests text response

Description

api/serializers: Force json module use to decode requests text response

When the simplejson module is present in the Phython environment, requests will
use it to decode json but a call to response.json(cls=...) will raise an exception
as the arguments accepted by JSONDecoder are inconsistent between the standard library
json and simplejson (more details here: https://github.com/psf/requests/issues/4842).

So ensure to use standard json module for decoding response texts.

Details

Provenance
anlambertAuthored on Oct 25 2019, 2:04 PM
anlambertPushed on Oct 25 2019, 3:12 PM
Differential Revision
D2177: Force json module use to decode requests text response
Parents
rDCORE91910d963c3c: Move Click to base requirements
Branches
Unknown
Tags
Unknown
Build Status
Buildable 8638
Build 12561: test-and-buildJenkins