Skip to content

Commit 8cc6e57

Browse files
committed
Use decoded json for serverless payload values.
1 parent 7a03190 commit 8cc6e57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

newrelic/common/agent_http.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ class DeveloperModeClient(SupportabilityMixin, BaseClient):
571571
u"error_beacon": u"fake-jserror.newrelic.com",
572572
u"apdex_t": 0.5,
573573
u"encoding_key": u"1111111111111111111111111111111111111111",
574-
u'entity_guid': u'DEVELOPERMODEENTITYGUID',
574+
u"entity_guid": u"DEVELOPERMODEENTITYGUID",
575575
u"agent_run_id": u"1234567",
576576
u"product_level": 50,
577577
u"trusted_account_ids": [12345],
@@ -653,7 +653,7 @@ def send_request(
653653

654654
if result[0] == 200:
655655
agent_method = params["method"]
656-
self.payload[agent_method] = payload
656+
self.payload[agent_method] = json_decode(payload.decode("utf-8"))
657657

658658
return result
659659

0 commit comments

Comments
 (0)