Unable to create MXF file

An evolving, supported alternative to Rovi
Forum rules
★ Download the latest EPG123 here: https://garyan2.github.io/ <> Setup guide here: https://garyan2.github.io/install.html
captain_video

Posts: 121
Joined: Sun Aug 21, 2011 8:52 pm
Location:

HTPC Specs: Show details

Unable to create MXF file

#1

Post by captain_video » Fri Dec 02, 2022 5:53 pm

I'm using the latest version of epg123 (1.7.3.0) on two different Win7 HTPCs and I am unable to update the guide data. I start the configuration GUI and do a Save and Execute and it gets to part 2 of 13, Build Schedules - Step 1. The progress bar at the top gets to about 15-20% and then the window minimizes and the icon in the bottom tray never shows any progress beyond that when I hover over it with a mouse. The lower progress bar in the GUI window shows zero progress before it minimizes. Here's the attached log file with the errors highlighted at the end of the file:

[12/2/2022 12:32:04 PM] ===============================================================================
[12/2/2022 12:32:04 PM] Activating the epg123 configuration GUI. version 1.7.3.0
[12/2/2022 12:32:04 PM] ===============================================================================
[12/2/2022 12:32:04 PM] *** Windows 7 Ultimate, 64-bit [Version: 6.1.7601.24564] ***
[12/2/2022 12:32:04 PM] *** Windows Media Center [Version: 6.1.7600.16385] is installed. ***
[12/2/2022 12:32:05 PM] [ INFO] SD responded with error code: 4003 , message: Invalid username or token has expired. , serverID: 20141201.web , datetime: 2022-12-02T17:28:57Z
[12/2/2022 12:32:05 PM] [ INFO] Validation of cached token failed. Requesting new token.
[12/2/2022 12:32:06 PM] [ INFO] Token request successful. serverID: 20141201.web , datetime: 2022-12-02T17:28:57Z
[12/2/2022 12:32:06 PM] [ INFO] Status request successful. account expires: 2023-03-22T20:23:18Z , lineups: 2/4 , lastDataUpdate: 2022-12-02T14:36:30Z
[12/2/2022 12:32:06 PM] [ INFO] System status: Online , message: No known issues.
[12/2/2022 12:32:06 PM] [ INFO] Successfully requested listing of subscribed lineups from Schedules Direct.
[12/2/2022 12:32:06 PM] [ INFO] Successfully retrieved the station mapping for lineup USA-MD65526-X.
[12/2/2022 12:32:06 PM] [ INFO] Successfully retrieved the station mapping for lineup USA-OTA-21043.
[12/2/2022 12:32:06 PM] [ INFO] Successfully queried the Task Scheduler for status. Ready. Last Run 12/2/2022 1:42:00 AM. Exit: 0x00000000
[12/2/2022 12:32:13 PM] [ INFO] Beginning EPG123 update execution. 2022-12-02 17:32:13Z
[12/2/2022 12:32:13 PM] [ INFO] DaysToDownload: 14 , TheTVDBNumbers : True , PrefixEpisodeTitle: True , PrefixEpisodeDescription : False , AppendEpisodeDesc: False , OADOverride : True , SeasonEventImages : True , TMDbCoverArt: True , IncludeSDLogos : True , AutoAddNew: True , CreateXmltv: False , ModernMediaUiPlusSupport: False
[12/2/2022 12:32:13 PM] [ INFO] Status request successful. account expires: 2023-03-22T20:23:18Z , lineups: 2/4 , lastDataUpdate: 2022-12-02T14:36:30Z
[12/2/2022 12:32:13 PM] [ INFO] System status: Online , message: No known issues.
[12/2/2022 12:32:13 PM] [ INFO] Successfully retrieved TMDb configurations.
[12/2/2022 12:32:13 PM] [ INFO] Successfully requested listing of subscribed lineups from Schedules Direct.
[12/2/2022 12:32:13 PM] Entering BuildLineupServices() for 2 lineups.
[12/2/2022 12:32:13 PM] [ INFO] Successfully retrieved the station mapping for lineup USA-MD65526-X.
[12/2/2022 12:32:14 PM] [ INFO] Successfully retrieved the station mapping for lineup USA-OTA-21043.
[12/2/2022 12:32:14 PM] [ INFO] Kicking off background worker to download and process 671 station logos.
[12/2/2022 12:32:14 PM] Exiting BuildLineupServices(). SUCCESS.
[12/2/2022 12:32:14 PM] Entering GetAllScheduleEntryMd5s() for 14 days on 791 stations.
[12/2/2022 12:32:35 PM] [ INFO] HTTP POST request exception thrown. Messages: One or more errors occurred. Error while copying content to a stream. Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.
[12/2/2022 12:32:35 PM] [ERROR] Did not receive a response from Schedules Direct for Md5s of 89 stations' daily schedules. (0:00:00:21.3876376)
[12/2/2022 12:32:35 PM] [ERROR] Problem occurred during GetMd5ScheduleEntries(). Exiting.
[12/2/2022 12:32:35 PM] [ERROR] Failed to create MXF file. Exiting.

[12/2/2022 12:32:35 PM] [ INFO] epg123 update execution time was 00:00:22.1832390.

User avatar
garyan2

Posts: 7438
Joined: Fri Nov 27, 2015 7:23 pm
Location:

HTPC Specs: Show details

#2

Post by garyan2 » Fri Dec 02, 2022 6:28 pm

Are you having network problems? EPG123 is failing to send a request with content to SD over the internet. The connection appears to have been established but the server is shutting it down after waiting for the actual request.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

captain_video

Posts: 121
Joined: Sun Aug 21, 2011 8:52 pm
Location:

HTPC Specs: Show details

#3

Post by captain_video » Fri Dec 02, 2022 6:43 pm

I have not experienced any network issues that I'm aware of. Neither of the HTPCs use a VPN and I have gigabit service with Verizon FIOS

captain_video

Posts: 121
Joined: Sun Aug 21, 2011 8:52 pm
Location:

HTPC Specs: Show details

#4

Post by captain_video » Sat Dec 03, 2022 1:40 pm

Any ideas why this is happening? I have two Windows 7 HTPCs with WMC and no guide data on either of them. The only change I can think of that I have done over the past few weeks is installing the Emby docker on my unRAID server, but that never impacted the acquisition of guide data before. This just suddenly happened over the past few days.

To be honest, I only use WMC for recording shows from copy protected channels like Fx or any of the other Fox Network channels. My wife has gotten accustomed to using it for watching live TV on an Intel NUC in the family room and she hates change. I have both Channels DVR and Emby installed on nVidia Shields around the house so we're able to watch any other channels but the Fox Network channels using either app. I'm thinking it may finally be time to retire my Win 7 HTPCs if I can't get guide data for them. I have had issues downloading guide data using epg123 in the past, but I was always able to get it with a manual download or by updating the app. I have some older NUCs with Win7 and WMC sitting around so maybe I'll try to download the guide data using that and then transfer the mxf file to the other HTPCs. I doubt it will work if it's a network issue, but it can't hurt to try. I'll provide an update once I try it.

captain_video

Posts: 121
Joined: Sun Aug 21, 2011 8:52 pm
Location:

HTPC Specs: Show details

#5

Post by captain_video » Sat Dec 03, 2022 2:48 pm

I just tried updating one of my older NUCs with an older version of epg123 and it still hangs up in the same spot. It's clearly a network issue but I have no idea what to do about it. This is extremely frustrating.

I may have spoken too soon. It appears to have continued past the point where it previously hung up so maybe there's still hope. I'll keep you posted.

I was able to update the guide data, but not without a lot of errors. I installed version 1.6.1.1 and it seemed to work somewhat. It looks like a lot of the channel listings in the 1000+ range are not there, but I never watch any of those channels anyway. It looks like my local HD OTA channels are also missing. I'm OK with missing channels as long as the ones show up that my wife watches as well as the Fox Network channels I record from. I do the vast majority of my recording using Channels DVR so the missing channels are not a huge impact on my recording or viewing habits.

User avatar
garyan2

Posts: 7438
Joined: Fri Nov 27, 2015 7:23 pm
Location:

HTPC Specs: Show details

#6

Post by garyan2 » Sat Dec 03, 2022 5:13 pm

Reboot your router and see if that helps any.

Due to security and API changes on SD's end, you will need at least version 1.7.1.8 for a completely successful update. Also, since you don't need so many channels for WMC you can also disable a lot of the stations you are downloading rather than downloading all of them. This may help as well.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

captain_video

Posts: 121
Joined: Sun Aug 21, 2011 8:52 pm
Location:

HTPC Specs: Show details

#7

Post by captain_video » Sun Dec 04, 2022 1:40 pm

I have tried several versions of epg123 from 1.7.1.8 to the latest version and they all get hung up at the second phase and then the progress window simply disappears after about ten seconds. If I hover the mouse over the icon in the system tray it shows the same level of progress and never goes beyond that.

I rebooted my router right after you indicated it might be a network issue, but the results are the same.

I have since tried several older versions of epg123 prior to 1.7.1.8 and, even though I get a lot of error messages in the log, it does download the guide data if you let it sit there long enough with no interruptions. I get the red X displayed on the WMC home page as a result of all of the errors, but at least I have guide data. I am only downloading the guide data for Verizon FIOS and not the local OTA channels. None of the OTA channels were showing up in the guide, but they're all on FIOS anyway so it's not that big of a deal. If the only issue with using an older version of epg123 is that I am unable to download the images for the channel logos then I can live with that.

User avatar
garyan2

Posts: 7438
Joined: Fri Nov 27, 2015 7:23 pm
Location:

HTPC Specs: Show details

#8

Post by garyan2 » Sun Dec 04, 2022 3:56 pm

What version of .NET Framework do you have installed on the machines?

v1.7.1.8 retargeted the project to .NET 4.5.
v1.7.1.12 retargeted the project to .NET 4.6.2.

Also, starting at 1.7.1.8, I started using System.Net.Http.HttpClient rather than System.Net.WebRequest since it was being deprecated, and updated Newtonsoft.Json.dll from version 10.0.3 to version 13.0.1 due to the retarget.

There have been a couple reports that the installer has failed to update/copy over the Newtonsoft.Json.dll file for some reason so you can check that.

Those are the only changes that affect the network communication to Schedules Direct.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

captain_video

Posts: 121
Joined: Sun Aug 21, 2011 8:52 pm
Location:

HTPC Specs: Show details

#9

Post by captain_video » Sun Dec 04, 2022 9:50 pm

It looks like I have version 4.8.03761 of .NET Framework installed on both Win 7 HTPCs. I see the Newtonsoft.Json.dll file in the epg123 folder. I currently have the older version in the epg123 folder since I'm using an older version of epg123 at the moment. Is that supposed to be installed in the C:\Windows\System32 folder upon installation or does it get called when you run the epg123 app? If it doesn't show up after installing version 1.7.3.0 should I just copy it over to the C:\Windows|System32 folder or some other location?

I just tried reinstalling version 7.1.3.0 and copied the Newtonsoft.Json.dll file over to the System32 folder but it didn't help. It still craps out in part 2 of 13 for creating the mxf file. I guess I'll just have to live with the annoying red X as long as it downloads the FIOS guide data.

ianfcohen

Posts: 10
Joined: Sun Mar 01, 2015 2:33 pm
Location:

HTPC Specs: Show details

#10

Post by ianfcohen » Tue Dec 06, 2022 10:56 pm

I seem to be having what may be a related issue. I'm also pulling down Verizon data:

[12/4/2022 3:35:55 PM] ===============================================================================
[12/4/2022 3:35:55 PM] Beginning epg123 update execution. version 1.7.3.0
[12/4/2022 3:35:55 PM] ===============================================================================
[12/4/2022 3:35:55 PM] *** Windows 7 Ultimate, 64-bit [Version: 6.1.7601.24535] ***
[12/4/2022 3:35:55 PM] *** Windows Media Center [Version: 6.1.7600.16385] is installed. ***
[12/4/2022 3:35:55 PM] [ INFO] Beginning EPG123 update execution. 2022-12-04 20:35:55Z
[12/4/2022 3:35:55 PM] [ INFO] DaysToDownload: 14 , TheTVDBNumbers : True , PrefixEpisodeTitle: False , PrefixEpisodeDescription : False , AppendEpisodeDesc: False , OADOverride : True , SeasonEventImages : True , TMDbCoverArt: True , IncludeSDLogos : True , AutoAddNew: True , CreateXmltv: True , ModernMediaUiPlusSupport: True
[12/4/2022 3:35:59 PM] [ INFO] Status request successful. account expires: 2023-07-06T20:50:52Z , lineups: 1/4 , lastDataUpdate: 2022-12-04T17:02:18Z
[12/4/2022 3:35:59 PM] [ INFO] System status: Online , message: No known issues.
[12/4/2022 3:36:09 PM] [ INFO] GetClientVersion() Unknown exception thrown. Message: The operation has timed out
[12/4/2022 3:36:09 PM] [ INFO] Successfully retrieved TMDb configurations.
[12/4/2022 3:36:09 PM] [ INFO] Successfully requested listing of subscribed lineups from Schedules Direct.
[12/4/2022 3:36:09 PM] Entering BuildLineupServices() for 1 lineups.
[12/4/2022 3:36:09 PM] [ INFO] Successfully retrieved the station mapping for lineup USA-MA65213-X.
[12/4/2022 3:36:10 PM] [ INFO] Kicking off background worker to download and process 196 station logos.
[12/4/2022 3:36:10 PM] Exiting BuildLineupServices(). SUCCESS.
[12/4/2022 3:36:10 PM] Entering GetAllScheduleEntryMd5s() for 14 days on 330 stations.
[12/4/2022 3:36:12 PM] [ INFO] An exception occurred during downloadSDLogo(). A generic error occurred in GDI+.
[12/4/2022 3:36:13 PM] [ INFO] An exception occurred during downloadSDLogo(). A generic error occurred in GDI+.
[12/4/2022 3:36:32 PM] [ INFO] HTTP POST request exception thrown. Messages: One or more errors occurred. Error while copying content to a stream. Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.
[12/4/2022 3:36:32 PM] [ERROR] Did not receive a response from Schedules Direct for Md5s of 89 stations' daily schedules. (0:00:00:21.4656377)
[12/4/2022 3:36:32 PM] [ERROR] Problem occurred during GetMd5ScheduleEntries(). Exiting.
[12/4/2022 3:36:32 PM] [ERROR] Failed to create MXF file. Exiting.
[12/4/2022 3:36:32 PM] [ INFO] epg123 update execution time was 00:00:36.7224645.


-----------------------------------------------------------------------------------------------

If I target fewer channels and less days I get this problem:

