You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
I try to retrieve some data during pre-rendering process and I face to this error : Microsoft.AspNetCore.NodeServices: Information: Response { _body: { Error: unable to verify the first certificate at TLSSocket.<anonymous> (_tls_wrap.js:1084:38) at ZoneDelegate.invokeTask (C:\project\wwwroot\dist\server.js:66611:31) at Object.onInvokeTask (C:\project\\wwwroot\dist\server.js:43865:37) at ZoneDelegate.invokeTask (C:\project\wwwroot\dist\server.js:66610:36) at Zone.runTask (C:\project\wwwroot\dist\server.js:66378:47) at TLSSocket.ZoneTask.invoke (C:\project\wwwroot\dist\server.js:66673:38) at emitNone (events.js:86:13) at TLSSocket.emit (events.js:188:7) at TLSSocket._finishInit (_tls_wrap.js:606:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:436:38) code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' }, status: 200, ok: true, statusText: 'Ok', headers: Headers { _headers: Map {}, _normalizedNames: Map {} }, type: 3, url: null }
Context
Development environnement with Https
WebAPI
ASP.NET Core with Microsoft.AspNetCore.SpaServices for pre-rendering
Angular 2
This error occures just after executing the http request (GET, POST etc...).
This suggests you're running an older version of Zone.js. If you update to a newer version of that dependency, this problem should be fixed.
Note that the current templates on this repo use Zone.js version ^0.7.6. I've just checked and confirmed there's no error with fetching HTTPS resources using that version.
Activity
nicolaslawdune commentedon Apr 9, 2017
If I deactivate HTTPS, Http request works.
SteveSandersonMS commentedon Apr 11, 2017
I think you're running into this issue: angular/universal-starter#172
This suggests you're running an older version of Zone.js. If you update to a newer version of that dependency, this problem should be fixed.
Note that the current templates on this repo use Zone.js version
^0.7.6. I've just checked and confirmed there's no error with fetching HTTPS resources using that version.