Skip to content

Commit

Permalink
fix ENTITY_GENERIC_ERROR when context broker respond with status code…
Browse files Browse the repository at this point in the history
… in update operation

with orion ld 1.5.1 during the transmission of the first measure operation the context broker respond with 201 status code
  • Loading branch information
sgheppy committed May 31, 2024
1 parent f7b914c commit 053e916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/services/ngsi/entities-NGSI-LD.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ function generateNGSILDOperationHandler(operationName, entityName, typeInformati
} else if (
response &&
operationName === 'update' &&
(response.statusCode === 200 || response.statusCode === 204)
(response.statusCode === 200 || response.statusCode === 204 || response.statusCode === 201)
) {
logger.info(context, 'Received the following response from the CB: Value updated successfully\n');
alarms.release(constants.ORION_ALARM);
Expand Down

0 comments on commit 053e916

Please sign in to comment.