From 3fff6ecccd8cc99a8ec791676c56ca6aa7728c41 Mon Sep 17 00:00:00 2001 From: Sameera Wickramasekara Date: Thu, 7 Sep 2017 17:15:08 +0530 Subject: [PATCH] Fixes wso2/product-iots/#1338 --- .../src/main/resources/agent/src/token_updater.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/device-types-feature/raspberrypi-plugin-feature/org.wso2.carbon.device.mgt.iot.raspberrypi.backend.feature/src/main/resources/agent/src/token_updater.py b/features/device-types-feature/raspberrypi-plugin-feature/org.wso2.carbon.device.mgt.iot.raspberrypi.backend.feature/src/main/resources/agent/src/token_updater.py index bd08ce2666..d58b4186b1 100644 --- a/features/device-types-feature/raspberrypi-plugin-feature/org.wso2.carbon.device.mgt.iot.raspberrypi.backend.feature/src/main/resources/agent/src/token_updater.py +++ b/features/device-types-feature/raspberrypi-plugin-feature/org.wso2.carbon.device.mgt.iot.raspberrypi.backend.feature/src/main/resources/agent/src/token_updater.py @@ -48,6 +48,6 @@ class RefreshToken(): params = urllib.urlencode({"grant_type": "refresh_token", "refresh_token": refreshToken, "scope": "Enroll device"}) data = self.post("/token", params, applicationKey) - response = json.loads(data) + response = json.loads(data.content) self.updateFile(response) return response \ No newline at end of file