Closed alichtman closed 6 years ago
File "/Users/alichtman/Desktop/Projects/TypeSense/server/server.py", line 194, in change_conversation {"$push": {"connections": ObjectId(str(connection))}} TypeError: unhashable type: 'dict'
Curl Request:
curl -X POST -H "Content-Type: application/json" -d '{"email": "shobrookj@gmail.com", "fb_id": "shobrookj", "messages": [{"author": true, "message": "Test 1"}, {"author": true, "message": "Test 2"}, {"author": true, "message": "Test 3"}, {"author": true, "message": "Test 4"}, {"author": true, "message": "Test 5"}, {"author": true, "message": "Test 6"}, {"author": true, "message": "Test 7"}, {"author": true, "message": "Test 8"}, {"author": true, "message": "Test 9"}, {"author": true, "message": "Test 10"}, {"author": true, "message": "Test 11"}, {"author": true, "message": "Test 12"}, {"author": true, "message": "Test 13"}, {"author": true, "message": "Test 14"}, {"author": true, "message": "Test 15"}, {"author": true, "message": "Test 16"}, {"author": true, "message": "Test 17"}, {"author": true, "message": "Test 18"}, {"author": true, "message": "Test 19"}, {"author": true, "message": "Test 20"}]}' http://localhost:5000/TypeSense/api/change_conversation
Curl Request: