allanlee Posted September 19, 2019 Share Posted September 19, 2019 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. Quote Link to comment
Griga Posted September 19, 2019 Share Posted September 19, 2019 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: the requested API function does not exist the requested API function is not available for a client with restricted read-only rights (does not apply to getchannelsxml.html) 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. 1 Quote Link to comment
Delphi Posted September 20, 2019 Share Posted September 20, 2019 @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. Quote Link to comment
Delphi Posted September 20, 2019 Share Posted September 20, 2019 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. Quote Link to comment
allanlee Posted September 21, 2019 Author Share Posted September 21, 2019 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. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.