cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to refresh unexpired Oauth 2.0 token using testserver

Highlighted
Contributor

Unable to refresh unexpired Oauth 2.0 token using testserver

 

With testserver I am trying to refresh an Oauth2.0 token using the procedure described in the docs, with a recipe file as specified.   I am trying to refresh a token which is not expired.

 

Why might I be getting this error message response to my curl request ?

 

 

{
"status" : "FAILED",
"timeTaken" : 11113,
"executionID" : "24e14697-0b08-40cb-83b4-0b216c4c36d1",
"testSuiteResultReports" : [ {
"testSuiteName" : "Recipe Test Suite",
"testCaseResultReports" : [ {
"testCaseName" : "Recipe Test Case",
"testStepResultReports" : [ {
"messages" : [ "java.lang.RuntimeException: Unable to refresh expired access token." ],
"timeTaken" : 0,
"testStepName" : "GET request 1",
"messageExchange" : "/executions/24e14697-0b08-40cb-83b4-0b216c4c36d1/transactions/1481733582616",
"transactionId" : 1481733582616,
"assertionStatus" : "FAILED"
} ]
} ]
} ],
"unresolvedFiles" : [ ],
"startTime" : 1481733582606,
"projectName" : "Recipe REST Project"

 

P.S. I am able to create and refresh tokens in this environment using Postman, and using ReadyAPI-Pro GUI. Only the testserver is giving me problems.

 

4 REPLIES 4
Highlighted
Community Manager

Re: Unable to refresh unexpired Oauth 2.0 token using testserver

Hi Charlesfradley,

 

 

Could you please check if you see the same issue in the latest maintenance Ready! API version? You can download it here:

https://support.smartbear.com/downloads/readyapi/nightly-builds/

---------
Tanya Gorbunova
SmartBear Community Manager

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
Highlighted
Contributor

Re: Unable to refresh unexpired Oauth 2.0 token using testserver

 

The issue is with Testserver, not with ReadyAPI.

 

The link you provided contains downloads for ReadyAPI not Testserver.

 

 

Highlighted
Community Manager

Re: Unable to refresh unexpired Oauth 2.0 token using testserver

My bad.

I've investigated this issue and found out that it had already been submitted to our bug-tracking system. I see that you are working with Aleksey Kolosov from our Customer Care Team. Please continue working with him and share the solution with us.

---------
Tanya Gorbunova
SmartBear Community Manager

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
Highlighted
Contributor

Re: Unable to refresh unexpired Oauth 2.0 token using testserver

 

Thanks, yes.

 

I was kinda hoping somebody else might have some experience


@TanyaGorbunova wrote:

My bad.

I've investigated this issue and found out that it had already been submitted to our bug-tracking system. I see that you are working with Aleksey Kolosov from our Customer Care Team. Please continue working with him and share the solution with us.



in this area.

 

New Here?
Join us and watch the welcome video:
Announcements
TechCorner Leaderboard
Compete with community members in the TechCorner Challenge and get into the Leaderboard!

Rank Participant Points Earned
1 msiadak 12
2 nmrao 8
3 HimanshuTayal 3
Top Kudoed Authors