OpenFn / adaptors

The new home for OpenFn adaptors; re-usable connectors for the most common DPGs and DPI building blocks.
GNU General Public License v3.0
4 stars 8 forks source link

Satusehat: Fix error handling #655

Closed hunterachieng closed 3 days ago

hunterachieng commented 4 days ago

Satusehat has a different way of logging its errors and this affects how we display them on the logs.

A fix is suggested to ensure proper error logs for the satusehat adaptor.

Currently, this is how the logs look like from satusehat:


    "resourceType": "OperationOutcome",
    "text": {
        "status": "generated"
    },
    "issue": [
        {
            "severity": "error",
            "code": "duplicate",
            "details": {
                "text": "Found duplicate resource: Encounter"
            }
        }
    ]
}```
hunterachieng commented 4 days ago

@aleksa-krolls I have created this issue for a quick fix on satusehat. Currently, we are unable to read the whole error message. Can we prioritise this since its creating a blocker in the HIH workflow?

aleksa-krolls commented 4 days ago

@hunterachieng sure! Will add to the sprint now