[12/6/2022 6:00:13 PM] ===============================================================================
[12/6/2022 6:00:13 PM] Beginning epg123 update execution. version 1.7.3.0
[12/6/2022 6:00:13 PM] ===============================================================================
[12/6/2022 6:00:13 PM] *** Windows 7 Ultimate, 64-bit [Version: 6.1.7601.24544] ***
[12/6/2022 6:00:13 PM] *** Windows Media Center [Version: 6.1.7600.16385] is installed. ***
[12/6/2022 6:00:13 PM] [ INFO] Beginning EPG123 update execution. 2022-12-06 23:00:13Z
[12/6/2022 6:00:13 PM] [ INFO] DaysToDownload: 2 , TheTVDBNumbers : False , PrefixEpisodeTitle: False , PrefixEpisodeDescription : False , AppendEpisodeDesc: False , OADOverride : True , SeasonEventImages : False , TMDbCoverArt: False , IncludeSDLogos : False , AutoAddNew: True , CreateXmltv: False , ModernMediaUiPlusSupport: False
[12/6/2022 6:00:14 PM] [ INFO] Status request successful. account expires: 2023-07-06T20:50:52Z , lineups: 1/4 , lastDataUpdate: 2022-12-06T16:10:05Z
[12/6/2022 6:00:14 PM] [ INFO] System status: Online , message: No known issues.
[12/6/2022 6:00:15 PM] [ INFO] Successfully requested listing of subscribed lineups from Schedules Direct.
[12/6/2022 6:00:15 PM] Entering BuildLineupServices() for 1 lineups.
[12/6/2022 6:00:15 PM] [ INFO] Successfully retrieved the station mapping for lineup USA-MA65213-X.
[12/6/2022 6:00:15 PM] Exiting BuildLineupServices(). SUCCESS.
[12/6/2022 6:00:15 PM] Entering GetAllScheduleEntryMd5s() for 2 days on 27 stations.
[12/6/2022 6:00:16 PM] [ INFO] Successfully retrieved Md5s for 27 stations' daily schedules. (0:00:00:00.2500143)
[12/6/2022 6:00:16 PM] [ INFO] Found 54 cached daily schedules.
[12/6/2022 6:00:16 PM] [ INFO] Downloaded 0 daily schedules.
[12/6/2022 6:00:16 PM] [ INFO] Processed 54 daily schedules for 27 stations for average of 2.0 days per station.
[12/6/2022 6:00:16 PM] Exiting GetAllScheduleEntryMd5s(). SUCCESS.
[12/6/2022 6:00:16 PM] Entering BuildAllProgramEntries() for 652 programs.
[12/6/2022 6:00:16 PM] [ INFO] Found 131 cached program descriptions.
[12/6/2022 6:00:37 PM] [ INFO] HTTP POST request exception thrown. Messages: One or more errors occurred. An error occurred while sending the request. The underlying connection was closed: An unexpected error occurred on a receive.
[12/6/2022 6:00:37 PM] [ERROR] Did not receive a response from Schedules Direct for 521 program descriptions. (0:00:00:21.3272198)
[12/6/2022 6:00:37 PM] [WARNG] Failed to download and process 521 program descriptions.
[12/6/2022 6:00:37 PM] Exiting BuildAllProgramEntries(). SUCCESS.
[12/6/2022 6:00:37 PM] Entering BuildAllGenericSeriesInfoDescriptions() for 98 series.
[12/6/2022 6:00:37 PM] [ INFO] Found 98 cached/unavailable series descriptions.
[12/6/2022 6:00:37 PM] Exiting BuildAllGenericSeriesInfoDescriptions(). SUCCESS.
[12/6/2022 6:00:37 PM] Entering GetAllMoviePosters() for 9 movies.
[12/6/2022 6:00:37 PM] [ INFO] Found 9 cached/unavailable movie poster links.
[12/6/2022 6:00:37 PM] Exiting GetAllMoviePosters(). SUCCESS.
[12/6/2022 6:00:37 PM] Entering GetAllSeriesImages() for 98 series.
[12/6/2022 6:00:37 PM] [ INFO] Found 92 cached/unavailable series image links.
[12/6/2022 6:00:37 PM] [ INFO] Refreshing 6 series image links.
[12/6/2022 6:00:37 PM] [ INFO] Successfully retrieved artwork info for 6 programs. (0:00:00:00.1410081)
[12/6/2022 6:00:37 PM] Exiting GetAllSeriesImages(). SUCCESS.
[12/6/2022 6:00:37 PM] [ INFO] Completed compiling keywords and keyword groups.
[12/6/2022 6:00:37 PM] [ INFO] Downloaded and processed 966.272 KB of data from Schedules Direct.
[12/6/2022 6:00:38 PM] [ INFO] Completed save of the MXF file to "C:\ProgramData\GaRyan2\epg123\output\epg123.mxf". (342.631 KB)
[12/6/2022 6:00:38 PM] [ INFO] Generated .mxf file contains 27 services, 98 series, 35 seasons, 652 programs, 824 schedule entries, and 509 people with 107 image links.
[12/6/2022 6:00:38 PM] [ INFO] 29 entries deleted from the cache file during cleanup.
[12/6/2022 6:00:38 PM] [ INFO] Completed EPG123 update execution. SUCCESS.
[12/6/2022 6:00:38 PM] [ INFO] epg123 update execution time was 00:00:24.2653879.
[12/6/2022 6:00:38 PM] ===============================================================================
[12/6/2022 6:00:38 PM] Beginning epg123 client execution. version 1.7.3.0
[12/6/2022 6:00:38 PM] ===============================================================================
[12/6/2022 6:00:38 PM] *** Windows 7 Ultimate, 64-bit [Version: 6.1.7601.24544] ***
[12/6/2022 6:00:38 PM] *** Windows Media Center [Version: 6.1.7600.16385] is installed. ***
[12/6/2022 6:00:38 PM] [ INFO] Import: True , Match: True , NoLogo: False , Force: False , ShowProgress: False , NoGC: True , NoVerify: False , Verbose: False
[12/6/2022 6:00:39 PM] Entering ImportMxfFile() for file "c:\programdata\garyan2\epg123\output\epg123.mxf".
[12/6/2022 6:00:40 PM] [ INFO] Successfully imported .mxf file into Media Center database. Exit code: 0
[12/6/2022 6:00:40 PM] Exiting ImportMxfFile(). SUCCESS.
[12/6/2022 6:00:40 PM] Entering VerifyLoad()
[12/6/2022 6:00:42 PM] [ INFO] Checked 824 entries and corrected 0 of them.
[12/6/2022 6:00:42 PM] Exiting VerifyLoad()
[12/6/2022 6:00:43 PM] [ INFO] Completed channel cleanup as needed after MXF file import.
[12/6/2022 6:00:46 PM] [ INFO] Completed the automatic mapping of lineup stations to tuner channels.
[12/6/2022 6:00:46 PM] [ INFO] Completed lineup refresh.
[12/6/2022 6:00:46 PM] Entering RunWmcIndexTask(PvrScheduleTask)
[12/6/2022 6:00:46 PM] [ INFO] SUCCESS: Attempted to run the scheduled task "Microsoft\Windows\Media Center\PvrScheduleTask".
[12/6/2022 6:00:46 PM] [ INFO] Successfully started the PvrScheduleTask task. Exit code: 0
[12/6/2022 6:00:46 PM] Exiting RunWmcIndexTask(PvrScheduleTask). SUCCESS.
[12/6/2022 6:00:46 PM] Entering RunWmcIndexTask(ReindexSearchRoot)
[12/6/2022 6:00:47 PM] [ INFO] SUCCESS: Attempted to run the scheduled task "Microsoft\Windows\Media Center\ReindexSearchRoot".
[12/6/2022 6:00:47 PM] [ INFO] Successfully started the ReindexSearchRoot task. Exit code: 0
[12/6/2022 6:00:47 PM] Exiting RunWmcIndexTask(ReindexSearchRoot). SUCCESS.
[12/6/2022 6:00:47 PM] [ INFO] MXF file was created on 12/6/2022 6:00:13 PM
[12/6/2022 6:00:47 PM] [ERROR] There was an ERROR generated during the MXF file creation.
[12/6/2022 6:00:47 PM] [ INFO] Completed EPG123 client execution.
[12/6/2022 6:00:47 PM] [ INFO] EPG123 client execution time was 00:00:09.1235218.

