HashtagSell / posting-api

API for storage and retrieval of posting details for Hashtagsell
0 stars 0 forks source link

Craigslist filtering causing 500 error when looking up user posts #64

Closed that1guy closed 9 years ago

that1guy commented 9 years ago
https://production-posting-api.hashtagsell.com/v1/postings/?filters[mandatory][exact][username]=bdavis
{
  "name": "PersistenceError",
  "message": "unable to find postings",
  "sourceError": {
    "statusCode": 400,
    "query": {
      "fields": [],
      "query": {
        "filtered": {
          "query": {
            "bool": {
              "must": [
                {
                  "match": {
                    "username": "bdavis"
                  }
                }
              ],
              "must_not": [
                {
                  "term": {
                    "source": "CRAIG"
                  }
                }
              ]
            }
          },
          "filter": {
            "and": []
          }
        }
      },
      "sort": [
        {
          "createdAt": {
            "order": "desc"
          }
        }
      ]
    },
    "returnOptions": {
      "count": 100,
      "filters": {
        "mandatory": {
          "exact": {}
        }
      },
      "sort": {},
      "start": 0
    }
  },
  "statusCode": 500,
  "options": {
    "count": 100,
    "filters": {
      "mandatory": {
        "exact": {
          "username": "bdavis"
        }
      }
    },
    "sort": {},
    "start": 0
  }
}
brozeph commented 9 years ago

Fixed in staging - will deploy to production shortly once re-indexing is complete in staging

brozeph commented 9 years ago

Deploying to production - verified query is work as expected in production environment!