I am doing it like this but still getting the same error.
@Headers("X-Requested-With: XMLHttpRequest")
@GET("/api/v3/teams/{teamID}/channels/")
Promise<User> getChannels(
@Header("Authorization: Bearer ") String token,
@Path("teamID") String tid);