Skip to content

[Bug]: team_id from token can be a dict #1486

@gabe-l-hart

Description

@gabe-l-hart

🐞 Bug Summary

When calling an API endpoint that attempts to extract the team_id from the token, the team_id field on the request can incorrectly be set to a dict representation of the full team spec rather than just the id string.

The bug was introduced in #1460. The specific problem is here where the value of payload.get("teams")[0] can return the full team object rather than just the id.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriageIssues / Features awaiting triage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions