-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GetProjectAsync not work #94
Comments
Thanks for the report. I'll check it. |
@trinhbaan24 I checked it but it worked in my environment. Does other methods work? |
this is my source code. other methods is not work too. does this code true? `Imports Backlog4net Module C00_E00XF
|
Your program worked in my environment. The results are as follows Please wait, processing find projectId
Please wait, processing
Count: 20 However, asynchronous methods are incorrectly used, which may cause problems. Can not set asynchronous method in Task constructor argument. Dim task = New Task(AddressOf ProcessDataAsync) Please try to see if the following program works properly. Sub Main()
ProcessDataAsync().Wait()
Console.ReadLine()
End Sub
Async Function ProcessDataAsync() As Task
Dim conf As New BacklogJpConfigure("chiyotest") 'spaceKey
conf.ApiKey = "ICESrRCu3LmGPNtJIwA6cyndnFsDNeiopFJP1QltR5rWB0RKvcCFiY9G7n1gKdrh"
Dim backlogClient = New BacklogClientFactory(conf).NewClient()
Try
Dim project = Await backlogClient.GetProjectAsync("T_CHIYODA")
Console.WriteLine("Please wait, processing find projectId")
Dim projectId = project.Id
Dim listIssue = Await backlogClient.GetIssuesAsync(New GetIssuesParams(projectId))
Console.WriteLine("Please wait, processing")
Console.WriteLine("Count: " + listIssue.Count.ToString)
Catch ex As Exception
Console.WriteLine(ex.Message)
End Try
End Function |
@trinhbaan24 Please download here. |
thank you very much |
@trinhbaan24 |
@ats124
now, backlog4net not working
error: backlog api request failed
Backlog4net.BacklogApiException' occurred in XXX.exe but was not handled in user code
場所 Backlog4net.Http.BacklogHttpClient.d__14.MoveNext()
--- 直前に例外がスローされた場所からのスタック トレースの終わり ---
場所 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
場所 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
場所 Backlog4net.BacklogClientImpl.d__22.MoveNext()
--- 直前に例外がスローされた場所からのスタック トレースの終わり ---
場所 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
場所 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
場所 Backlog4net.BacklogClientImpl.d__93.MoveNext()
--- 直前に例外がスローされた場所からのスタック トレースの終わり ---
場所 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
場所 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
場所 System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
The text was updated successfully, but these errors were encountered: