RESTful knowledge exchange
Post Reply
JaySt
Service Provider
Posts: 448
Liked: 85 times
Joined: Jun 09, 2015 7:08 pm
Full Name: JaySt
Contact:

v12.1 install with api version 1.0-rev41

Post by JaySt »

i've upgraded a B&R install to v12.1 and we're looking at the REST API to perhaps use it somehow.
I'm getting some strange behavior. i'm getting swagger UI at https://<ip>:9419/swagger but not on the url opened by the BR console when navigating console->swagger from the console menu. it opens https://<ip:9419/swagger/ui/index.html but shows the below error in the browser.

Secondly, when i open https://<ip>:9419/swagger , im presented with swagger telling me there are two api versions available: v1-rev40 and v1-rev41. But i think v12.1 should have newer versions, correct?
Any ideas on why these things might happen?

Code: Select all

{
    "Message": "An error has occurred.",
    "ExceptionMessage": "Mapping not found - index.html",
    "ExceptionType": "Swashbuckle.SwaggerUi.AssetNotFound",
    "StackTrace": "   at Swashbuckle.SwaggerUi.EmbeddedAssetProvider.GetAsset(String rootUrl, String path)\r\n   at Swashbuckle.Application.SwaggerUiHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)"
}
Veeam Certified Engineer
JaySt
Service Provider
Posts: 448
Liked: 85 times
Joined: Jun 09, 2015 7:08 pm
Full Name: JaySt
Contact:

Re: v12.1 install with api version 1.0-rev41

Post by JaySt »

case 07082995
Veeam Certified Engineer
JaySt
Service Provider
Posts: 448
Liked: 85 times
Joined: Jun 09, 2015 7:08 pm
Full Name: JaySt
Contact:

Re: v12.1 install with api version 1.0-rev41

Post by JaySt »

ok this one seems to be fixed! great help provided by support!

in this case,
there's a registry value "Port" within the following key.
HKEY_LOCAL_MACHINE\SOFTWARE\Veeam\Veeam Backup and Replication\API\DbProvider

according to support, default it should have the value 6172, but somehow it was 9419 in this environment. Changed it, rebooted, fixed. It now shows the latest API version and swagger url openend by the console is now properly displaying the swagger interface.
Veeam Certified Engineer
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests