Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Rest 大西洋储藏室API 401_Rest_Pull Request_Bitbucket Server - Fatal编程技术网

Rest 大西洋储藏室API 401

Rest 大西洋储藏室API 401,rest,pull-request,bitbucket-server,Rest,Pull Request,Bitbucket Server,我正试图使用stashrestapi来获取使用URI的所有打开的pull请求的列表 但我总是收到一份包含以下内容的401未授权证书: {"errors":[{"context":null,"message":"You are not permitted to access this resource","exceptionName":"com.atlassian.stash.exception.AuthorisationException"}]} 我使用HTTP Basic Auth,用户肯定

我正试图使用stashrestapi来获取使用URI的所有打开的pull请求的列表

但我总是收到一份包含以下内容的401未授权证书:

{"errors":[{"context":null,"message":"You are not permitted to access this resource","exceptionName":"com.atlassian.stash.exception.AuthorisationException"}]}
我使用HTTP Basic Auth,用户肯定对存储库有适当的权限。如果我在登录时或使用JSESSIONID Cookie时在浏览器中打开REST URL,它也可以工作


我是否可能需要在隐藏中启用基本身份验证?我在管理设置中找不到这样的选项。

在atlassian支持频道上问这个问题可能更好,但应该始终支持基本身份验证。检查您的用户名/密码是否正确,以及您是否正在执行基本身份验证的正确步骤,例如base64编码“username:password”,使用cookie名称“Authorization”,并将cookie的值设置为“basic:”然后是用户名和密码的base64编码。想知道您是否找到了问题@SchwaFa的答案吗?您能否提供有关如何进行身份验证的更多详细信息?它应该可以使用开箱即用的basic auth