向JIRA进行身份验证时卷曲错误 [英] Error in curl when authenticating into JIRA

查看:102
本文介绍了向JIRA进行身份验证时卷曲错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

curl  -H "Content-Type: application/json; charset=UTF-8" -d '{"username":"admin","password":"admin"}' http://localhost:2990/jira/rest/auth/1/session

我在DOS中使用了上面的查询,并且总是出现以下错误:

I used the above query in DOS and I always get the following error :

{"errorMessages":[意外字符('"(代码39)):预期为 有效值(数字,字符串,数组,对象,真",假"或 'null')\ n,位于[来源: org.apache.catalina.connector.CoyoteInputStream@1fd9611;行:1 栏:2]]}

{"errorMessages":["Unexpected character (''' (code 39)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')\n at [Source: org.apache.catalina.connector.CoyoteInputStream@1fd9611; line: 1, column: 2]"]}

我尝试了许多排列和组合..仍然没有用..

I tried many permutations and combinations .. Still it did not work ..

推荐答案

在OSX上为我工作. 39是单引号字符,但我看不出它是从哪里来的.

Works for me on OSX. 39 is a single quote char but I don't see where that comes from.

这篇关于向JIRA进行身份验证时卷曲错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