I implemented TikTok PI and everything works well. In the last days I encountered a problem that the user/info/ endpoint returns 'error code': '6007063', 'message': 'auth user info is required'. This is happening for some of the accounts while others succeeded (there is nothing different between the accounts), I guess it's on tiktok side.
var Client = new HttpClient();
var userDataRequest = new UserDataRequest
{
open_id = tokenObj.data.open_id,
access_token = tokenObj.data.access_token,
fields = new HashSet<string> { "open_id", "union_id", "avatar_url", "avatar_url_100", "avatar_url_200", "avatar_large_url", "display_name" }
};
var json = JsonConvert.SerializeObject(userDataRequest);
var body = new StringContent(json, Encoding.UTF8, "application/json");
var response = await Client.PostAsync("https://open-api.tiktok.com/user/info/", body).ConfigureAwait(false);
How can I solve the problem and what does this error mean?