admin管理员组文章数量:1220936
When I deploy my project on the test site it is impossible to retrieve data from the API. Locally the problem does not arise.
api.siren.service.ts:29 Erreur API détectée:
HttpErrorResponse {headers: _HttpHeaders, status: 200, statusText: 'OK', url: '::8000/xxxx/', ok: false, …}
(anonymous) @ api.siren.service.ts:29
Zone - XMLHttpRequest.addEventListener:load
searchSiret @ headerponent.ts:1122
HeaderComponent_div_55_div_17_Template_button_click_2_listener @ headerponent.html:548
Zone - HTMLButtonElement.addEventListener:click
HeaderComponent_div_55_div_17_Template @ headerponent.html:548
HeaderComponent_div_55_Template @ headerponent.html:543
Zone - Promise.then
(anonymous) @ main.ts:5
headerponent.ts:1132 Erreur API SIREN: Error: Erreur API (HTTP 200): Http failure during parsing for :8000/xxx/
at api.siren.service.ts:39:37
at _Observable.init [as _subscribe] (throwError.js:5:51)
at _Observable._trySubscribe (Observable.js:37:25)
at Observable.js:31:30
at errorContext (errorContext.js:19:9)
at _Observable.subscribe (Observable.js:22:9)
at catchError.js:14:31
at OperatorSubscriber._error (OperatorSubscriber.js:23:21)
at OperatorSubscriber.error (Subscriber.js:40:18)
at OperatorSubscriber._error (Subscriber.js:64:30)
{
"/api-sirene/": {
"target": ";,
"secure": true,
"changeOrigin": true,
"logLevel": "debug",
"pathRewrite": {
"^/api-sirene": "/api-sirene/3.11/siren"
}
}
}
I thought I needed the SSL certificate, but even with that nothing changed. I think the problem may be with the proxy configuration. I thank you in advance for your help.
版权声明:本文标题:Unable to call the INSEE API in the deployed version of the Angular project with the proxy - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1739339896a2158883.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论