-----

I'm not sure what my problem is, but I have no guide data anymore and my family is notttt happy.

User avatar
garyan2

Posts: 7438
Joined: Fri Nov 27, 2015 7:23 pm
Location:

HTPC Specs: Show details

#11

Post by garyan2 » Wed Dec 07, 2022 2:17 am

So I posted another minor update, v1.7.3.2 to tweak the httpclient a little and see if that helps with this. Since I can't duplicate it, I can't see into why this is happening. Using Fiddler, there is no difference in the requests between v1.7.1.7 and 1.7.3.x, just you guys are having problems with POST.

If someone can try out the new version and let me know if there is improvement, let me know. Also, if anyone wants to install Fiddler and capture the network traffic that would be great. With Fiddler, I wouldn't be surprised if you are able to complete an update, though.

Outside of this being a httpclient problem specifically, the only thing I can think of on the network is if the MTU is too large or too small... a little outside my wheelhouse.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

ianfcohen

Posts: 10
Joined: Sun Mar 01, 2015 2:33 pm
Location:

HTPC Specs: Show details

#12

Post by ianfcohen » Wed Dec 07, 2022 7:23 am

So… The new version didn’t help, but as you expected using fiddler seemed to allow the update to occur. How do I export the logs you need to post here? I exported the raw session, but that seems like the wrong thing.

