@@ -20,7 +20,7 @@ id token is only given when requesting the token endpoint in \_authorization_cod
This token holds several meta datas, including the usage_point_id (id of user's meter) that will be needed further to fetch user's datas.
- Konnector starts, if no usage_point_id are found in database or fields then proceed as a first launch. Store the usage_point_id in oauth_callback_result in db (see [addData](https://docs.cozy.io/en/cozy-konnector-libs/api/#adddata_1)).
- Konnector finds usage_point_id when starting but token is expired. Proceed to refresh token and restart konnector with usage_point_id in fields params (see _Troubleshooting when asking for refresh token_ section at the end of the page).
- Konnector finds usage*point_id when starting but token is expired. Proceed to refresh token and restart konnector with usage_point_id in fields params (see \_Troubleshooting when asking for refresh token* section at the end of the page).
Line 98: ```return start(fields, cozyParameters, false)```
In fact the usage_point_id still remains in the account collection, but on restart, the konnector loses `this._account` context leading to an error when searching for usage_point_id in account.
## Half-hour data issue
When requesting the load curve api while the half-hour data is not activated, we may have an error response 404 with a message "no data found", which makes the whole data fetching process crash. So instead of making it crash we just log this particular error and avoid the konnector to crash.
So we added a condition in line 227, in the _checkConsentForLoadCurve_ function :
```
if (
(err.statusCode === 404 || err.code === 404) &&
err.message.search('no_data_found') > 0
) {
log('info', 'Handling half-hour error on connection')