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

invalid PEP token (401 by expired) is printing an error log #439

Closed
AlvaroVega opened this issue Jun 15, 2020 · 1 comment
Closed

invalid PEP token (401 by expired) is printing an error log #439

AlvaroVega opened this issue Jun 15, 2020 · 1 comment

Comments

@AlvaroVega
Copy link
Member

AlvaroVega commented Jun 15, 2020

When an invalid PEP token (401 by expired token) is reached a new token is retrieved continuing normal flow (retries) but a error log is printed:

https://github.com/telefonicaid/fiware-pep-steelskin/blob/master/lib/services/keystoneAuth.js#L233

time=2020-06-10T06:40:00.201Z | lvl=ERROR | corr=6d7a2551-0d2c-4b28-aade-8300ceb94da9 | trans=6d7a2551-0d2c-4b28-aade-8300ceb94da9 | op=/v2/op/update | srv=alcobendas | subsrv=/agua | msg=[VALIDATION-GEN-003] Error connecting to Keystone authentication: KEYSTONE_SUBSERVICE_NOT_FOUND: Could not find subservice with name [/agua] in Keystone. | comp=PEPorion
time=2020-06-10T06:40:00.202Z | lvl=ERROR | corr=6d7a2551-0d2c-4b28-aade-8300ceb94da9 | trans=6d7a2551-0d2c-4b28-aade-8300ceb94da9 | op=/v2/op/update | srv=alcobendas | subsrv=/agua | msg=[VALIDATION-GEN-003] Error connecting to Keystone authentication: KEYSTONE_SUBSERVICE_NOT_FOUND: Could not find subservice with name [/agua] in Keystone. | comp=PEPorion
time=2020-06-10T09:40:00.138Z | lvl=ERROR | corr=cc025625-b5dd-414e-84f1-6794c7233fbe | trans=cc025625-b5dd-414e-84f1-6794c7233fbe | op=/v2/op/update | srv=alcobendas | subsrv=/agua | msg=Invalid PEP token: null | comp=PEPorion
time=2020-06-10T09:40:00.202Z | lvl=ERROR | corr=d1e16b82-e1d9-4eb7-8e7c-bfc6ae2dc1f7 | trans=d1e16b82-e1d9-4eb7-8e7c-bfc6ae2dc1f7 | op=/v2/op/update | srv=alcobendas | subsrv=/agua | msg=Invalid PEP token: null | comp=PEPorion
time=2020-06-10T12:40:00.136Z | lvl=ERROR | corr=8a523c51-bde7-42a7-bb2f-07d7327b7a7c | trans=8a523c51-bde7-42a7-bb2f-07d7327b7a7c | op=/v2/op/update | srv=alcobendas | subsrv=/agua | msg=Invalid PEP token: null | comp=PEPorion
time=2020-06-10T12:40:00.176Z | lvl=ERROR | corr=356daafe-d823-4ee5-ab84-b0b811cb387b | trans=356daafe-d823-4ee5-ab84-b0b811cb387b | op=/v2/op/update | srv=alcobendas | subsrv=/wifi | msg=Invalid token: null | comp=PEPorion

PEP Retries after expired PEP token are handled and done in https://github.com/telefonicaid/fiware-pep-steelskin/blob/master/lib/services/keystoneAuth.js#L537

@AlvaroVega AlvaroVega changed the title invalid PEP token (401 by expired) invalid PEP token (401 by expired) should be handled and retrieve a new valid PEP token Jun 15, 2020
@AlvaroVega AlvaroVega changed the title invalid PEP token (401 by expired) should be handled and retrieve a new valid PEP token invalid PEP token (401 by expired) is printing an error log Jun 15, 2020
@fgalan
Copy link
Member

fgalan commented Jun 15, 2020

Fixed by PR #440

@fgalan fgalan closed this as completed Jun 15, 2020
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