You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If your issue has an debug log, post it here, unless remove this section!
Describe your issue
Hi Ramtin Im Milad...
i have error when i want to get username from recent activity , can you help me ...
my code is :
`
var recentActivity = await api.UserProcessor.GetRecentActivityFeedAsync(PaginationParameters.Empty);
if (!recentActivity.Succeeded)
{
this.textBox1.Invoke((MethodInvoker)delegate () {
textBox1.AppendText($"Failed to fetch recent activity: {recentActivity.Info.Message}"+Environment.NewLine);
});
return;
}
foreach (var item in recentActivity.Value.Items)
{
this.textBox1.Invoke((MethodInvoker)delegate ()
{
// Debugging: Log the ProfileId
textBox1.AppendText($"ProfileId: {item.ProfileId}" + Environment.NewLine);
});
// Ensure ProfileId is valid
if (item.ProfileId == 0)
{
this.textBox1.Invoke((MethodInvoker)delegate ()
{
textBox1.AppendText("Invalid ProfileId: 0" + Environment.NewLine);
});
continue;
}
var userInfoResult = await api.UserProcessor.GetUserInfoByIdAsync(item.ProfileId);
if (userInfoResult.Succeeded)
{
var username = userInfoResult.Value.Username;
// Update UI on the main thread
this.Invoke((MethodInvoker)delegate
{
textBox2.AppendText($"{username.ToString()}{Environment.NewLine}");
System.Threading.Thread.Sleep(5000);
textBox2.Text.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries);
System.Threading.Thread.Sleep(5000);
var usernames = textBox2.Lines.Distinct();
foreach (var mmm in usernames)
{
txtresualtactivity.AppendText(mmm + Environment.NewLine);
}
});
}
else
{
this.Invoke((MethodInvoker)delegate {
// Log or handle the error accordingly
txtresualtactivity.AppendText($"Failed to fetch user info for ProfileId {item.ProfileId}: {userInfoResult.Info.Message}" + Environment.NewLine);
});
}
var rnd = new Random();
var delay = rnd.Next(10,20);
await Task.Delay(TimeSpan.FromSeconds(delay));
}
`
Screenshots
my error : Failed to fetch user info for ProfileId 4260057505: Error converting value {null} to type 'System.Boolean'. Path 'user.auto_expand_chaining', line 1, position 1991.
The text was updated successfully, but these errors were encountered:
Important note
[ ]
that is related to your issue, like[x]
Important note
from this form!Debug logs
andScreenshots
sections)!I've:
Issue category
Language
Usage
Operating System
Debug logs
If your issue has an debug log, post it here, unless remove this section!
Describe your issue
Hi Ramtin Im Milad...
i have error when i want to get username from recent activity , can you help me ...
my code is :
`
var recentActivity = await api.UserProcessor.GetRecentActivityFeedAsync(PaginationParameters.Empty);
if (!recentActivity.Succeeded)
{
this.textBox1.Invoke((MethodInvoker)delegate () {
textBox1.AppendText($"Failed to fetch recent activity: {recentActivity.Info.Message}"+Environment.NewLine);
});
return;
}
`
Screenshots
my error :
Failed to fetch user info for ProfileId 4260057505: Error converting value {null} to type 'System.Boolean'. Path 'user.auto_expand_chaining', line 1, position 1991.
The text was updated successfully, but these errors were encountered: