telefonicaid / fiware-pep-steelskin

Telefonica's implementation of the FIWARE PEP GE
GNU Affero General Public License v3.0
0 stars 0 forks source link

check 401 status response before body content in retrieveSubserviceId #448

Closed AlvaroVega closed 4 years ago

AlvaroVega commented 4 years ago

And avoid a false error like this log:

time=2020-07-27T05:15:17.203Z | lvl=ERROR | corr=821b4e2d-27a5-4cba-9ec5-20d1db401634 | trans=821b4e2d-27a5-4cba-9ec5-20d1db401634 | op=/v2/entities/poi_1/attrs | srv=sc_vlci | subsrv=/wifi | msg=[VALIDATION-GEN-003] Error connecting to Keystone authentication: KEYSTONE_SUBSERVICE_NOT_FOUND: Could not find subservice with name [/wifi] in Keystone. | comp=PEPorion