Stéphane Burwash
04/12/2022, 4:16 PMclass DealsStream(HubspotStream):
name = "deals"
path = "/crm/v3/objects/deals"
primary_keys = ["id"]
replication_key = "updatedAt"
records_jsonpath = "$.results[*]"
next_page_token_jsonpath = "$.paging.next.after"
def schema(self) -> dict:
"""Dynamically detect the json schema for the stream.
This is evaluated prior to any records being retrieved.
"""
properties = requests.get(self.url_base+f"/crm/v3/properties/{self.name}", headers=self.http_headers).json()
I get this error:
File "/home/stephane/Documents/projects/meltano-projects/taps/tap-hubspot/.venv/lib/python3.9/site-packages/singer/schema.py", line 98, in from_dict
properties = data.get('properties')
AttributeError: 'function' object has no attribute 'get'
Have you ever experienced this?