Fixed Authorize token not passed for Gireve
Fixed action in Axios error logs
MODIFY
src/client/ocpi/CpoOCPIClient.ts
src/client/ocpi/CpoOCPIClient.ts
@@ -237,6 +237,7 @@ export default class CpoOCPIClient extends OCPIClient {
id: transaction.id.toString(),
start_datetime: transaction.timestamp,
kwh: 0,
+ authorization_id: transaction.authorizationID,
auth_method: OCPIAuthMethod.AUTH_REQUEST,
auth_id: ocpiToken.auth_id,
location: ocpiLocation,
@@ -398,6 +399,7 @@ export default class CpoOCPIClient extends OCPIClient {
auth_id: transaction.ocpiData.session.auth_id,
auth_method: transaction.ocpiData.session.auth_method,
location: transaction.ocpiData.session.location,
+ authorization_id: transaction.ocpiData.session.authorization_id,
total_cost: transaction.stop.roundedPrice > 0 ? transaction.stop.roundedPrice : 0,
charging_periods: await this.buildChargingPeriods(this.tenant, transaction),
last_updated: transaction.stop.timestamp

MODIFY
src/types/ocpi/OCPISession.ts
src/types/ocpi/OCPISession.ts
@@ -5,6 +5,7 @@ export interface OCPISession {
id: string;
start_datetime: Date;
end_datetime?: Date;
+ authorization_id?: string;
kwh: number;
auth_id: string;
auth_method: OCPIAuthMethod;

MODIFY
src/utils/Logging.ts
src/utils/Logging.ts
@@ -584,7 +584,7 @@ export default class Logging {
// Error handling is done outside to get the proper module information
await Logging.logError({
tenantID: tenant.id,
- action: ServerAction.HTTP_ERROR,
+ action: Utils.getAxiosActionFromURL(error.config.url),
message: `Axios HTTP Error >> ${error.config?.method?.toLocaleUpperCase()}/${error.response?.status} '${error.config?.url}' - ${error.message}`,
module: Constants.MODULE_AXIOS, method: 'interceptor',
detailedMessages: {

Fixed Authorize token not passed for Gireve
Fixed action in Axios error logs