Hi Team, I am getting an error while reading data...
# troubleshooting
d
Hi Team, I am getting an error while reading data using tap-rest-api-msdk. Exception message:
Copy code
'<?xml version="1.0" ?><exception><message>Expecting path in the following format: /{serviceName}/{methodName}?{parameters}.</message></exception>'
In tap, on the below mentioned line I am receiving 200 response code.
Copy code
r = requests.get(
            self.config["api_url"] + path,
            auth=self.http_auth,
            params=params,
            headers=headers,
        )
But when logging r.text, it is showing the above error & r.json [records = extract_jsonpath(records_path, input=r.json()) ], it is giving below error. Can anyone please help on the same?
Copy code
{JSONDecodeError}Expecting value: line 1 column 1 (char 0)
1
e
It seems the API responds with XML? It's not currently supported: https://github.com/meltano/sdk/issues/220
1
d
@Edgar Ramírez (Arch.dev) Thanks for your suggestion. Have switched from XML based output api endpoint to json & it started working.
👍 1