Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
29 kB
2
Indexable
Never
[16:36:50.024] INFO (19): [rider_assignment_worker.service:processRiders(0d104e4e-3002-4948-8ab6-143a1909ab93)]
    candidates: [
      "7a624268-1d13-4220-ab97-1bb63b559e39"
    ]
[16:36:50.097] INFO (19): [send_orderAssignedNotification.service] - order was assigned
    orderId: "0d104e4e-3002-4948-8ab6-143a1909ab93"
    status: "assigned"
    riderId: "7a624268-1d13-4220-ab97-1bb63b559e39"
[16:36:57.212] INFO (19): [update_status.service] - update status successfully
    riderId: "7a624268-1d13-4220-ab97-1bb63b559e39"
    riderStatus: "headingToPickup"
[16:36:57.215] INFO (19): La key para buscar las posiciones es
    prefix: "riders:locations:CHL"
[16:36:57.357] INFO (19): [distanceAPI:repository]
    eta: {
      "distance": 491,
      "time": 5
    }
[16:36:57.357] INFO (19): [update_order.service:processRiders(0d104e4e-3002-4948-8ab6-143a1909ab93 - accepted)]
    eta: "2024-01-15T15:41:57.203"
    riderOrder: {
      "id": "7a624268-1d13-4220-ab97-1bb63b559e39",
      "name": "Daniela",
      "lastname": "Moussalli",
      "phone": "+54113423792",
      "vehicleKind": "motorcycle"
    }
[16:36:57.359] INFO (19): [redis_orders_cached.repository] - Update field on OrderCached - HASHMAP 0d104e4e-3002-4948-8ab6-143a1909ab93
    field: "eta"
    value: "2024-01-15T15:41:57.203"
[16:36:57.362] INFO (19): [create_response_webhook.service]
    response: {
      "orderId": "0d104e4e-3002-4948-8ab6-143a1909ab93",
      "externalId": "tVjJl6SaIP8RD-0NBYZTmUYjYi",
      "referenceId": "XDwwaoM5AphnmSUdCbaUJxZtxi",
      "state": "Rider Accept",
      "stateId": 1,
      "ETA": "2024-01-15T15:41:57.203",
      "riderType": "motorcycle",
      "riderName": "Daniela Moussalli",
      "phoneRider": "+54113423792",
      "cancelationTypeId": null,
      "cancelationDetail": null,
      "date": "2024-01-15T15:36:57.203",
      "trackUrl": "URL"
    }
