Activities of "smansuri"

Hello smansuri,

please do have look to similar issues
https://support.abp.io/QA/Questions/702/NullInjectorError-in-console-Angular-app-couldn%27t-load https://support.abp.io/QA/Questions/773/NullInjectorError-when-access-to-Permission-features

please do let me know if find helpful

Thanks, Anjali

We are using yarn install everytime we do a release in a azure pipeline but still getting the same error. Also tried npm install but it also produces below error.

  • ABP Framework version: v7.3.2
  • UI Type: Angular
  • Database System: EF Core (MySQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): Auth Server Separated (for Angular)
  • Exception message and full stack trace: see the attached image below
  • Steps to reproduce the issue: angular app not loading with the above error.

Did you try on home/landing page not login page. or anyother page with does nt require authentication. even if i call the api https://doctrz.in:44325/api/abp/application-configuration i get below response in settings property without captcha key. "setting": { "values": { "Abp.Localization.DefaultLanguage": "en", "Abp.Timing.TimeZone": "UTC", "Abp.Identity.TwoFactor.Behaviour": "Optional", "Abp.Identity.TwoFactor.UsersCanChange": "True", "Abp.Account.EnableLdapLogin": "false", "Abp.Identity.EnableOAuthLogin": "false", "Abp.Identity.OAuthLogin.Authority": null, "Abp.Identity.OAuthLogin.ClientId": null, "Abp.Identity.OAuthLogin.ClientSecret": null, "Abp.Identity.OAuthLogin.Scope": null, "Abp.Identity.OAuthLogin.RequireHttpsMetadata": "false", "Abp.Identity.OAuthLogin.ValidateEndpoints": "false", "Abp.Identity.OAuthLogin.ValidateIssuerName": "false" } },

const param: ApplicationConfigurationRequestOptions = { includeLocalizationResources: false // ApplicationConfigurationRequestOptions is having only this flag which we can set true or false }; // this is parameter which we are passing in get method

we are trying to get settings data before login. after your suggested code also the below line of code some times return the sitekey and sometime does not. this.config.getSetting("Abp.Account.Captcha.SiteKey")

  • ABP Framework version: v7.3
  • UI Type: Angular
  • Database System: EF Core MySQL
  • Tiered (for MVC) or Auth Server Separated (for Angular): Auth server separated angular
  • Exception message and full stack trace: requires one argument
  • Steps to reproduce the issue: follow the link https://docs.abp.io/en/abp/latest/UI/Angular/Config-State-Service

In the article , https://docs.abp.io/en/abp/latest/UI/Angular/Config-State-Service it says to set the config state service call this.abpApplicationConfigurationService.get().subscribe(config => { this.config.setState(config); }) while trying the above code inside constructor it is expecting one argumet in the get function. please provide what info and how to pass.

  • ABP Framework version: v7.3.X
  • UI Type: Angular
  • Database System: EF Core (MySQLetc..)
  • Tiered (for MVC) or Auth Server Separated (for Angular): Auth server Separated Angular
  • Exception message and full stack trace: NA
  • Steps to reproduce the issue: NA

Request starting HTTP/2 GET https://xxxxx:44322/__bundles/moment.min.js.map; - -

This may be browser behavior you can ignore it now. z I can not ignore as this error im getting when i click on login and redirected to https://xxxxxx:44322/Error?httpStatusCode=400

Hi,

You should restore packages while developing, they will be included when you publish your application using dotnet publish

Everytime i should not check in libs and nodemodule folders. like for angular how we restore packages in docker there should be a way to achive this in authserver docker also. otherwise whats the use if package.json and checking in 18k files everytime also this is not the correct way of handling the lib files.

more over im getting below errors even after pushing libs and nodemodules to git repo. Request starting HTTP/2 GET https://xxxxx:44322/__bundles/moment.min.js.map; - - [07:38:12 INF] Request finished HTTP/2 GET https://xxxx:44322/__bundles/moment.min.js.map; - - - 302 0 - 8.1742ms [07:38:12 INF] Request starting HTTP/2 GET https://xxxxx:44322/Error?httpStatusCode=404 - - [07:38:12 INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' [07:38:12 INF] Route matched with {action = "Index", controller = "Error", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Index(Int32) on controller Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared). [07:38:12 INF] Executing ViewResult, running view ~/Views/Error/404.cshtml. [07:38:12 INF] Executed ViewResult - view ~/Views/Error/404.cshtml executed in 41.5277ms.

Hi,

You should restore packages while developing, they will be included when you publish your application using dotnet publish

Everytime i should not check in libs and nodemodule folders. like for angular how we restore packages in docker there should be a way to achive this in authserver docker also. otherwise whats the use if package.json and checking in 18k files everytime

Hi,

The Auth server needs some NPM packages, you need to restore them before publishing the project.

How to install npm in docker for auth server then as asp.net core is already there in docker

Showing 71 to 80 of 116 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 20, 2024, 05:21