ianfcohen

Posts: 10
Joined: Sun Mar 01, 2015 2:33 pm
Location:

HTPC Specs: Show details

#13

Post by ianfcohen » Wed Dec 07, 2022 12:05 pm

I spoke too soon. I thought fiddler helped but on a longer / larger download I still failed.

User avatar
garyan2

Posts: 7438
Joined: Fri Nov 27, 2015 7:23 pm
Location:

HTPC Specs: Show details

#14

Post by garyan2 » Wed Dec 07, 2022 2:49 pm

Well that is a little surprising. With Fiddler acting as a proxy I would have expected the update to succeed.

If you could, for a failed session in Fiddler, use File->Save->All sessions and then send the file to support@garyan2.net. Hopefully there is something there that can shine a light on this.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

ianfcohen

Posts: 10
Joined: Sun Mar 01, 2015 2:33 pm
Location:

HTPC Specs: Show details

#15

Post by ianfcohen » Thu Dec 08, 2022 12:49 am

Will do.. I think I sent you the wrong data. I’ll run it again.

User avatar
garyan2

Posts: 7438
Joined: Fri Nov 27, 2015 7:23 pm
Location:

HTPC Specs: Show details

#16

Post by garyan2 » Thu Dec 08, 2022 2:00 am

Well that was interesting. Your failure footprint is different than the others, but may be related. The example you sent me timed out at 5 minutes getting schedule data. The only difference between the 1 that failed and the rest is that the SD servers decided to send the data in chunks. There was no Content-Length in the HTTP header, and it doesn't appear any data was sent to you.

I'll start working with the assumption that receiving chunked data is the key and see what I can there. I will say, though... my system running v1.7.3.2 handled chucked data without a problem.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

User avatar
garyan2

Posts: 7438
Joined: Fri Nov 27, 2015 7:23 pm
Location:

HTPC Specs: Show details

#17

Post by garyan2 » Thu Dec 08, 2022 2:41 am

Just put v1.7.3.3 to be available. I don't think it is due to being chunked, but maybe due to the size of the response message. Earlier this year, when SD tried to move over to a re-written API there was problems if the response sizes got to above 5MB. You had 1 response that was successful at 5.2MB so it was possible that the one that failed could have been larger and the reason it failed.

With this release, I reduced the maximum queries from 1250 to 1000 in order to drop the size of the response. See if you can complete an update now.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

ianfcohen

Posts: 10
Joined: Sun Mar 01, 2015 2:33 pm
Location:

HTPC Specs: Show details

#18

Post by ianfcohen » Thu Dec 08, 2022 11:44 pm

12/8/2022 6:38:59 PM] ===============================================================================
[12/8/2022 6:38:59 PM] Activating the epg123 configuration GUI. version 1.7.3.3
[12/8/2022 6:38:59 PM] ===============================================================================
[12/8/2022 6:38:59 PM] *** Windows 7 Ultimate, 64-bit [Version: 6.1.7601.24546] ***
[12/8/2022 6:38:59 PM] *** Windows Media Center [Version: 6.1.7600.16385] is installed. ***
[12/8/2022 6:39:01 PM] [ INFO] Status request successful. account expires: 2023-07-06T20:50:52Z , lineups: 1/4 , lastDataUpdate: 2022-12-08T13:43:13Z
[12/8/2022 6:39:01 PM] [ INFO] System status: Online , message: No known issues.
[12/8/2022 6:39:01 PM] [ INFO] Successfully requested listing of subscribed lineups from Schedules Direct.
[12/8/2022 6:39:01 PM] [ INFO] Successfully retrieved the station mapping for lineup USA-MA65213-X.
[12/8/2022 6:39:02 PM] [ INFO] Successfully queried the Task Scheduler for status. Ready. Last Run 12/8/2022 10:57:00 AM. Exit: 0x00000000
[12/8/2022 6:39:23 PM] [ INFO] Beginning EPG123 update execution. 2022-12-08 23:39:23Z
[12/8/2022 6:39:23 PM] [ INFO] DaysToDownload: 21 , TheTVDBNumbers : True , PrefixEpisodeTitle: False , PrefixEpisodeDescription : False , AppendEpisodeDesc: False , OADOverride : True , SeasonEventImages : True , TMDbCoverArt: True , IncludeSDLogos : True , AutoAddNew: True , CreateXmltv: False , ModernMediaUiPlusSupport: True
[12/8/2022 6:39:23 PM] [ INFO] Status request successful. account expires: 2023-07-06T20:50:52Z , lineups: 1/4 , lastDataUpdate: 2022-12-08T13:43:13Z
[12/8/2022 6:39:23 PM] [ INFO] System status: Online , message: No known issues.
[12/8/2022 6:39:24 PM] [ INFO] Successfully retrieved TMDb configurations.
[12/8/2022 6:39:24 PM] [ INFO] Successfully requested listing of subscribed lineups from Schedules Direct.
[12/8/2022 6:39:24 PM] Entering BuildLineupServices() for 1 lineups.
[12/8/2022 6:39:24 PM] [ INFO] Successfully retrieved the station mapping for lineup USA-MA65213-X.
[12/8/2022 6:39:26 PM] Exiting BuildLineupServices(). SUCCESS.
[12/8/2022 6:39:26 PM] Entering GetAllScheduleEntryMd5s() for 21 days on 330 stations.
[12/8/2022 6:39:47 PM] [ INFO] HTTP POST request exception thrown. Messages: One or more errors occurred. An error occurred while sending the request. The underlying connection was closed: An unexpected error occurred on a receive.
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at epg123.SchedulesDirect.SdApi.GetSdApiResponse[T](String method, String uri, Object jsonRequest)
[12/8/2022 6:39:47 PM] [ERROR] Did not receive a response from Schedules Direct for Md5s of 47 stations' daily schedules. (0:00:00:21.4037180)
[12/8/2022 6:39:47 PM] [ERROR] Problem occurred during GetMd5ScheduleEntries(). Exiting.
[12/8/2022 6:39:47 PM] [ERROR] Failed to create MXF file. Exiting.
[12/8/2022 6:39:47 PM] [ INFO] epg123 update execution time was 00:00:24.1680690.


Here’s the error this time. Let me know if I should fiddler it. Thanks Gary!

User avatar
garyan2

Posts: 7438
Joined: Fri Nov 27, 2015 7:23 pm
Location:

HTPC Specs: Show details

#19

Post by garyan2 » Fri Dec 09, 2022 12:22 am

Well that's disappointing. Another Fiddler would probably be good just for comparison. This failure is the same as the other users.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

User avatar
garyan2

Posts: 7438
Joined: Fri Nov 27, 2015 7:23 pm
Location:

HTPC Specs: Show details

#20

Post by garyan2 » Sat Dec 10, 2022 5:13 pm

Okay, definitely at a loss with this issue. I've seen this error with 4 users (with over 1,000 downloads so far):

OS: 2x Win7 Ultimate 64-bit, 1x Win7 Home 64-bit, 1x Win10 64-bit
EPG123: 3x v1.7.3.x, 1x v1.6.5.1
.NET: 2x v4.8, 2x ??

The only think I can see as common is possibly geographic. The 4 users that have reported this are in MD, MA, VA, and NY so I'm starting to wonder if this is a regional issue with the AWS servers SD uses to host their API. I'm going to send an email to SD trying to describe this, but I would ask those that are experiencing this to also submit a ticket to SD so they can add your account to some debug code to possibly see what is going on. But even if it is regional, I would expect many, many more users looking for help.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

Post Reply