You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/05/17 18:33:33 UTC

[GitHub] thescrublet commented on issue #1293: RHEL / CentOS 7 `js-1.8.5-20` package breaks couchjs

thescrublet commented on issue #1293: RHEL / CentOS 7 `js-1.8.5-20` package breaks couchjs
URL: https://github.com/apache/couchdb/issues/1293#issuecomment-389965539
 
 
   Just in case you didn't have enough information on this already, when we found this occurring we tracked it down to ONLY PUT requests with our design documents:
   
   couchdb_1 | SyntaxError: JSON.parse
   couchdb_1 | SyntaxError: JSON.parse
   couchdb_1 | Stacktrace:
   couchdb_1 | ()@./share/server/main.js:1576
   couchdb_1 | ()@./share/server/main.js:1603
   couchdb_1 | @./share/server/main.js:1
   couchdb_1 | Failed to execute script.
   couchdb_1 | Stacktrace:
   couchdb_1 | ()@./share/server/main.js:1576
   couchdb_1 | ()@./share/server/main.js:1603
   couchdb_1 | @./share/server/main.js:1
   couchdb_1 | Failed to execute script.
   
   And that couchdb log would scroll until the service was stopped. We used the following to trigger the error:
   curl -vX PUT -H “Content-Type: application/json” http://127.0.0.1:5984/our-database/_design/dom -d ‘{ “_id”: “_design/dom”, “views”: { “dom”: { “map”: “function (doc) { // our function code }” } }, “language”: “javascript” }’
   
   PUTs of non-design-docs worked, POSTs and GETs worked, it was just PUT of /_design/ddoc that was a problem.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services