Closed AlvaroVega closed 4 years ago
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
Fixed by PR https://github.com/telefonicaid/fiware-pep-steelskin/pull/440
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
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