Skip to content
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

[API] Task endpoint doesnt work #246

Open
Xiaoy312 opened this issue May 9, 2022 · 1 comment
Open

[API] Task endpoint doesnt work #246

Xiaoy312 opened this issue May 9, 2022 · 1 comment
Labels
kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification.

Comments

@Xiaoy312
Copy link
Contributor

Xiaoy312 commented May 9, 2022

unable to update task name or details (same api...):

System.Net.Http.HttpClient.Refit.Implementation.Generated+ToDoITaskEndpoint, ToDo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.LogicalHandler: Information: Start processing HTTP request PATCH https://graph.microsoft.com/beta/me/todo/lists/tasks/tasks/AAMkADUyNmNmMzIwLTI3YzEtNGIzMC1iYzgxLTYwNWE1NmU0ZmQzMwBGAAAAAABvYxj9ZTJyRLT-qBUztJTQBwC40lBzmmgiT5-uiIjf7f8bAAAAAAESAAC40lBzmmgiT5-uiIjf7f8bAAGGll_EAAA%3D
System.Net.Http.HttpClient.Refit.Implementation.Generated+ToDoITaskEndpoint, ToDo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.ClientHandler: Information: Sending HTTP request PATCH https://graph.microsoft.com/beta/me/todo/lists/tasks/tasks/AAMkADUyNmNmMzIwLTI3YzEtNGIzMC1iYzgxLTYwNWE1NmU0ZmQzMwBGAAAAAABvYxj9ZTJyRLT-qBUztJTQBwC40lBzmmgiT5-uiIjf7f8bAAAAAAESAAC40lBzmmgiT5-uiIjf7f8bAAGGll_EAAA%3D
ToDo.Business.Services.AuthenticationService: Information: Number of Accounts: 1
ToDo.Business.Services.AuthenticationService: Information: Attempting to perform silent sign in . . .
ToDo.Business.Services.AuthenticationService: Information: Authentication Scopes: ["Tasks.Read","User.Read","Tasks.ReadWrite"]
ToDo.Business.Services.AuthenticationService: Information: Account Name: [email protected]
System.Net.Http.HttpClient.Refit.Implementation.Generated+ToDoITaskEndpoint, ToDo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.ClientHandler: Information: Received HTTP response headers after 189.2356ms - 400
System.Net.Http.HttpClient.Refit.Implementation.Generated+ToDoITaskEndpoint, ToDo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.LogicalHandler: Information: End processing HTTP request after 278.4201ms - 400

unable to create task:

Uno.Extensions.Reactive.AsyncCommand: Error: Failed to execute command.

System.InvalidOperationException: Command 'CreateTask' failed when executing command with 'TaskList { Id = tasks, Odata = , DisplayName = Tasks, IsOwner = False, IsShared = False, WellknownListName = tasks }'.
 ---> Refit.ApiException: Response status code does not indicate success: 400 (Bad Request).
   at Refit.RequestBuilderImplementation.<>c__DisplayClass14_0`2.<<BuildCancellableTaskFuncForMethod>b__0>d.MoveNext() in /_/Refit/RequestBuilderImplementation.cs:line 288
--- End of stack trace from previous location ---
   at ToDo.Business.TaskService.CreateAsync(TaskList list, ToDoTask newTask, CancellationToken ct)
   at ToDo.Presentation.TaskListViewModel.DoCreateTask(TaskList list, CancellationToken ct)
   at Uno.Extensions.Reactive.AsyncCommand.SubCommand.<>c__DisplayClass6_0.<<TryExecute>b__0>d.MoveNext()
   --- End of inner exception stack trace ---
@Xiaoy312 Xiaoy312 added kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification. labels May 9, 2022
@Xiaoy312
Copy link
Contributor Author

Xiaoy312 commented May 9, 2022

on a somewhat related note, create task list works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification.
Projects
None yet
Development

No branches or pull requests

1 participant