Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in AxiosFactory.ts on first start #4228

Open
Schmiedgasse opened this issue Feb 24, 2024 · 0 comments
Open

Error in AxiosFactory.ts on first start #4228

Schmiedgasse opened this issue Feb 24, 2024 · 0 comments

Comments

@Schmiedgasse
Copy link

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

[email protected] prestart
npm run build:prod

[email protected] build:prod
npm version && webpack --env prod

{
'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]

  • 70 modules

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# `

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant