Discussions

Ask a Question
Back to All

Stop charge responging with BAD_REQUEST

Hi,

I have a cron work to stop the charge everyday at 07:55 (night tariff ends at 08:00) and it was working fine until yesterday.

Today I am getting an error every time I run the call to stop the charging session:

{  
"status": "BAD_REQUEST",  
"message": "Bad Request",  
"readableMessage": "Bad Request",  
"errorCode": "BAD_REQUEST",  
"context": null  
}

Example of a few days ago stop:

{
"id": xxxxxxx,
"chargePointId": xxxxxxx,
"createdAt": "2023-12-07T00:05:02Z",
"updatedAt": "2023-12-07T07:55:02Z",
"cablePluggedInAt": "2023-12-07T00:05:02Z",
"startedAt": "2023-12-07T00:05:03Z",
"stoppedAt": null,
"fullyChargedAt": null,
"failedAt": null,
"timeoutAt": null,
"state": "stopping",
"consumedKwh": 36.85,
"kwhLimit": null,
"startMeterKwh": 3314.989,
"endMeterKwh": 3314.989,
"cost": 12.14,
"price": 0,
"priceLimit": null,
"averagePricePerKwh": 0,
"averageCo2PerKwh": 0,
"averageRenewablePerKwh": 0,
"failureReason": null,
"stopReason": null,
"note": null,
"currency": {
"identifier": "eur",
"name": "Euros",
"decimals": 2
},
"soc": null,
"socLimit": null
}

Starting a charge session works fine.

Any idea?