please help me!
I need your assistance with two problems I'm having with the api [/api/abp/application-configuration] and [/api/abp/application-localization].
1.The API are being executed multiple times As of right now, the API is called four times when I log in to the tenant, even though I understand that it is only called twice with the types fetch and xhr. When I log in to the host, the aforementioned phenomenon does not happen.
2.Can I alter the aforementioned API to increase speed?
I look forward to hearing from you shortly. I appreciate your assistance.
please confirm for me !!!
@maliming ok,thx
@maliming Just to be sure, I would like to know the disadvantages of implementing this measure.
@maliming It worked fine. Thanks for supported !!!
@maliming Where will the above code be added, is it AuthServerModule?
@maliming If the login url is like below, it will not automatically log in to the TabB and when log in on TabB, error 400 will show. Account/Login?ReturnUrl=%2Fconnect%2Fauthorize%3Fresponse_type%3Dcode%26client_id%
@maliming Open 2 tabs
TabA => account/login TabB => account/login
If you sign in TabA, TabA will redirect to home page At that time, TabB is still in account/login, if you sign, you will see error 400
I updated my project from 8.2.3 to 8.3.2, when creating a new entity from suite, angular ui is not generated. This is the log of the suite
2024-11-05 02:24:20.673 +07:00 [INF] 10/11 - AngularUiGenerateWithSchematicsCommand started...
2024-11-05 02:24:20.674 +07:00 [INF] Running the Angular Schematics command:
node run-schematics.mjs "D:/PortX/portx_abp/angular/.suite/schematics/node_modules/.bin/ng" g ".suite/schematics/collection.json:entity" app-pro PortX "D:/PortX/portx_abp/aspnet-core/.suite/entities/OwnerSupplierUser.json" "D:/PortX/portx_abp/angular"
2024-11-05 02:24:25.251 +07:00 [INF] Angular Schematics command failed.
D:\PortX\portx_abp\angular\.suite\schematics\node_modules\execa\lib\error.js:60
error = new Error(message);
^
Error: Command failed with exit code 1: .suite/schematics/node_modules/.bin/ng g .suite/schematics/collection.json:entity --template app-pro --target PortX --source D:/PortX/portx_abp/aspnet-core/.suite/entities/OwnerSupplierUser.json
[1m[31m',' expected. (23:30)
[0m [90m 21 |[31m
[90m 22 |[31m
[31m[1m>[22m[1m[31m[90m 23 |[31m createWithOcr [33m=[31m (input[33m:[31m any[33m<[31m[33mstring[31m[33m,[31m [33mStringValues[31m[33m>[31m[33m,[31m config[33m?[31m[33m:[31m [33mPartial[31m[33m<[31m[33mRest[31m[33m.[31m[33mConfig[31m[33m>[31m) [33m=>[31m
[90m |[31m [31m[1m^[22m[1m[31m
[90m 24 |[31m [36mthis[31m[33m.[31mrestService[33m.[31mrequest[33m<[31m[33many[31m[33m,[31m [33mBillFileProcessDto[31m[33m>[31m({
[90m 25 |[31m method[33m:[31m [32m'POST'[31m[33m,[31m
[90m 26 |[31m url[33m:[31m [32m'/api/app/bill-file-processes/create-with-ocr'[31m[33m,[31m[0m[39m[22m
at makeError (D:\PortX\portx_abp\angular\.suite\schematics\node_modules\execa\lib\error.js:60:11)
at handlePromise (D:\PortX\portx_abp\angular\.suite\schematics\node_modules\execa\index.js:118:26)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async file:///D:/PortX/portx_abp/angular/.suite/schematics/run-schematics.mjs:6:20 {
shortMessage: 'Command failed with exit code 1: .suite/schematics/node_modules/.bin/ng g .suite/schematics/collection.json:entity --template app-pro --target PortX --source D:/PortX/portx_abp/aspnet-core/.suite/entities/OwnerSupplierUser.json',
command: '.suite/schematics/node_modules/.bin/ng g .suite/schematics/collection.json:entity --template app-pro --target PortX --source D:/PortX/portx_abp/aspnet-core/.suite/entities/OwnerSupplierUser.json',
escapedCommand: '".suite/schematics/node_modules/.bin/ng" g ".suite/schematics/collection.json:entity" --template app-pro --target PortX --source "D:/PortX/portx_abp/aspnet-core/.suite/entities/OwnerSupplierUser.json"',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: '',
stderr: "\x1B[1m\x1B[31m',' expected. (23:30)\n" +
'\x1B[0m \x1B[90m 21 |\x1B[31m \n' +
' \x1B[90m 22 |\x1B[31m\n' +
'\x1B[31m\x1B[1m>\x1B[22m\x1B[1m\x1B[31m\x1B[90m 23 |\x1B[31m createWithOcr \x1B[33m=\x1B[31m (input\x1B[33m:\x1B[31m any\x1B[33m<\x1B[31m\x1B[33mstring\x1B[31m\x1B[33m,\x1B[31m \x1B[33mStringValues\x1B[31m\x1B[33m>\x1B[31m\x1B[33m,\x1B[31m config\x1B[33m?\x1B[31m\x1B[33m:\x1B[31m \x1B[33mPartial\x1B[31m\x1B[33m<\x1B[31m\x1B[33mRest\x1B[31m\x1B[33m.\x1B[31m\x1B[33mConfig\x1B[31m\x1B[33m>\x1B[31m) \x1B[33m=>\x1B[31m\n' +
' \x1B[90m |\x1B[31m \x1B[31m\x1B[1m^\x1B[22m\x1B[1m\x1B[31m\n' +
' \x1B[90m 24 |\x1B[31m \x1B[36mthis\x1B[31m\x1B[33m.\x1B[31mrestService\x1B[33m.\x1B[31mrequest\x1B[33m<\x1B[31m\x1B[33many\x1B[31m\x1B[33m,\x1B[31m \x1B[33mBillFileProcessDto\x1B[31m\x1B[33m>\x1B[31m({\n' +
" \x1B[90m 25 |\x1B[31m method\x1B[33m:\x1B[31m \x1B[32m'POST'\x1B[31m\x1B[33m,\x1B[31m\n" +
" \x1B[90m 26 |\x1B[31m url\x1B[33m:\x1B[31m \x1B[32m'/api/app/bill-file-processes/create-with-ocr'\x1B[31m\x1B[33m,\x1B[31m\x1B[0m\x1B[39m\x1B[22m",
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
Node.js v22.11.0