Skip to content

Commit

Permalink
Use decoded json for serverless payload values.
Browse files Browse the repository at this point in the history
  • Loading branch information
a-feld committed Aug 24, 2020
1 parent 7a03190 commit 8cc6e57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions newrelic/common/agent_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ class DeveloperModeClient(SupportabilityMixin, BaseClient):
u"error_beacon": u"fake-jserror.newrelic.com",
u"apdex_t": 0.5,
u"encoding_key": u"1111111111111111111111111111111111111111",
u'entity_guid': u'DEVELOPERMODEENTITYGUID',
u"entity_guid": u"DEVELOPERMODEENTITYGUID",
u"agent_run_id": u"1234567",
u"product_level": 50,
u"trusted_account_ids": [12345],
Expand Down Expand Up @@ -653,7 +653,7 @@ def send_request(

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

return result

Expand Down

0 comments on commit 8cc6e57

Please sign in to comment.