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
Hello together,
I installed the ev-server on a new virtual instance of Debian 11.9 bullseye and get the following error when starting the first time:
ERROR in /root/ev-server-master-qa/src/utils/AxiosFactory.ts
The complete details are below.
Does anyone have a hint or idea what I may have to change to get it working?
I did not find a ticket with this error on the old ones.
ERROR in /root/ev-server-master-qa/src/utils/AxiosFactory.ts
./src/utils/AxiosFactory.ts 23:43-83
[tsl] ERROR in /root/ev-server-master-qa/src/utils/AxiosFactory.ts(23,44)
TS2345: Argument of type '(request: AxiosRequestConfig) => Promise<AxiosRequestConfig>' is not assignable to parameter of type '(value: InternalAxiosRequestConfig) => InternalAxiosRequestConfig | Promise<InternalAxiosRequestConfig>'.
Type 'Promise<AxiosRequestConfig>' is not assignable to type 'InternalAxiosRequestConfig | Promise<InternalAxiosRequestConfig>'.
Type 'Promise<AxiosRequestConfig>' is not assignable to type 'Promise<InternalAxiosRequestConfig>'.
Type 'AxiosRequestConfig' is not assignable to type 'InternalAxiosRequestConfig'.
Types of property 'headers' are incompatible.
Type 'AxiosHeaders | (Partial<RawAxiosHeaders & { Authorization: AxiosHeaderValue; Accept: AxiosHeaderValue; "Content-Length": AxiosHeaderValue; "User-Agent": AxiosHeaderValue; "Content-Encoding": AxiosHeaderValue; } & { ...; }> & Partial<...>)' is not assignable to type 'AxiosRequestHeaders'.
Type 'Partial<RawAxiosHeaders & { Authorization: AxiosHeaderValue; Accept: AxiosHeaderValue; "Content-Length": AxiosHeaderValue; "User-Agent": AxiosHeaderValue; "Content-Encoding": AxiosHeaderValue; } & { ...; }> & Partial<...>' is not assignable to type 'AxiosRequestHeaders'.
Type 'Partial<RawAxiosHeaders & { Authorization: AxiosHeaderValue; Accept: AxiosHeaderValue; "Content-Length": AxiosHeaderValue; "User-Agent": AxiosHeaderValue; "Content-Encoding": AxiosHeaderValue; } & { ...; }> & Partial<...>' is missing the following properties from type 'AxiosHeaders': set, has, clear, normalize, and 21 more.
ts-loader-default_0dec5e4c9b622746
@ ./src/server/rest/v1/service/UtilsService.ts 16:39-80
@ ./src/server/ocpi/OCPIServer.ts 21:39-81
@ ./src/start.ts 19:37-72
webpack 5.90.3 compiled with 1 error in 64072 ms
npm ERR! code 1
npm ERR! path /root/ev-server-master-qa
npm ERR! command failed
npm ERR! command sh -c npm version && webpack --env prod
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2024-02-24T12_40_51_208Z-debug.log
npm ERR! code 1
npm ERR! path /root/ev-server-master-qa
npm ERR! command failed
npm ERR! command sh -c npm run build:prod
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2024-02-24T12_40_51_243Z-debug.log
root@evserver:~/ev-server-master-qa# `
The text was updated successfully, but these errors were encountered:
Hello together,
I installed the ev-server on a new virtual instance of Debian 11.9 bullseye and get the following error when starting the first time:
ERROR in /root/ev-server-master-qa/src/utils/AxiosFactory.ts
The complete details are below.
Does anyone have a hint or idea what I may have to change to get it working?
I did not find a ticket with this error on the old ones.
Thanks in Advance
Martin
`npm run start
{
'ev-server': '2.7.9',
npm: '7.5.2',
node: '12.22.12',
v8: '7.8.279.23-node.57',
uv: '1.40.0',
zlib: '1.2.11',
brotli: '1.0.9',
ares: '1.17.1',
modules: '72',
nghttp2: '1.43.0',
napi: '8',
llhttp: '2.1.6',
http_parser: '2.9.4',
openssl: '1.1.1n',
cldr: '37.0',
icu: '67.1',
tz: '2019c',
unicode: '13.0'
}
assets by status 7.46 MiB [cached] 1363 assets
cacheable modules 4.02 MiB 425 modules
modules by path external "moment/locale/ 252 bytes
external "moment/locale/fr" 42 bytes [built] [code generated]
external "moment/locale/de" 42 bytes [built] [code generated]
external "moment/locale/es" 42 bytes [built] [code generated]
external "moment/locale/it" 42 bytes [built] [code generated]
external "moment/locale/en-gb" 42 bytes [built] [code generated]
external "moment/locale/pt-br" 42 bytes [built] [code generated]
modules by path *.js" 84 bytes
external "decimal.js" 42 bytes [built] [code generated]
external "uWebSockets.js" 42 bytes [built] [code generated]
ERROR in /root/ev-server-master-qa/src/utils/AxiosFactory.ts
./src/utils/AxiosFactory.ts 23:43-83
[tsl] ERROR in /root/ev-server-master-qa/src/utils/AxiosFactory.ts(23,44)
TS2345: Argument of type '(request: AxiosRequestConfig) => Promise<AxiosRequestConfig>' is not assignable to parameter of type '(value: InternalAxiosRequestConfig) => InternalAxiosRequestConfig | Promise<InternalAxiosRequestConfig>'.
Type 'Promise<AxiosRequestConfig>' is not assignable to type 'InternalAxiosRequestConfig | Promise<InternalAxiosRequestConfig>'.
Type 'Promise<AxiosRequestConfig>' is not assignable to type 'Promise<InternalAxiosRequestConfig>'.
Type 'AxiosRequestConfig' is not assignable to type 'InternalAxiosRequestConfig'.
Types of property 'headers' are incompatible.
Type 'AxiosHeaders | (Partial<RawAxiosHeaders & { Authorization: AxiosHeaderValue; Accept: AxiosHeaderValue; "Content-Length": AxiosHeaderValue; "User-Agent": AxiosHeaderValue; "Content-Encoding": AxiosHeaderValue; } & { ...; }> & Partial<...>)' is not assignable to type 'AxiosRequestHeaders'.
Type 'Partial<RawAxiosHeaders & { Authorization: AxiosHeaderValue; Accept: AxiosHeaderValue; "Content-Length": AxiosHeaderValue; "User-Agent": AxiosHeaderValue; "Content-Encoding": AxiosHeaderValue; } & { ...; }> & Partial<...>' is not assignable to type 'AxiosRequestHeaders'.
Type 'Partial<RawAxiosHeaders & { Authorization: AxiosHeaderValue; Accept: AxiosHeaderValue; "Content-Length": AxiosHeaderValue; "User-Agent": AxiosHeaderValue; "Content-Encoding": AxiosHeaderValue; } & { ...; }> & Partial<...>' is missing the following properties from type 'AxiosHeaders': set, has, clear, normalize, and 21 more.
ts-loader-default_0dec5e4c9b622746
@ ./src/server/rest/v1/service/UtilsService.ts 16:39-80
@ ./src/server/ocpi/OCPIServer.ts 21:39-81
@ ./src/start.ts 19:37-72
webpack 5.90.3 compiled with 1 error in 64072 ms
npm ERR! code 1
npm ERR! path /root/ev-server-master-qa
npm ERR! command failed
npm ERR! command sh -c npm version && webpack --env prod
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2024-02-24T12_40_51_208Z-debug.log
npm ERR! code 1
npm ERR! path /root/ev-server-master-qa
npm ERR! command failed
npm ERR! command sh -c npm run build:prod
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2024-02-24T12_40_51_243Z-debug.log
root@evserver:~/ev-server-master-qa# `
The text was updated successfully, but these errors were encountered: