无法在Jmeter中获取访问令牌

问题描述 投票:0回答:1

我正在尝试在Jmeter中获取访问令牌,并且与邮递员一起工作正常,但最终在Jmeter中出现响应错误]

{
   "error":"invalid_grant",
   "error_description":"The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client",
   "status_code":400
}

邮递员身体“在此处输入图像描述”

邮递员头“在此处输入图像描述”

我发布此请求时获得访问令牌作为json响应

我在Jmeter中的设置如下:

HTTP请求“在此处输入图像描述”

HTTP标头“在此处输入图像描述”“ >>

我在jmeter中运行测试时得到以下响应

{
   "error":"invalid_grant",
   "error_description":"The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client",
   "status_code":400
}

我正在尝试在Jmeter中获取访问令牌,并且它与邮递员一起正常工作,但是在Jmeter中,响应最终出现了错误,说{“ error”:“ invalid_grant”,“ error_description”:“ The提供的。 ..

rest api oauth jmeter performance-testing
1个回答
0
投票

鉴于您发送相同的请求,您应该得到相同的响应,因此,这些请求很可能在某种程度上有所不同。

© www.soinside.com 2019 - 2024. All rights reserved.