Thank you.
I have one more question here. In \services\documents-management\src\DocumentsManagement.Web\Pages\DocumentsManagement\DocumentInboxes\CreateModal.cshtml.cs line 36 I called directly from another service but got this error: "Your request is not valid!" What I wrong here?
Hi maliming,
I created some APIs to get data from other microservices, I also created C# proxies based on your comment above.
After running the application, I got the exception:
Message: The API description of the TSD.DOCS.AdminCategoryService.ListOrganizations.IListOrganizationsAppService.GetForSelectListAsync method was not found!
StackTrace:
at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase1.BuildHttpProxyClientProxyContext(String methodName, ClientProxyRequestTypeValue arguments) at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase
1.RequestAsync[T](String methodName, ClientProxyRequestTypeValue arguments)
at TSD.DOCS.AdminCategoryService.ListOrganizations.ListOrganizationClientProxy.GetForSelectListAsync(Nullable`1 id) in E:\Workspaces\AbpFramework\Projects\TSD.DOCS\services\admin\category\src\TSD.DOCS.AdminCategoryService.HttpApi\ClientProxies\TSD\DOCS\AdminCategoryService\ListOrganizations\ListOrganizationClientProxy.Generated.cs:line 23
at DocumentsManagement.Web.Pages.DocumentsManagement.DocumentInboxes.CreateModalModelBase.OnGetAsync() in E:\Workspaces\AbpFramework\Projects\TSD.DOCS\services\documents-management\src\DocumentsManagement.Web\Pages\DocumentsManagement\DocumentInboxes\CreateModal.cshtml.cs:line 36
at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.ExecutorFactory.NonGenericTaskHandlerMethod.Execute(Object receiver, Object[] arguments)
at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeHandlerMethodAsync()
at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeNextPageFilterAsync()
Could you please help me double check? There is how to reproduce:
BTW, what is the different between proxy generation in Abp Studio and command line?
I use Route("get-All")], it works but I dont want the dash
Hi maliming,
I have created a new API: DocumentInboxController.cs
[HttpGet] // [Route("getAll")]: I am trying to add this but does not success. public Task<List<DocumentInboxForViewDto>> GetAllAsync(GetDocumentInboxesInput input) { return _documentInboxesAppService.GetAllAsync(input); }
This is the existing method: [HttpGet] public virtual Task<PagedResultDto<DocumentInboxDto>> GetListAsync(GetDocumentInboxesInput input) { return _documentInboxesAppService.GetListAsync(input); }
When running the swagger, I got the error: Conflicting method/path combination "GET api/documents-management/document-inboxes" for actions - DocumentsManagement.DocumentInboxes.DocumentInboxController.GetAllAsync (DocumentsManagement.HttpApi),DocumentsManagement.DocumentInboxes.DocumentInboxController.GetListAsync (DocumentsManagement.HttpApi). Actions require a unique method/path combination for Swagger/OpenAPI 3.0. Use ConflictingActionsResolver as a workaround
How can I use many APIs with the same HTTP method?
Hi maliming,
I want to add more properties to the ICurrentUser at login time and use for every service. How can I do it?
For example: I want to store long? NodeId & short? UserType
hi
You should use a static proxy in your module.
Do you have any other ways? Because our developers are working in a no-internet environment so we can not use the abp cli
After running the application, access to /DocumentsManagement/DocumentInboxes, another AbpException, please help me what I wrong. Every request of the DocumentsServie is not found
at Volo.Abp.Http.Client.DynamicProxying.ApiDescriptionFinder.FindActionAsync(HttpClient client, String baseUrl, Type serviceType, MethodInfo method)
at Volo.Abp.Http.Client.DynamicProxying.DynamicHttpProxyInterceptor`1.GetActionApiDescriptionModel(IAbpMethodInvocation invocation)
at Volo.Abp.Http.Client.DynamicProxying.DynamicHttpProxyInterceptor`1.InterceptAsync(IAbpMethodInvocation invocation)
at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
at lambda_method2073(Closure, Object)
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
Yeah, thank you for your help. Can I open this ticket for some days? I may need your help when implementing functions.
Hi maliming,
It works correctly.
As you know, I created two support tickets and my problem is very common, based on configure solution. The exception does not show detailed issues so I don't know how to fix it. Could you share anything with me that I can resolve in the future?