Hey Amy,
I was getting the same error I linked to, with “Response: No team member found for that user ID and team ID.”. However I’m trying to reproduce it in order to paste the error here and now I’m getting a different error… I can query channels and users by name, create users and teams, but the endpoint for “add user to channel” returns me a “session expired error”.
I’m testing every request using the same environment with the same personal access token.
Request: localhost:8065/api/v4/channels/557ehinz77rnjp5z1kzyac58ty/members
Body: { "user_id": "jkai5jbbc3djmkdott83ib8o8c" }
{
“id”: “api.context.session_expired.app_error”,
“message”: “Inválido ou sessão expirada, por favor faça login novamente.”, --> translates to Invalid or expired session , please login again.
“detailed_error”: “”,
“request_id”: “jaeoobca8pn35qfh4xxf3irq1w”,
“status_code”: 401
}
Ideas?