Skip to content

Commit d03e036

Browse files
authored
Merge pull request #72 from opsmill/pog-fix-playback
Fix broken SDK playback
2 parents 472d01c + 970ed71 commit d03e036

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

changelog/64.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix SDK playback hash generation to read the correct filename

infrahub_sdk/playback.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import json
12
from pathlib import Path
23
from typing import Any, Optional
34

@@ -44,7 +45,7 @@ def _read_request(
4445
) -> httpx.Response:
4546
content: Optional[bytes] = None
4647
if payload:
47-
content = str(ujson.dumps(payload)).encode("utf-8")
48+
content = str(json.dumps(payload)).encode("UTF-8")
4849
request = httpx.Request(method=method.value, url=url, headers=headers, content=content)
4950

5051
filename = generate_request_filename(request)

0 commit comments

Comments
 (0)