Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove guard for initial notifications #526

Open
fgalan opened this issue May 21, 2021 · 2 comments
Open

Remove guard for initial notifications #526

fgalan opened this issue May 21, 2021 · 2 comments

Comments

@fgalan
Copy link
Member

fgalan commented May 21, 2021

Initial notifications are going to be deprecated in Orion Context Broker. They are being deprecated in Orion 3.1.0 and the removal is expected for 3.2.0.

When that moment comes, the Perseo FE guard code to "protect" against initial notification will no be longer needed.

Maybe this trace (generated by Perseo when some initial notification is received) may help:

time=2021-05-21T09:02:02.557Z | lvl=INFO | corr=353ab12e-ba13-11eb-a5eb-0242ac110011; node=Y6jsj505U; perseocep=206 | trans=9b50a50e-97f2-4748-9d3a-a754be349a5e | op=/notices | path=/notices | comp=perseo-fe | srv=smartcity | subsrv=/ | from=::ffff:172.17.0.17 | msg=sending response: 400 {"error":"Number of servicepath items does not match ContextResponses(1,2)","data":null}
@fgalan
Copy link
Member Author

fgalan commented May 21, 2021

Similar to issue telefonicaid/fiware-cygnus#2044

@AlvaroVega
Copy link
Member

if (orionResponse.length !== sps.length) {
return callback(new errors.ServipathCountMismatch('(' + sps.length + ',' + orionResponse.length + ')'));

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

No branches or pull requests

2 participants