Jump to content
allanlee

DMS EPG API requests issue?

Recommended Posts

allanlee

Tried to use XgrabDMS2 but encountered strange 404 problem, details here .

I've been discussing with the developer to solve, but seems will need some additional help .

 

What does the following message mean in DMS debug log?

TBaseProcess         HandleAPI Error  3

 

If more information required, let me know and I'd be happy to provide.

 

Many thanks & would greatly appreciate your inputs.

Share this post


Link to post
Griga
vor 8 Minuten schrieb allanlee:

What does the following message mean in DMS debug log?

TBaseProcess         HandleAPI Error  3

 

It means an API function has been requested, but the server will reply with HTTP status code "404 Not Found" due to one of the following reasons:

  1. the requested API function does not exist
  2. the requested API function is not available for a client with restricted read-only rights (does not apply to getchannelsxml.html)
  3. the requested API function tries to access something that does not exist

2. and 3. do not apply to getchannelsxml.html (it is available with read-only rights and never returns "Not Found"). However, it may apply to getconfigfile.html or epgclear.html.

 

As purchaser of the Media Server full version, please make sure that you didn't accidentally download and install DVBViewer Media Server Basic, because it only allows read only API access for all clients except DVBViewer on the server PC.

 

  • Thanks 1

Share this post


Link to post
Delphi

@Griga:

Thank you very much. I found where the problem is:

 

constructor TDMSChannelReader.Create;
var
  u8: UTF8String;
begin
  inherited;
  FFavouritesReader := TFavouritesReader.Create;
  u8 := IndyGet('getconfigfile.html?file=favourites.xml');
  FFavouritesReader.ParseUTF8String(u8);
end;

 

If the file favourites.xml does not exist, a 404 exception is raised. I tried to delete all my favourites within DVBViewer, then I got

 

u8 = '<?xml version="1.0" encoding="UTF-8"?>'#$D#$A'<settings/>'#$D#$A

 

No exception. Manually deleting favourites.xml provoked the exception of course. Should the upper call allways return the upper value if favourites.xml does not exist?

 

In any case I will change my code to:

 

constructor TDMSChannelReader.Create;
var
  u8: UTF8String;
begin
  inherited;
  FFavouritesReader := TFavouritesReader.Create;
  try
    u8 := IndyGet('getconfigfile.html?file=favourites.xml');
  except
    Exit; //no favourites found
  end;
  FFavouritesReader.ParseUTF8String(u8);
end;

 

@allanlee:

Make a favourite channel within DVBViewer (remember  save). It should work. Delete all your favourite channels within DVBViewer. It should still work.

 

 

Share this post


Link to post
Delphi
17 hours ago, Griga said:

As purchaser of the Media Server full version, please make sure that you didn't accidentally download and install DVBViewer Media Server Basic, because it only allows read only API access for all clients except DVBViewer on the server PC.

 

FYI: XgrabDMS only needs read access, so it works with DMS Basic and the Guest account of the full DMS.

Share this post


Link to post
allanlee
On 9/20/2019 at 5:41 PM, Delphi said:

@allanlee:

Make a favourite channel within DVBViewer (remember  save). It should work. Delete all your favourite channels within DVBViewer. It should still work.

 

 

IT WORKS!!! finally.... 

 

Thank you very much for the great efforts again.

Share this post


Link to post
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...