Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "ajayak"

Hi @ismcagdas,

yarn build runs "ng build --prod --no-aot"

Hi @ismcagdas,

I checked yarn logs but it is not printing installed packages information in the console. Here are complete yarn installlogs:

2017-12-01T13:30:31.5473480Z ##[section]Starting: Yarn Install
2017-12-01T13:30:31.5535220Z ==============================================================================
2017-12-01T13:30:31.5548640Z Task         : Command Line
2017-12-01T13:30:31.5563740Z Description  : Run a command line with arguments
2017-12-01T13:30:31.5576590Z Version      : 1.1.3
2017-12-01T13:30:31.5590600Z Author       : Microsoft Corporation
2017-12-01T13:30:31.5604860Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkID=613735)
2017-12-01T13:30:31.5617460Z ==============================================================================
2017-12-01T13:30:31.8352310Z [command]/opt/vsts/work/_tool/yarn/1.3.2/x64/yarn-v1.3.2/bin/yarn
2017-12-01T13:30:33.8253130Z yarn install v1.3.2
2017-12-01T13:30:34.0928290Z [1/4] Resolving packages...
2017-12-01T13:30:34.9367270Z [2/4] Fetching packages...
2017-12-01T13:30:34.9431890Z warning Pattern ["esprima-fb@~3001.0001.0000-dev-harmony-fb"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v1/npm-esprima-fb-3001.1.0-dev-harmony-fb-b77d37abcd38ea0b77426bb8bc2922ce6b426411" as pattern ["esprima-fb@~3001.1.0-dev-harmony-fb"]. This could result in a non deterministic behavior, skipping.
2017-12-01T13:30:47.8762470Z warning [email protected]: Unable to read "./man" directory of module "json2"
2017-12-01T13:30:47.9948740Z warning [email protected]: Unable to read "./man" directory of module "joosex-simplerequest"
2017-12-01T13:30:48.7314710Z warning [email protected]: Unable to read "./man" directory of module "joose"
2017-12-01T13:30:48.7687110Z warning [email protected]: Unable to read "./man" directory of module "joosex-namespace-depended"
2017-12-01T13:31:21.8878930Z info [email protected]: The platform "linux" is incompatible with this module.
2017-12-01T13:31:21.8907180Z info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
2017-12-01T13:31:21.9064700Z [3/4] Linking dependencies...
2017-12-01T13:31:21.9246540Z warning " > [email protected]" has incorrect peer dependency "bootstrap@^3.1.1".
2017-12-01T13:31:21.9280750Z warning " > [email protected]" has incorrect peer dependency "[email protected]".
2017-12-01T13:31:21.9308410Z warning " > [email protected]" has incorrect peer dependency "bootstrap@^3.3".
2017-12-01T13:31:21.9340190Z warning " > [email protected]" has incorrect peer dependency "moment-timezone@^0.4.0".
2017-12-01T13:31:21.9365700Z warning "js-url > [email protected]" has unmet peer dependency "grunt@>=0.4.0".
2017-12-01T13:31:21.9394360Z warning " > [email protected]" has incorrect peer dependency "@angular/core@^2.4.2".
2017-12-01T13:31:21.9418790Z warning " > [email protected]" has incorrect peer dependency "@angular/core@^2.4.2".
2017-12-01T13:31:21.9486270Z warning " > [email protected]" has unmet peer dependency "npm@>=3.10.8".
2017-12-01T13:32:17.0806650Z [4/4] Building fresh packages...
2017-12-01T13:32:54.7818580Z Done in 140.97s.
2017-12-01T13:32:54.9075290Z ##[section]Finishing: Yarn Install

Fixed by injecting IDbContextProvider<DbContext> contextProvider

Hi @aaron, Here is the log:

INFO  2017-11-11 13:47:09,994 [4    ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:5000/swagger/v1/swagger.json  
ERROR 2017-11-11 13:47:11,700 [4    ] Microsoft.AspNetCore.Server.Kestrel      - Connection id "0HL98RICELOVT", Request id "0HL98RICELOVT:00000002": An unhandled exception was thrown by the application.
System.NotSupportedException: Ambiguous HTTP method for action - Cynet.PrimePenguin.SalesChannel.SalesChannelAppService.GetOrders (Cynet.PrimePenguin.Application). Actions require an explicit HttpMethod binding for Swagger
   at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.CreatePathItem(IEnumerable`1 apiDescriptions, ISchemaRegistry schemaRegistry)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GetSwagger(String documentName, String host, String basePath, String[] schemes)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.&lt;Invoke&gt;d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Builder.RouterMiddleware.&lt;Invoke&gt;d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.&lt;Invoke&gt;d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Cynet.PrimePenguin.Web.Authentication.JwtBearer.JwtTokenMiddleware.&lt;&gt;c.&lt;&lt;UseJwtTokenMiddleware&gt;b__0_0>d.MoveNext() in C:\AK\PrimePenguin\PrimePenguin.Service\src\Cynet.PrimePenguin.Web.Core\Authentication\JwtBearer\JwtTokenMiddleware.cs:line 22
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.&lt;Invoke&gt;d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware.&lt;Invoke&gt;d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Hosting.Internal.RequestServicesContainerMiddleware.&lt;Invoke&gt;d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Frame`1.<ProcessRequestsAsync>d__2.MoveNext()
INFO  2017-11-11 13:47:11,712 [4    ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 1719.1557ms 500

Hi aaron,

What could be the other possible way to achieve this result? I don't have the Bearer token in the header.

Hi @aaron,

I tried this solution but CreatorUserId and TenantId are still saved NULL in the database.

Hi @pay365,

Install dotnet core 2.0 from here: [ <a class="postlink" href="https://www.microsoft.com/net/core#windowscmd">https://www.microsoft.com/net/core#windowscmd</a> ])

Yup. That's correct :) Use exact 4.2.0-rc.1

Also, after redirection to my app, the Abp cookies and headers are still present in Request.

Hi @ismcagdas,

On my angular app, I am redirecting the user external url as

window.location.href = externalUrl;

On the external page, there is a button to accept the agreement, which calls my app back. On debug, I found that ApbSession.UserId is null along with most of the properties in AbpSession. If I use [AbpAuthorize] on top of method, I get Authentication error when redirecting to my app.

Showing 91 to 100 of 109 entries