Closed mechanicles closed 7 years ago
Santosh, which MLS were you acting as when this request was fired off - also was it a demo request or a production request? If you don't recall, could you email me (dylan@fbsdata.com) the API key (we won't need the secret) that you had used to make the request? I'll need to take a look through our server side logs to determine what caused the timeout.
Closing stale issue
This is my final query which becomes like,
{:_select=>"Id,ListingKey,ListPrice,BathsTotal,BedsTotal,LotSizeArea,StreetNumber,StreetDirPrefix,StreetName,StreetSuffix,StreetDirSuffix,StreetAdditionalInfo,City,PostalCode,YearBuilt,WaterFrontYN,DaysOnMarket,ListingId,ListingPrefix,PhotosCount,OnMarketDate,MlsStatus,BuildingAreaTotal,Latitude,Longitude,CustomFields", :_expand=>"PrimaryPhoto", :_limit=>10, :_pagination=>1, :_filter=>"(MlsStatus Eq 'Closed' OR MlsStatus Eq 'Expired') AND (PropertyType Eq 'A')", :_orderby=>"-ListPrice", :_page=>1}
If I fire this query, I get this error
SparkApi::ClientError (The requested operation took too long to perform. If running a search, try simplifying or adding additional restrictions to your _filter. If ordering, try including the _orderby criteria in your _filter parameter.)
I also added order_by and page criteria in the filter, still it gives me that error.
It works great on other status like Active, Active Contingent, Pending and Temp Off Market.