Skip to content

Commit

Permalink
Fix for ORJSON API difference
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroCool2u committed Jun 17, 2023
1 parent ae28718 commit 6330bbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def create_fact_task(task: dict, target_phone: str, target_name: str, fact_type:
'task_queue_size': task_queue_size}

# The API expects a payload of type bytes.
converted_payload = dumps(payload).encode()
converted_payload = dumps(payload)

# Add the payload to the request.
task['app_engine_http_request']['body'] = converted_payload
Expand Down

0 comments on commit 6330bbf

Please sign in to comment.