This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Facing issue while retrieving Recent recovery point information via REST API from Rapid Recovery 6.1

I am facing issue while retrieving recent recovery points information via REST API from Rapid Recovery 6.1. Getting 500-Internal server error when we try below REST API request with Rapid Recovery 6.1.

When we try same API request with AppAssure 5.4.3 (older version), it works fine. Is there any changes done with Rapid Recovery 6.1 version related to this API .

Setup Details:

- Installed Rapid Recovery 6.1 on Windows 2012 R2 machine and protecting 3 test machines including Windows 2016 machine

 

Request Details: -

Method: PUT

URL: https://<RR Core IP>:8006/apprecovery/api/core/recoveryPoints/recent

Request Body:

<?xml version="1.0" ?>
<getMostRecentRecoveryPoints xmlns="http://apprecovery.com/management/api/2010/05">
  <agentIds>
    <agentId>4bdf3815-ca05-4f3c-bbb8-8b4c30052ad5</agentId>
  </agentIds>
</getMostRecentRecoveryPoints

 

Response:-

  1. Status Code: 500 Internal Server Error
  2. Content-Length: 2129
  3. Content-Type: application/xml
  4. Date: Thu, 22 Dec 2016 08:56:49 GMT
  5. Etag: 1B2M2Y8AsgTpgAmY7PhCfg==
  6. Server: Microsoft-HTTPAPI/2.0

Response Body:

<serverError>

<message>The method was not found for this Request.</message>
<type>System.MissingMethodException</type>
<detail>
System.MissingMethodException: The method was not found for this Request. at Replay.ServiceHost.Implementation.Hosting.ServiceHost.HandleIncomingRequest(IHttpRequestEventArgs eventArgs)
</detail>
<stackTrace>
System.MissingMethodException: The method was not found for this Request. at Replay.ServiceHost.Implementation.Hosting.ServiceHost.HandleIncomingRequest(IHttpRequestEventArgs eventArgs)
</stackTrace>

<serverException>

<message>The method was not found for this Request.</message>
<type>System.MissingMethodException</type>
<detail>
System.MissingMethodException: The method was not found for this Request. at Replay.ServiceHost.Implementation.Hosting.ServiceHost.HandleIncomingRequest(IHttpRequestEventArgs eventArgs)
</detail>
<rawException>
AAEAAAD/////AQAAAAAAAAAEAQAAAB1TeXN0ZW0uTWlzc2luZ01ldGhvZEV4Y2VwdGlvbg8AAAAJ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one provide any pointers to resolve this issue?

 

Thanks and Regards,

Laxmikant

  • Hi Laxmikant:
    The telling info in the error message is "System.MissingMethodException" -- which means that the PUT method is not defined for the "recoveryPoints/recent" REST API call.
    I have tried the same with POST instead of PUT and it worked for me.

    Encouraged by the result, I went to the API documentation as I thought that there is a documentation error. However, the POST method is mentioned in the documentation as well.

    I went to the 6.0.2.144 documentation and indeed, the referenced method is PUT.

     

    It turns out that some of the API REST call methods have been changed from 6.0.2 to 6.1

    To get the newest API documentation, please go to the Release Notes page linked here.

    Hope that this helps.

  • Thanks Tudor for the help.
    I have tried suggested method i.e. POST method and now able to get recent recovery point information from Rapid Recovery 6.1 with REST API.

    Earlier we were using PUT method while retrieving recovery point information from AppAssure 5.4.3 version.

    Regards,
    Laxmikant