
curl -X POST -d '{"source":"http://user:password@siteA.com:5984/main","target":"main"}' -H 'Content-Type: application/Json' http://user:password@siteB.com/_replicate 它不断返回以下错误:
{"error":"bad_request","reason":"invalID UTF-8 JsON"} 据我所知,JsON似乎有效.有任何想法吗?
我也在使用Powershell.
解决方法 它也经常发生在我身上. PowerShell解析器(谁知道原因)删除了Json中的引号.所以它发送它像'{来源:http:// user:password@siteA.com:5984 / main,target:main}’
你需要像这样调用它:
curl -X POST -d '{"""source""":"""http://user:password@siteA.com:5984/main""","""target""":"""main"""}' -H 'Content-Type: application/Json' http://user:password@siteB.com/_replicate 看看http://pscx.codeplex.com/模块.发现此类问题时,EchoArgs可能会有所帮助.
总结以上是内存溢出为你收集整理的CURL CouchDB复制命令 – 无效的JSON全部内容,希望文章能够帮你解决CURL CouchDB复制命令 – 无效的JSON所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)