Skip to content

Commit 580f4cb

Browse files
committed
update changelog
1 parent 9ad5167 commit 580f4cb

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
### Unreleased changes
2+
<details>
3+
* bugfix: `lightbeam send` not writing >=7.2 API error messages when error payload does not contain `errors` nor `validationErrors`
4+
</details>
5+
16
### v0.1.9
27
<details>
38
<summary>Released 2025-09-26</summary>

lightbeam/send.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,11 @@ async def do_post(self, endpoint, file_name, data, line_number, data_hash):
177177
# (Ed-Fi API <= 7.1 style errors)
178178
messages.append(str(response.status) + ": " + util.linearize(response_body.get("message", "")))
179179

180+
elif "detail" in response_body:
181+
# (Ed-Fi API >= 7.2 style errors fallback.
182+
# All error payloads should contain this key, though it's not guaranteed to be informative
183+
messages.append(str(response.status) + ": " + util.linearize(response_body.get("detail", "")))
184+
180185
# update run metadata...
181186
failures = self.lightbeam.metadata["resources"][endpoint].get("failures", [])
182187
for message in messages:

0 commit comments

Comments
 (0)