Skip to content

Commit

Permalink
Merge pull request #1617 from aquarta/master
Browse files Browse the repository at this point in the history
[NGSILD] fix ENTITY_GENERIC_ERROR when context broker respond with status code… (201 code)
  • Loading branch information
fgalan authored Jun 3, 2024
2 parents f7b914c + 31b46f4 commit f161af2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
- Fix: allow send multiple measures to CB in a batch (POST /v2/op/update) and sorted by TimeInstant when possible, instead of using multiples single request (iotagent-json#825, #1612)
- Fix: default express limit to 1Mb instead default 100Kb and allow change it throught a conf env var 'IOTA_EXPRESS_LIMIT' (iotagent-json#827)
- Fix: accept 201 status code from context broker with NGSI-LD interface when first measure is sent and device is created in it (#1617)
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 f161af2

Please sign in to comment.