I am trying to call some api and it is asynchronous, when changing plugin action to async, i can not call route, getting error when accessing that route

.<GetTempStateAsync>d__16.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at

is there a way it can be achieved?