ValueError: Element must be either list or str. Got: <class 'method'>

While testing connector locally facing above issue again and again
Connector : Python

Error:
Internal message: Element must be either list or str. Got: <class ‘method’>
Failure type: system_error

def parse_response(self, response: requests.Response, **kwargs) -> Iterable[Mapping]:
    self.logger.info("Parsing response...")
    data = response.json()["content"]
    for record in data:
        yield record

 this is how i am parsing the response and in terminal it is reading all records but in UI 
 showing above error
  
   def parse_response(self, response: requests.Response, **kwargs) -> Iterable[Mapping]:
    self.logger.info("Parsing response...")
    data = response.json()["content"]
    return data

using this gives same error