[16:36:57.364] ERROR (19): [create_response_webhook.service]
    eta: "2024-01-15T15:41:57.203"
    order: {
      "id": "0d104e4e-3002-4948-8ab6-143a1909ab93",
      "countryCode": "CHL",
      "storeId": "13df914e-655c-42f0-8a2a-ca45cf7101db",
      "description": "Mc Combo Cuarto de Libra",
      "status": "accepted",
      "customer": {
        "name": "DanielaD3",
        "phone": "3512211449",
        "email": "cliente3@cliente.com"
      },
      "deliveryInfo": {
        "coordinates": {
          "latitude": -33.5705055893389,
          "longitude": -70.5542085425313
        },
        "address": "Av. El Peral 6020",
        "postalCode": "8170327",
        "country": "CHL",
        "stateOrProvince": "Santiago de chile",
        "city": "Santiago de chile",
        "streetName": "Av. El Peral",
        "streetNumber": 6020,
        "reference": "",
        "departmentDetails": "casa"
      },
      "metadata": {
        "displayName": "123495",
        "externalOrderId": "tVjJl6SaIP8RD-0NBYZTmUYjYi",
        "referenceOrderId": "XDwwaoM5AphnmSUdCbaUJxZtxi",
        "webhook_url": "{{Webhook}}",
        "originPlatform": "GIGIGO"
      },
      "tip": 15000,
      "tipAsset": "ARS",
      "eta": null,
      "etd": null,
      "riderId": "7a624268-1d13-4220-ab97-1bb63b559e39",
      "timestamps": {
        "receivedAt": "2024-01-15T19:36:49.837Z"
      },
      "createdAt": "2024-01-15T19:36:49.838Z",
      "updatedAt": "2024-01-15T19:36:57.203Z"
    }
    error: {
      "message": "connect ECONNREFUSED 127.0.0.1:80",
      "name": "Error",
      "stack":
          Error: connect ECONNREFUSED 127.0.0.1:80
              at Function.AxiosError.from (/app/node_modules/axios/lib/core/AxiosError.js:89:14)
              at RedirectableRequest.handleRequestError (/app/node_modules/axios/lib/adapters/http.js:591:25)
              at RedirectableRequest.emit (node:events:517:28)
              at RedirectableRequest.emit (node:domain:489:12)
              at ClientRequest.eventHandlers.<computed> (/app/node_modules/follow-redirects/index.js:14:24)
              at ClientRequest.emit (node:events:517:28)
              at ClientRequest.emit (node:domain:489:12)
              at Socket.socketErrorListener (node:_http_client:501:9)
              at Socket.emit (node:events:517:28)
              at Socket.emit (node:domain:489:12)
      "config": {
        "transitional": {
          "silentJSONParsing": true,
          "forcedJSONParsing": true,
          "clarifyTimeoutError": false
        },
        "adapter": [
          "xhr",
          "http"
        ],
        "transformRequest": [
          null
        ],
        "transformResponse": [
          null
        ],
        "timeout": 0,
        "xsrfCookieName": "XSRF-TOKEN",
        "xsrfHeaderName": "X-XSRF-TOKEN",
        "maxContentLength": -1,
        "maxBodyLength": -1,
        "env": {},
        "headers": {
          "Accept": "application/json, text/plain, */*",
          "Content-Type": "application/json",
          "User-Agent": "axios/1.4.0",
          "Content-Length": "387",
          "Accept-Encoding": "gzip, compress, deflate, br"
        },
        "method": "post",
        "url": "{{Webhook}}",
        "data": "{\"orderId\":\"0d104e4e-3002-4948-8ab6-143a1909ab93\",\"externalId\":\"tVjJl6SaIP8RD-0NBYZTmUYjYi\",\"referenceId\":\"XDwwaoM5AphnmSUdCbaUJxZtxi\",\"state\":\"Rider Accept\",\"stateId\":1,\"ETA\":\"2024-01-15T15:41:57.203\",\"riderType\":\"motorcycle\",\"riderName\":\"Daniela Moussalli\",\"phoneRider\":\"+54113423792\",\"cancelationTypeId\":null,\"cancelationDetail\":null,\"date\":\"2024-01-15T15:36:57.203\",\"trackUrl\":\"URL\"}"
      },
      "code": "ECONNREFUSED",
      "status": null
    }
[16:36:57.366] INFO (19): [redis_orders_cached.repository] - Update field on OrderCached - HASHMAP 0d104e4e-3002-4948-8ab6-143a1909ab93
    field: "status"
    value: "accepted"
[16:36:57.366] INFO (19): [redis_orders_cached.repository] - Update field on OrderCached - HASHMAP 0d104e4e-3002-4948-8ab6-143a1909ab93
    field: "riderId"
    value: "7a624268-1d13-4220-ab97-1bb63b559e39"
[16:36:57.368] INFO (19): [redis_orders_cached.repository] - Update field on OrderCached - HASHMAP 0d104e4e-3002-4948-8ab6-143a1909ab93
    field: "status"
    value: "accepted"
[16:36:57.368] INFO (19): [update_order.service]
    orderId: "0d104e4e-3002-4948-8ab6-143a1909ab93"
    riderId: "7a624268-1d13-4220-ab97-1bb63b559e39"
    orderStatus: "accepted"
[16:36:58.114] INFO (19): [rider_assignment_worker.service:isOrderAccepted]
    orderId: "0d104e4e-3002-4948-8ab6-143a1909ab93"
    status: "accepted"
    rider: "7a624268-1d13-4220-ab97-1bb63b559e39"
[16:36:58.116] INFO (19): [rider_assignment_worker.service.ts: validateIfOrderWasAccepted]
    orderId: "0d104e4e-3002-4948-8ab6-143a1909ab93"
    orderStatus: "accepted"
[16:37:00.197] INFO (19): [update_status.service] - update status successfully
    riderId: "7a624268-1d13-4220-ab97-1bb63b559e39"
    riderStatus: "atStore"
[16:37:00.203] INFO (19): [create_response_webhook.service]
    response: {
      "orderId": "0d104e4e-3002-4948-8ab6-143a1909ab93",
      "externalId": "tVjJl6SaIP8RD-0NBYZTmUYjYi",
      "referenceId": "XDwwaoM5AphnmSUdCbaUJxZtxi",
      "state": "Rider CheckIn",
      "stateId": 2,
      "ETA": "",
      "riderType": "motorcycle",
      "riderName": "Daniela Moussalli",
      "phoneRider": "+54113423792",
      "cancelationTypeId": null,
      "cancelationDetail": null,
      "date": "2024-01-15T15:37:00.185",
      "trackUrl": "URL"
    }
[16:37:00.206] ERROR (19): [create_response_webhook.service]
    eta: ""
    order: {
      "id": "0d104e4e-3002-4948-8ab6-143a1909ab93",
      "countryCode": "CHL",
      "storeId": "13df914e-655c-42f0-8a2a-ca45cf7101db",
      "description": "Mc Combo Cuarto de Libra",
      "status": "preparing",
      "customer": {
        "name": "DanielaD3",
        "phone": "3512211449",
        "email": "cliente3@cliente.com"
      },
      "deliveryInfo": {
        "coordinates": {
          "latitude": -33.5705055893389,
          "longitude": -70.5542085425313
        },
        "address": "Av. El Peral 6020",
        "postalCode": "8170327",
        "country": "CHL",
        "stateOrProvince": "Santiago de chile",
        "city": "Santiago de chile",
        "streetName": "Av. El Peral",
        "streetNumber": 6020,
        "reference": "",
        "departmentDetails": "casa"
      },
      "metadata": {
        "displayName": "123495",
        "externalOrderId": "tVjJl6SaIP8RD-0NBYZTmUYjYi",
        "referenceOrderId": "XDwwaoM5AphnmSUdCbaUJxZtxi",
        "webhook_url": "{{Webhook}}",
        "originPlatform": "GIGIGO"
      },
      "tip": 15000,
      "tipAsset": "ARS",
      "eta": "2024-01-15T15:41:57.203",
      "etd": null,
      "riderId": "7a624268-1d13-4220-ab97-1bb63b559e39",
      "timestamps": {
        "receivedAt": "2024-01-15T19:36:49.837Z"
      },
      "createdAt": "2024-01-15T19:36:49.838Z",
      "updatedAt": "2024-01-15T19:37:00.185Z"
    }
    error: {
      "message": "connect ECONNREFUSED 127.0.0.1:80",
      "name": "Error",
      "stack":
          Error: connect ECONNREFUSED 127.0.0.1:80
              at Function.AxiosError.from (/app/node_modules/axios/lib/core/AxiosError.js:89:14)
              at RedirectableRequest.handleRequestError (/app/node_modules/axios/lib/adapters/http.js:591:25)
              at RedirectableRequest.emit (node:events:517:28)
              at RedirectableRequest.emit (node:domain:489:12)
              at ClientRequest.eventHandlers.<computed> (/app/node_modules/follow-redirects/index.js:14:24)
              at ClientRequest.emit (node:events:517:28)
              at ClientRequest.emit (node:domain:489:12)
              at Socket.socketErrorListener (node:_http_client:501:9)
              at Socket.emit (node:events:517:28)
              at Socket.emit (node:domain:489:12)
      "config": {
        "transitional": {
          "silentJSONParsing": true,
          "forcedJSONParsing": true,
          "clarifyTimeoutError": false
        },
        "adapter": [
          "xhr",
          "http"
        ],
        "transformRequest": [
          null
        ],
        "transformResponse": [
          null
        ],
        "timeout": 0,
        "xsrfCookieName": "XSRF-TOKEN",
        "xsrfHeaderName": "X-XSRF-TOKEN",
        "maxContentLength": -1,
        "maxBodyLength": -1,
        "env": {},
        "headers": {
          "Accept": "application/json, text/plain, */*",
          "Content-Type": "application/json",
          "User-Agent": "axios/1.4.0",
          "Content-Length": "365",
          "Accept-Encoding": "gzip, compress, deflate, br"
        },
        "method": "post",
        "url": "{{Webhook}}",
        "data": "{\"orderId\":\"0d104e4e-3002-4948-8ab6-143a1909ab93\",\"externalId\":\"tVjJl6SaIP8RD-0NBYZTmUYjYi\",\"referenceId\":\"XDwwaoM5AphnmSUdCbaUJxZtxi\",\"state\":\"Rider CheckIn\",\"stateId\":2,\"ETA\":\"\",\"riderType\":\"motorcycle\",\"riderName\":\"Daniela Moussalli\",\"phoneRider\":\"+54113423792\",\"cancelationTypeId\":null,\"cancelationDetail\":null,\"date\":\"2024-01-15T15:37:00.185\",\"trackUrl\":\"URL\"}"
      },
      "code": "ECONNREFUSED",
      "status": null
    }
[16:37:00.209] INFO (19): [redis_orders_cached.repository] - Update field on OrderCached - HASHMAP 0d104e4e-3002-4948-8ab6-143a1909ab93
    field: "status"
    value: "preparing"
[16:37:00.209] INFO (19): [redis_orders_cached.repository] - Update field on OrderCached - HASHMAP 0d104e4e-3002-4948-8ab6-143a1909ab93
    field: "riderId"
    value: "7a624268-1d13-4220-ab97-1bb63b559e39"
[16:37:00.213] INFO (19): [redis_orders_cached.repository] - Update field on OrderCached - HASHMAP 0d104e4e-3002-4948-8ab6-143a1909ab93
    field: "status"
    value: "preparing"
[16:37:00.213] INFO (19): [update_order.service]
    orderId: "0d104e4e-3002-4948-8ab6-143a1909ab93"
    riderId: "7a624268-1d13-4220-ab97-1bb63b559e39"
    orderStatus: "preparing"
[16:37:02.505] INFO (19): [update_status.service] - update status successfully
    riderId: "7a624268-1d13-4220-ab97-1bb63b559e39"
    riderStatus: "headingToClient"
[16:37:02.507] INFO (19): [create_response_webhook.service]
    response: {
      "orderId": "0d104e4e-3002-4948-8ab6-143a1909ab93",
      "externalId": "tVjJl6SaIP8RD-0NBYZTmUYjYi",
      "referenceId": "XDwwaoM5AphnmSUdCbaUJxZtxi",
      "state": "PickUp",
      "stateId": 3,
      "ETA": "",
      "riderType": "motorcycle",
      "riderName": "Daniela Moussalli",
      "phoneRider": "+54113423792",
      "cancelationTypeId": null,
      "cancelationDetail": null,
      "date": "2024-01-15T15:37:02.495",
      "trackUrl": "URL"
    }
[16:37:02.509] ERROR (19): [create_response_webhook.service]
    eta: ""
    order: {
      "id": "0d104e4e-3002-4948-8ab6-143a1909ab93",
      "countryCode": "CHL",
      "storeId": "13df914e-655c-42f0-8a2a-ca45cf7101db",
      "description": "Mc Combo Cuarto de Libra",
      "status": "onGoing",
      "customer": {
        "name": "DanielaD3",
        "phone": "3512211449",
        "email": "cliente3@cliente.com"
      },
      "deliveryInfo": {
        "coordinates": {
          "latitude": -33.5705055893389,
          "longitude": -70.5542085425313
        },
        "address": "Av. El Peral 6020",
        "postalCode": "8170327",
        "country": "CHL",
        "stateOrProvince": "Santiago de chile",
        "city": "Santiago de chile",
        "streetName": "Av. El Peral",
        "streetNumber": 6020,
        "reference": "",
        "departmentDetails": "casa"
      },
      "metadata": {
        "displayName": "123495",
        "externalOrderId": "tVjJl6SaIP8RD-0NBYZTmUYjYi",
        "referenceOrderId": "XDwwaoM5AphnmSUdCbaUJxZtxi",
        "webhook_url": "{{Webhook}}",
        "originPlatform": "GIGIGO"
      },
      "tip": 15000,
      "tipAsset": "ARS",
      "eta": "2024-01-15T15:41:57.203",
      "etd": null,
      "riderId": "7a624268-1d13-4220-ab97-1bb63b559e39",
      "timestamps": {
        "receivedAt": "2024-01-15T19:36:49.837Z"
      },
      "createdAt": "2024-01-15T19:36:49.838Z",
      "updatedAt": "2024-01-15T19:37:02.495Z"
    }
    error: {
      "message": "connect ECONNREFUSED 127.0.0.1:80",
      "name": "Error",
      "stack":
          Error: connect ECONNREFUSED 127.0.0.1:80
              at Function.AxiosError.from (/app/node_modules/axios/lib/core/AxiosError.js:89:14)
              at RedirectableRequest.handleRequestError (/app/node_modules/axios/lib/adapters/http.js:591:25)
              at RedirectableRequest.emit (node:events:517:28)
              at RedirectableRequest.emit (node:domain:489:12)
              at ClientRequest.eventHandlers.<computed> (/app/node_modules/follow-redirects/index.js:14:24)
              at ClientRequest.emit (node:events:517:28)
              at ClientRequest.emit (node:domain:489:12)
              at Socket.socketErrorListener (node:_http_client:501:9)
              at Socket.emit (node:events:517:28)
              at Socket.emit (node:domain:489:12)
      "config": {
        "transitional": {
          "silentJSONParsing": true,
          "forcedJSONParsing": true,
          "clarifyTimeoutError": false
        },
        "adapter": [
          "xhr",
          "http"
        ],
        "transformRequest": [
          null
        ],
        "transformResponse": [
          null
        ],
        "timeout": 0,
        "xsrfCookieName": "XSRF-TOKEN",
        "xsrfHeaderName": "X-XSRF-TOKEN",
        "maxContentLength": -1,
        "maxBodyLength": -1,
        "env": {},
        "headers": {
          "Accept": "application/json, text/plain, */*",
          "Content-Type": "application/json",
          "User-Agent": "axios/1.4.0",
          "Content-Length": "358",
          "Accept-Encoding": "gzip, compress, deflate, br"
        },
        "method": "post",
        "url": "{{Webhook}}",
        "data": "{\"orderId\":\"0d104e4e-3002-4948-8ab6-143a1909ab93\",\"externalId\":\"tVjJl6SaIP8RD-0NBYZTmUYjYi\",\"referenceId\":\"XDwwaoM5AphnmSUdCbaUJxZtxi\",\"state\":\"PickUp\",\"stateId\":3,\"ETA\":\"\",\"riderType\":\"motorcycle\",\"riderName\":\"Daniela Moussalli\",\"phoneRider\":\"+54113423792\",\"cancelationTypeId\":null,\"cancelationDetail\":null,\"date\":\"2024-01-15T15:37:02.495\",\"trackUrl\":\"URL\"}"
      },
      "code": "ECONNREFUSED",
      "status": null
    }
[16:37:02.511] INFO (19): [redis_orders_cached.repository] - Update field on OrderCached - HASHMAP 0d104e4e-3002-4948-8ab6-143a1909ab93
    field: "status"
    value: "onGoing"
[16:37:02.511] INFO (19): [redis_orders_cached.repository] - Update field on OrderCached - HASHMAP 0d104e4e-3002-4948-8ab6-143a1909ab93
    field: "riderId"
    value: "7a624268-1d13-4220-ab97-1bb63b559e39"
[16:37:02.515] INFO (19): [redis_orders_cached.repository] - Update field on OrderCached - HASHMAP 0d104e4e-3002-4948-8ab6-143a1909ab93
    field: "status"
    value: "onGoing"
[16:37:02.515] INFO (19): [update_order.service]
    orderId: "0d104e4e-3002-4948-8ab6-143a1909ab93"
    riderId: "7a624268-1d13-4220-ab97-1bb63b559e39"
    orderStatus: "onGoing"
[16:37:31.955] INFO (19): Cancellation req from digital
    orderId: "0d104e4e-3002-4948-8ab6-143a1909ab93"
[16:37:31.960] INFO (19): [redis_orders_cached.repository] - Update field on OrderCached - HASHMAP 0d104e4e-3002-4948-8ab6-143a1909ab93
    field: "status"
    value: "returning"
[16:37:31.960] INFO (19): [redis_orders_cached.repository] - Update field on OrderCached - HASHMAP 0d104e4e-3002-4948-8ab6-143a1909ab93
    field: "cancelationDetail"
    value: "cancelacion desde marketplace"
[16:37:31.993] INFO (19): [update_status.service] - update status successfully
    riderId: "7a624268-1d13-4220-ab97-1bb63b559e39"
    riderStatus: "returningTheOrder"
[16:37:32.141] INFO (19): [update_status.service] - update status successfully
    riderId: "7a624268-1d13-4220-ab97-1bb63b559e39"
    riderStatus: "waitingForClient"
[16:37:32.143] INFO (19): [create_response_webhook.service]
    response: {
      "orderId": "0d104e4e-3002-4948-8ab6-143a1909ab93",
      "externalId": "tVjJl6SaIP8RD-0NBYZTmUYjYi",
      "referenceId": "XDwwaoM5AphnmSUdCbaUJxZtxi",
      "state": "At the door",
      "stateId": 4,
      "ETA": "",
      "riderType": "motorcycle",
      "riderName": "Daniela Moussalli",
      "phoneRider": "+54113423792",
      "cancelationTypeId": null,
      "cancelationDetail": null,
      "date": "2024-01-15T15:37:32.130",
      "trackUrl": "URL"
    }
[16:37:32.145] ERROR (19): [create_response_webhook.service]
    eta: ""
    order: {
      "id": "0d104e4e-3002-4948-8ab6-143a1909ab93",
      "countryCode": "CHL",
      "storeId": "13df914e-655c-42f0-8a2a-ca45cf7101db",
      "description": "Mc Combo Cuarto de Libra",
      "status": "delivering",
      "customer": {
        "name": "DanielaD3",
        "phone": "3512211449",
        "email": "cliente3@cliente.com"
      },
      "deliveryInfo": {
        "coordinates": {
          "latitude": -33.5705055893389,
          "longitude": -70.5542085425313
        },
        "address": "Av. El Peral 6020",
        "postalCode": "8170327",
        "country": "CHL",
        "stateOrProvince": "Santiago de chile",
        "city": "Santiago de chile",
        "streetName": "Av. El Peral",
        "streetNumber": 6020,
        "reference": "",
        "departmentDetails": "casa"
      },
      "metadata": {
        "displayName": "123495",
        "externalOrderId": "tVjJl6SaIP8RD-0NBYZTmUYjYi",
        "referenceOrderId": "XDwwaoM5AphnmSUdCbaUJxZtxi",
        "webhook_url": "{{Webhook}}",
        "originPlatform": "GIGIGO"
      },
      "tip": 15000,
      "tipAsset": "ARS",
      "eta": "2024-01-15T15:41:57.203",
      "etd": null,
      "riderId": "7a624268-1d13-4220-ab97-1bb63b559e39",
      "timestamps": {
        "receivedAt": "2024-01-15T19:36:49.837Z"
      },
      "createdAt": "2024-01-15T19:36:49.838Z",
      "updatedAt": "2024-01-15T19:37:32.130Z"
    }
    error: {
      "message": "connect ECONNREFUSED 127.0.0.1:80",
      "name": "Error",
      "stack":
          Error: connect ECONNREFUSED 127.0.0.1:80
              at Function.AxiosError.from (/app/node_modules/axios/lib/core/AxiosError.js:89:14)
              at RedirectableRequest.handleRequestError (/app/node_modules/axios/lib/adapters/http.js:591:25)
              at RedirectableRequest.emit (node:events:517:28)
              at RedirectableRequest.emit (node:domain:489:12)
              at ClientRequest.eventHandlers.<computed> (/app/node_modules/follow-redirects/index.js:14:24)
              at ClientRequest.emit (node:events:517:28)
              at ClientRequest.emit (node:domain:489:12)
              at Socket.socketErrorListener (node:_http_client:501:9)
              at Socket.emit (node:events:517:28)
              at Socket.emit (node:domain:489:12)
      "config": {
        "transitional": {
          "silentJSONParsing": true,
          "forcedJSONParsing": true,
          "clarifyTimeoutError": false
        },
        "adapter": [
          "xhr",
          "http"
        ],
        "transformRequest": [
          null
        ],
        "transformResponse": [
          null
        ],
        "timeout": 0,
        "xsrfCookieName": "XSRF-TOKEN",
        "xsrfHeaderName": "X-XSRF-TOKEN",
        "maxContentLength": -1,
        "maxBodyLength": -1,
        "env": {},
        "headers": {
          "Accept": "application/json, text/plain, */*",
          "Content-Type": "application/json",
          "User-Agent": "axios/1.4.0",
          "Content-Length": "363",
          "Accept-Encoding": "gzip, compress, deflate, br"
        },
        "method": "post",
        "url": "{{Webhook}}",
        "data": "{\"orderId\":\"0d104e4e-3002-4948-8ab6-143a1909ab93\",\"externalId\":\"tVjJl6SaIP8RD-0NBYZTmUYjYi\",\"referenceId\":\"XDwwaoM5AphnmSUdCbaUJxZtxi\",\"state\":\"At the door\",\"stateId\":4,\"ETA\":\"\",\"riderType\":\"motorcycle\",\"riderName\":\"Daniela Moussalli\",\"phoneRider\":\"+54113423792\",\"cancelationTypeId\":null,\"cancelationDetail\":null,\"date\":\"2024-01-15T15:37:32.130\",\"trackUrl\":\"URL\"}"
      },
      "code": "ECONNREFUSED",
      "status": null
    }
[16:37:32.149] INFO (19): [redis_orders_cached.repository] - Update field on OrderCached - HASHMAP 0d104e4e-3002-4948-8ab6-143a1909ab93
    field: "status"
    value: "delivering"
[16:37:32.149] INFO (19): [redis_orders_cached.repository] - Update field on OrderCached - HASHMAP 0d104e4e-3002-4948-8ab6-143a1909ab93
    field: "riderId"
    value: "7a624268-1d13-4220-ab97-1bb63b559e39"
[16:37:32.152] INFO (19): [redis_orders_cached.repository] - Update field on OrderCached - HASHMAP 0d104e4e-3002-4948-8ab6-143a1909ab93
    field: "status"
    value: "delivering"
[16:37:32.152] INFO (19): [update_order.service]
    orderId: "0d104e4e-3002-4948-8ab6-143a1909ab93"
    riderId: "7a624268-1d13-4220-ab97-1bb63b559e39"
    orderStatus: "delivering"
[16:37:51.279] INFO (19): [update_status.service] - update status successfully
    riderId: "7a624268-1d13-4220-ab97-1bb63b559e39"
    riderStatus: "online"
[16:37:51.281] INFO (19): [create_response_webhook.service]
    response: {
      "orderId": "0d104e4e-3002-4948-8ab6-143a1909ab93",
      "externalId": "tVjJl6SaIP8RD-0NBYZTmUYjYi",
      "referenceId": "XDwwaoM5AphnmSUdCbaUJxZtxi",
      "state": "Delivered",
      "stateId": 5,
      "ETA": "",
      "riderType": "motorcycle",
      "riderName": "Daniela Moussalli",
      "phoneRider": "+54113423792",
      "cancelationTypeId": null,
      "cancelationDetail": null,
      "date": "2024-01-15T15:37:51.263",
      "trackUrl": "URL"
    }
[16:37:51.283] ERROR (19): [create_response_webhook.service]
    eta: ""
    order: {
      "id": "0d104e4e-3002-4948-8ab6-143a1909ab93",
      "countryCode": "CHL",
      "storeId": "13df914e-655c-42f0-8a2a-ca45cf7101db",
      "description": "Mc Combo Cuarto de Libra",
      "status": "delivered",
      "customer": {
        "name": "DanielaD3",
        "phone": "3512211449",
        "email": "cliente3@cliente.com"
      },
      "deliveryInfo": {
        "coordinates": {
          "latitude": -33.5705055893389,
          "longitude": -70.5542085425313
        },
        "address": "Av. El Peral 6020",
        "postalCode": "8170327",
        "country": "CHL",
        "stateOrProvince": "Santiago de chile",
        "city": "Santiago de chile",
        "streetName": "Av. El Peral",
        "streetNumber": 6020,
        "reference": "",
        "departmentDetails": "casa"
      },
      "metadata": {
        "displayName": "123495",
        "externalOrderId": "tVjJl6SaIP8RD-0NBYZTmUYjYi",
        "referenceOrderId": "XDwwaoM5AphnmSUdCbaUJxZtxi",
        "webhook_url": "{{Webhook}}",
        "originPlatform": "GIGIGO"
      },
      "tip": 15000,
      "tipAsset": "ARS",
      "eta": "2024-01-15T15:41:57.203",
      "etd": null,
      "riderId": "7a624268-1d13-4220-ab97-1bb63b559e39",
      "timestamps": {
        "receivedAt": "2024-01-15T19:36:49.837Z"
      },
      "createdAt": "2024-01-15T19:36:49.838Z",
      "updatedAt": "2024-01-15T19:37:51.263Z"
    }
    error: {
      "message": "connect ECONNREFUSED 127.0.0.1:80",
      "name": "Error",
      "stack":
          Error: connect ECONNREFUSED 127.0.0.1:80
              at Function.AxiosError.from (/app/node_modules/axios/lib/core/AxiosError.js:89:14)
              at RedirectableRequest.handleRequestError (/app/node_modules/axios/lib/adapters/http.js:591:25)
              at RedirectableRequest.emit (node:events:517:28)
              at RedirectableRequest.emit (node:domain:489:12)
              at ClientRequest.eventHandlers.<computed> (/app/node_modules/follow-redirects/index.js:14:24)
              at ClientRequest.emit (node:events:517:28)
              at ClientRequest.emit (node:domain:489:12)
              at Socket.socketErrorListener (node:_http_client:501:9)
              at Socket.emit (node:events:517:28)
              at Socket.emit (node:domain:489:12)
      "config": {
        "transitional": {
          "silentJSONParsing": true,
          "forcedJSONParsing": true,
          "clarifyTimeoutError": false
        },
        "adapter": [
          "xhr",
          "http"
        ],
        "transformRequest": [
          null
        ],
        "transformResponse": [
          null
        ],
        "timeout": 0,
        "xsrfCookieName": "XSRF-TOKEN",
        "xsrfHeaderName": "X-XSRF-TOKEN",
        "maxContentLength": -1,
        "maxBodyLength": -1,
        "env": {},
        "headers": {
          "Accept": "application/json, text/plain, */*",
          "Content-Type": "application/json",
          "User-Agent": "axios/1.4.0",
          "Content-Length": "361",
          "Accept-Encoding": "gzip, compress, deflate, br"
        },
        "method": "post",
        "url": "{{Webhook}}",
        "data": "{\"orderId\":\"0d104e4e-3002-4948-8ab6-143a1909ab93\",\"externalId\":\"tVjJl6SaIP8RD-0NBYZTmUYjYi\",\"referenceId\":\"XDwwaoM5AphnmSUdCbaUJxZtxi\",\"state\":\"Delivered\",\"stateId\":5,\"ETA\":\"\",\"riderType\":\"motorcycle\",\"riderName\":\"Daniela Moussalli\",\"phoneRider\":\"+54113423792\",\"cancelationTypeId\":null,\"cancelationDetail\":null,\"date\":\"2024-01-15T15:37:51.263\",\"trackUrl\":\"URL\"}"
      },
      "code": "ECONNREFUSED",
      "status": null
    }
[16:37:51.285] INFO (19): [redis_orders_cached.repository] - Update field on OrderCached - HASHMAP 0d104e4e-3002-4948-8ab6-143a1909ab93
    field: "status"
    value: "delivered"
[16:37:51.285] INFO (19): [redis_orders_cached.repository] - Update field on OrderCached - HASHMAP 0d104e4e-3002-4948-8ab6-143a1909ab93
    field: "riderId"
    value: "7a624268-1d13-4220-ab97-1bb63b559e39"
[16:37:51.288] INFO (19): [redis_orders_cached.repository] - Update field on OrderCached - HASHMAP 0d104e4e-3002-4948-8ab6-143a1909ab93
    field: "status"
    value: "delivered"
[16:37:51.290] INFO (19): [update_order.service]
    orderId: "0d104e4e-3002-4948-8ab6-143a1909ab93"
    riderId: "7a624268-1d13-4220-ab97-1bb63b559e39"
    orderStatus: "delivered"






















































Leave a Comment