Guest User

Dump of test triggering error handling in BigCouch

a guest
Feb 5th, 2013
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. < PUT /testqueryingviews/ HTTP/1.1<
  2. < Host: localhost<
  3. < Content-Type: application/json<
  4. < Accept: application/json<
  5. <
  6. > HTTP/1.1 201 Created
  7. > X-Couch-Request-ID: fb612d29
  8. > Server: CouchDB/1.1.1 (Erlang OTP/R14B04)
  9. > Location: http://localhost/testqueryingviews
  10. > Date: Tue, 05 Feb 2013 11:48:24 GMT
  11. > Content-Type: application/json
  12. > Content-Length: 12
  13. > Cache-Control: must-revalidate
  14. >
  15. > {"ok":true}
  16. < PUT /testqueryingviews/_design/feat HTTP/1.1<
  17. < Host: localhost<
  18. < Content-Type: application/json<
  19. < Content-Length: 592<
  20. < Accept: application/json<
  21. <
  22. < {"_id": "_design/feat", ".type": "design", "filters": {}, "language": "python", "views": {"some_view": {"map": "def map(doc):\n if doc['.type'] == 'dummy':\n field = doc.get('field', None)\n yield field, {\"value\": doc.get(VALUE_FIELD, None),\n \"field\": field}\nVALUE_FIELD = 'value'", "reduce": "def reduce(keys, values):\n value = 0\n for row in values:\n value += row['value']\n return value"}, "counting_view": {"map": "def map(doc):\n if doc['.type'] == 'dummy':\n yield doc.get('field', None), 1", "reduce": "_count"}}}> HTTP/1.1 201 Created
  23. > X-Couch-Request-ID: 03165a69
  24. > Server: CouchDB/1.1.1 (Erlang OTP/R14B04)
  25. > Location: http://localhost/testqueryingviews/_design/feat
  26. > Etag: "1-4eb961d574280e3146f6d7075d7b889d"
  27. > Date: Tue, 05 Feb 2013 11:48:25 GMT
  28. > Content-Type: application/json
  29. > Content-Length: 75
  30. > Cache-Control: must-revalidate
  31. >
  32. > {"ok":true,"id":"_design/feat","rev":"1-4eb961d574280e3146f6d7075d7b889d"}
  33. < GET /testqueryingviews/_design/feat/_view/some_view?reduce=false HTTP/1.1<
  34. < Host: localhost<
  35. < Accept: application/json<
  36. <
  37. > HTTP/1.1 500 Internal Server Error
  38. > X-Couch-Request-ID: 0635d75f
  39. > Server: CouchDB/1.1.1 (Erlang OTP/R14B04)
  40. > Date: Tue, 05 Feb 2013 11:48:25 GMT
  41. > Content-Type: application/json
  42. > Content-Length: 53
  43. > Cache-Control: must-revalidate
  44. >
  45. > {"error":"unknown_query_language","reason":"python"}
  46. HTTP/1.1 500 Internal Server Error
  47. X-Couch-Request-ID: 0635d75f
  48. Server: CouchDB/1.1.1 (Erlang OTP/R14B04)
  49. Date: Tue, 05 Feb 2013 11:48:25 GMT
  50. Content-Type: application/json
  51. Content-Length: 170
  52. Cache-Control: must-revalidate
  53.  
  54. {"error":"function_clause","reason":null,"stack":["chttpd:end_delayed_json_response/1","chttpd:handle_request/1","mochiweb_http:headers/5","proc_lib:init_p_do_apply/3"]}
  55. > HTTP/1.1 500 Internal Server Error
Add Comment
Please, Sign In to add comment