Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Radarr nightly (4.0.0) has no v2 API, only V3 #731

Closed
lunks opened this issue Sep 30, 2021 · 2 comments
Closed

Radarr nightly (4.0.0) has no v2 API, only V3 #731

lunks opened this issue Sep 30, 2021 · 2 comments
Labels

Comments

@lunks
Copy link

lunks commented Sep 30, 2021

I'm trying to add indexers to Radarr on the latest nightly, 4.0.0.5309, but the /system/status call has to use the correct namespace on /api/v3 instead of just /api.

Error message in log is:

URL call to http://<radarr-ip-address>:7878/api/system/status returned 404: Not Found
{
  "message": "NotFound"
}

Manually calling /api/v3/system/status does work:

{
   "version":"4.0.0.5309",
   "buildTime":"2021-09-28T04:11:02Z",
   "isDebug":false,
   "isProduction":true,
   "isAdmin":false,
   "isUserInteractive":true,
   "startupPath":"/app/radarr/bin",
   "appData":"/config",
   "osName":"ubuntu",
   "osVersion":"20.04",
   "isNetCore":true,
   "isLinux":true,
   "isOsx":false,
   "isWindows":false,
   "isDocker":true,
   "mode":"console",
   "branch":"nightly",
   "authentication":"none",
   "sqliteVersion":"3.31.1",
   "migrationVersion":197,
   "urlBase":"",
   "runtimeVersion":"5.0.10",
   "runtimeName":"netCore",
   "startTime":"2021-09-30T09:38:34Z",
   "packageVersion":"4.0.0.5309-ls122",
   "packageAuthor":"linuxserver.io",
   "packageUpdateMechanism":"docker"
}

I think all that's needed to do is update this conditional to handle radarr v3 specifically:

if (addRequest.getExternalTool() == AddRequest.ExternalTool.Lidarr || addRequest.getExternalTool() == AddRequest.ExternalTool.Readarr) {
path = "/api/v1/system/status";
} else {
path = "/api/system/status";
}

@lunks lunks added the bug label Sep 30, 2021
@theotherp
Copy link
Owner

If I were nitpicky I'd say it's a feature request to support the nightly branch of another tool. I'll try to get it working soon.

@lunks
Copy link
Author

lunks commented Oct 2, 2021

If I were nitpicky I'd say it's a feature request to support the nightly branch of another tool. I'll try to get it working soon.

Semantics are hard haha feel free to change the labels

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants