Jump to content

/ScheduledTasks/Running returns 404?


danlo315

Recommended Posts

danlo315

Hello,

I'm trying to trigger a Guide Refresh via ScheduledTasks/Running API call.  Here's my URL:

https://[servername]/emby/ScheduledTasks/Running/9492d30c70f7f1bec3757c9d0a4feb45?api_key=[apikey]

The front end is returning a "Unable to find the specified file." error message when posting on Chrome.  The log shows below

2020-10-12 08:32:34.905 Info HttpServer: HTTP GET http://atl-em.danlo.org/emby/ScheduledTasks/Running/9492d30c70f7f1bec3757c9d0a4feb45. UserAgent: Mozilla/5.0 (X11; CrOS x86_64 13310.93.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.133 Safari/537.36
2020-10-12 08:32:34.905 Info HttpServer: HTTP Response 404 to 74.64.190.106. Time: 0ms. http://atl-em.danlo.org/emby/ScheduledTasks/Running/9492d30c70f7f1bec3757c9d0a4feb45. ConnectionId: 0HM3EFNE8Q0J2
 

Running the ScheduledTask service with the same task ID returns valid result:

https://[servername]/emby/ScheduledTasks/9492d30c70f7f1bec3757c9d0a4feb45?api_key=[apikey]

{"Name":"Refresh Guide","State":"Idle","Id":"9492d30c70f7f1bec3757c9d0a4feb45","LastExecutionResult":{"StartTimeUtc":"2020-10-12T11:59:59.9963059Z","EndTimeUtc":"2020-10-12T12:02:37.5949929Z","Status":"Completed","Name":"Refresh Guide","Key":"RefreshGuide","Id":"9492d30c70f7f1bec3757c9d0a4feb45"},"Triggers":[{"Type":"DailyTrigger","TimeOfDayTicks":720000000000},{"Type":"DailyTrigger","TimeOfDayTicks":288000000000},{"Type":"DailyTrigger","TimeOfDayTicks":432000000000},{"Type":"DailyTrigger","TimeOfDayTicks":558000000000},{"Type":"DailyTrigger","TimeOfDayTicks":792000000000}],"Description":"Downloads channel information from live tv services.","Category":"Live TV","IsHidden":false,"Key":"RefreshGuide"}

I am running this on a VPS and behind a reverse proxy.

Any idea what I'm doing wrong?

Link to comment
Share on other sites

danlo315
2 minutes ago, Luke said:

Hi there, have you compared to what's in the swagger api docs?

Hi @Luke - here's the API reference.  I am using reverse proxy with SSL so I am using https instead.

image.thumb.png.a22a3adc8b19ee9f39e1eb0d493fb821.png

Link to comment
Share on other sites

PenkethBoy

works fine for me in beta .2

get a 204 response which is correct

so either you are not running as an administrator outside swagger

your ssl is incorrect - as i think you say it works for http - not sure as a little vague

api_key/accesstoken is invalid

or you RP is getting in the way

or something i have not thought of yet

 

So as it works - must be something in your code/setup thats the issue.

Link to comment
Share on other sites

danlo315
Just now, PenkethBoy said:

works fine for me in beta .2

get a 204 response which is correct

so either you are not running as an administrator outside swagger

your ssl is incorrect - as i think you say it works for http - not sure as a little vague

api_key/accesstoken is invalid

or you RP is getting in the way

or something i have not thought of yet

 

So as it works - must be something in your code/setup thats the issue.

I think I was able to answer my own question.  The curl command needs a -d "" at the end.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...