Skip to content

add more info about device when command error - #1017

Merged
fgalan merged 9 commits into
masterfrom
fix/http_command_errrors
Nov 24, 2026
Merged

fgalan merged 9 commits into
masterfrom
fix/http_command_errrors

Conversation

@AlvaroVega

@AlvaroVega AlvaroVega commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Issue: #1016

This PR adds more info about error to context broker, but really does not change nothing.

@AlvaroVega

Copy link
Copy Markdown
Member Author

now iotagent is responding

{"name":"HTTP_COMMAND_RESPONSE_ERROR","message":"Command [ping] failed for device [test125]: endpoint returned HTTP 200; invalid JSON response","code":400}

to orion, but orion responses:

{
"error": "NotFound",
"description": "The requested entity has not been found. Check type and id"
}

@AlvaroVega AlvaroVega changed the title Fix/http command errrors add more info about device when command error Nov 19, 2026
@AlvaroVega
AlvaroVega marked this pull request as ready for review November 19, 2026 16:22
@AlvaroVega
AlvaroVega requested a review from fgalan November 20, 2026 09:21
@@ -0,0 +1,67 @@
const nock = require('nock');

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

License header missing?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done a89307a

@sonarqube-colab-for-telefonicaid

Copy link
Copy Markdown

Passed Quality Gate passed

Issues

Measures

Project ID: telefonicaid_iotagent-json_ea32aeb1-c174-427f-bf13-5f3d277cb339

View in SonarQube

@fgalan fgalan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fgalan
fgalan merged commit db84e90 into master Nov 24, 2026
16 checks passed
@fgalan
fgalan deleted the fix/http_command_errrors branch November 24, 2026 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants