diff --git a/app/data-sources/rural-payments/RuralPayments.js b/app/data-sources/rural-payments/RuralPayments.js index a14e7925..2bf2fecc 100644 --- a/app/data-sources/rural-payments/RuralPayments.js +++ b/app/data-sources/rural-payments/RuralPayments.js @@ -54,6 +54,14 @@ export class RuralPayments extends RESTDataSource { didEncounterError (error, request, url) { request.path = url + if (!error?.extensions?.response) { + this.logger.error('#datasource - Rural payments - Unable to determine error location', { + error, + request, + code: RURALPAYMENTS_API_REQUEST_001 + }) + return + } const { response } = error.extensions // response is text, then the error is from RuralPayments diff --git a/appConfig/appConfig.prd1.yaml b/appConfig/appConfig.prd1.yaml index d264824f..ea4ffb9d 100644 --- a/appConfig/appConfig.prd1.yaml +++ b/appConfig/appConfig.prd1.yaml @@ -13,7 +13,7 @@ - key: HEALTH_CHECK_ENABLED value: "false" - key: LOG_LEVEL - value: "http" + value: "debug" # Secrets - key: API_TENANT_ID diff --git a/package-lock.json b/package-lock.json index 31b1fa5b..7219ad25 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "fcp-data-access-layer-api", - "version": "1.4.0", + "version": "1.4.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "fcp-data-access-layer-api", - "version": "1.4.0", + "version": "1.4.1", "license": "OGL-UK-3.0", "dependencies": { "@apollo/datasource-rest": "^6.2.2", diff --git a/package.json b/package.json index 1dde4278..67fcb38a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fcp-data-access-layer-api", - "version": "1.4.0", + "version": "1.4.1", "description": "Customer Registry GraphQL Service", "homepage": "https://github.com/DEFRA/fcp-data-access-layer-api", "main": "app/index.js",