def post(self): try: pd = json.loads(request.get_data()) for asin in pd: i = Item() i.from_asin(asin) except: return "",500