AttributeError: 'NoneType' object has no attribute 'to_dict'

Hi,

I am using the below line of code using Mapillary SDK get_image_close_to, and I am facing an AttributeError: ‘NoneType’ object has no attribute ‘to_dict’.
I am not sure what is the cause of this issue is. Does anyone have any leads?

data: dict = mly.get_image_close_to(latitude=latitude,
longitude=longitude,
radius=35,
# image_type=“flat”,
min_captured_at=“2018-01-01”).to_dict()

This is the latest traceback being experienced:
Requesting GET to https://tiles.mapillary.com/maps/vtp/mly1_public/2/14/4826/6156/?access_token=ML%???
Response 200 OK received in 116ms
Requesting GET to https://tiles.mapillary.com/maps/vtp/mly1_public/2/14/4826/6153/?access_token=MLY???
Response 200 OK received in 98ms
Requesting GET to https://tiles.mapillary.com/maps/vtp/mly1_public/2/14/4662/6015/?access_token=???
Response 200 OK received in 54ms
Traceback (most recent call last):
File “4.py”, line 65, in
AttributeError: ‘NoneType’ object has no attribute ‘to_dict’