dance-engine / dance-engine/the-engine

Bad Error response when getting all bundles for event

Open
#83 0 comments 0 reactions 1 assignee Claimed by @connorkm2 View on GitHub
bug
Dominant language
Python
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Seems to happen when their is no bundles for that event it gives this response instead of a no bundles found response.

**{{ _.baseUrl }}/:organisation/:event/bundles**

API Response:
```
{
"message": "Internal server error.",
"error": "'NoneType' object is not iterable"
}
```

CloudWwatch Logs:
```
[ERROR] 2026-02-25T16:10:55.160Z d4f92b4f-7306-4ddc-88d0-8162385b07b1 Unexpected error: 'NoneType' object is not iterable
[ERROR] 2026-02-25T16:10:55.162Z d4f92b4f-7306-4ddc-88d0-8162385b07b1 Traceback (most recent call last):
File "/var/task/functions/bundles/lambda_bundles.py", line 393, in lambda_handler
result = get_all(organisationSlug, eventId, public=is_public)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/task/functions/bundles/lambda_bundles.py", line 123, in get_all
return [b.to_public() if public else b for b in bundles]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable
```

_Too busy to fix right now so this is my reminder_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.