Closed AlvaroVega closed 1 year ago
status code is not provided when InvalidResponseError is obtained
https://github.com/conwetlab/ngsijs/blob/59ce53e2cfd7b486aa9580cbbc74dc339b134af2/dist/NGSI.js#L1687-L1691
InvalidResponseError could happens for example when PEP responses 401
Not sure if is really a bug or maybe just something that could be improved. Others errors like InvalidRequestError are providing status code:
https://github.com/conwetlab/ngsijs/blob/59ce53e2cfd7b486aa9580cbbc74dc339b134af2/dist/NGSI.js#L1624-L1629
done in https://github.com/Ficodes/ngsijs/pull/23
status code is not provided when InvalidResponseError is obtained
https://github.com/conwetlab/ngsijs/blob/59ce53e2cfd7b486aa9580cbbc74dc339b134af2/dist/NGSI.js#L1687-L1691
InvalidResponseError could happens for example when PEP responses 401
Not sure if is really a bug or maybe just something that could be improved. Others errors like InvalidRequestError are providing status code:
https://github.com/conwetlab/ngsijs/blob/59ce53e2cfd7b486aa9580cbbc74dc339b134af2/dist/NGSI.js#L1624-L1629