I reproduced this same 500 error on the same Testflight API endpoint on my device (with different account/app/build IDs). The body in the response was:
{
"data": null,
"error": null
}
Topic:
App Store Distribution & Marketing
SubTopic:
TestFlight