If your external API is not abp module that implements an Http.Api.Client layer, you can make http requests using IHttpClientFactory and deserialize manually.
Thank you gterdem, but which layer can I implement IHttpClientFactory?, I already use Http.Api.Client layer but blazor display this error:
Given type is not an ABP module:
Then can I use Application Layer directly, to implement this class?
I need get data from external API for example: https://myapi.com/requestid/{id}
I need know if can I use HttpClient in HttpApi in DDD to do this, or exists any best practice to do this integration to my project, finally I need change data from my blazor pages. I'm using Blazor Wasm DDD tired solution, then I need know the best practice to do that. And if you have an example thats great.
Thank you,
Hello EngincanV, I had the same issue but after I applied your solution I had this issue:
[1/4] Resolving packages... warning Resolution field "source-map@0.7.3" is incompatible with requested version "source-map@^0.5.6" success Already up-to-date. Done in 0.20s.
Hi, I had the same problem, after I upgrated my solution to Blazor Wasm 5.2.0-rc.1 and try to run again any entity from abp suite code generator, I had this error:
[14:54:07 ERR] ---------- RemoteServiceErrorInfo ---------- { "code": null, "message": "An internal error occurred during your request!", "details": null, "data": {}, "validationErrors": null } [14:54:07 ERR] Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object. at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.EntityGenerateCommand.crMnHITicG() at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.EntityGenerateCommand.A9wnsuiZ3C(String ) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.EntityGenerateCommand.Catn1RSTBA() at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.EntityGenerateCommand.ExecuteAsync(CrudPageCommandOptions options) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.CommandManager.ExecuteAllAsync(CrudPageCommandOptions options) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.CrudPageGenerator.GenerateAsync(EntityModel entity, Solution solution) at Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync(Guid solutionId, EntityModel entity) at lambda_method1814(Closure , Object ) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(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.
Can you help me with that?
Thank you, that's found.
ABP Framework version: v5.2.0-rc.1
UI type: Blazor Wasm
DB provider: EF Core
Tiered (MVC) or Identity Server Separated (Angular): no
Exception message and stack trace:
I get this error:
global.js?_v=637738806930402996:249
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: The requested module './utilities.js' does not provide an export named 'firstNonNull'
SyntaxError: The requested module './utilities.js' does not provide an export named 'firstNonNull'
Microsoft.JSInterop.JSException: The requested module './utilities.js' does not provide an export named 'firstNonNull'
SyntaxError: The requested module './utilities.js' does not provide an export named 'firstNonNull'
at Microsoft.JSInterop.JSRuntime.<InvokeAsync>d__161[[Microsoft.JSInterop.IJSObjectReference, Microsoft.JSInterop, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext() at Blazorise.Modules.JSNumericPickerModule.Initialize(DotNetObjectReference
1 dotNetObjectRef, ElementReference elementRef, String elementId, Object options)
at Blazorise.NumericPicker`1.
Steps to reproduce the issue:" I had this error after I upgrated from 5.1.4 to 5.2.0-rc.1. Click in Administration -> Identity Management -> Users.
I had the same problem, but with Blazor WebAssembly, after I upgrated from 5.1.4 to 5.2.0-rc.1. I already execute abp install-libs, But I had the next problem:
AbpException: Could not find the bundle file '/libs/flag-icon-css/css/flag-icon.min.css' for the bundle 'Lepton.Global'! Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpTagHelperResourceService.ProcessAsync(ViewContext viewContext, TagHelper tagHelper, TagHelperContext context, TagHelperOutput output, List<BundleTagHelperItem> bundleItems, string bundleName)
Hi,
With little changes, this found.
Thank you maliming.
Hello,
I already send you the project through email.
Thank you,
Hello maliming,
I granted you more access to project please try again.
Thank you,