NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 196 197 198 199 200 … 433 Next »
Setting "EPG Source" to "Schedules Direct" causes an "Unhandled exception".

Setting "EPG Source" to "Schedules Direct" causes an "Unhandled exception".
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,195
Threads: 958
Joined: May 2006
#51
2014-11-04, 12:29 PM (This post was last modified: 2014-11-04, 12:35 PM by mvallevand.)
From a browser can you connect to https://json.schedulesdirect.org/2014053.../mfdb-json Have you enabled TLS only I know they disabled SSL (a good thing)

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,809
Threads: 769
Joined: Nov 2003
#52
2014-11-04, 06:28 PM
MarkHotchkiss Wrote:But the interesting part is the log file, which is much more verbose with this error. It is now complaining about a lack of trust. The log is attached.
Quote:Unexpected error doing Schedules Direct login: System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel
Very odd. To be honest, I've got no idea what to suggest on this one. It sounds like it's not connecting directly to Schedules Direct, but instead via some other non-trusted intermediary.
MarkHotchkiss
Offline

Junior Member

Posts: 41
Threads: 3
Joined: Jul 2013
#53
2014-11-04, 09:37 PM
Very odd - I posted a reply about two hours ago. It was there about 15 minutes later, and now it's gone. I will try again:


Hi Sub,

Yeah, I couldn't make out what the log was really saying. Tonight, when I can again bypass the proxy-server, I will try again with Wireshark. I have an easier time when I can actually see the packets.


Hi Martin,

Thanks for that - It may get me somewhere. When I click on the link that you provided, I get this:
Code:
{"response":"OK","code":0,"client":"mfdb-json","version":"0.22","serverID":"20140530.1","datetime":"2014-11-04T20:02:01Z"}
It's encouraging that it at least says "OK", even though that was through the proxy-server.

I'm pretty familiar with Secure Socket Layers, but not TLS (as you can see, I haven't even googled what it stands for yet). So that gives me another avenue to explore. Did the old Schedules Direct use SSL and not TLS?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,809
Threads: 769
Joined: Nov 2003
#54
2014-11-04, 09:45 PM
The old schedules direct just used http (port 80), not https.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,195
Threads: 958
Joined: May 2006
#55
2014-11-04, 11:16 PM
I did some searching and I am not still sure .NET 4.0 on XP supports TLS 1.0 but json.schedules.direct.org doesn't support SSL.

Martin
Braklet
Offline

Senior Member

Posts: 532
Threads: 60
Joined: Sep 2006
#56
2014-11-05, 03:15 PM
mvallevand Wrote:I did some searching and I am not still sure .NET 4.0 on XP supports TLS 1.0 but json.schedules.direct.org doesn't support SSL.

This problem may well be due to security measures taken against the POODLE vulnerability (https://www.us-cert.gov/ncas/alerts/TA14-290A).

The most common patch is to disable ALL SSLv2/SSLv3 access to prevent the vulnerable fallback, and opt for TLSv1 or better. Some folks recommend even disabling TLSv1.

Anyway, I'm not a Windows developer and can't even hazard a guess about what the .NET clients expect, but Martin's observation is right in line with breaking industry actions. The HTTPS client can't expect to succeed using SSL.

I'm still paying close attention to this thread since I too am running NPVR on an XP host, so these problems aren't just a single person's. I am just sticking with 3.1.1 for now.

B
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,195
Threads: 958
Joined: May 2006
#57
2014-11-05, 05:49 PM
ACTCMS kindly did some testing using some sample code I wrote and TLS 1.0 does work with SchedulesDirect if XP is set up correctly.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,809
Threads: 769
Joined: Nov 2003
#58
2014-11-05, 06:31 PM
I've also been able to confirm it's not a general XP + NextPVR 3.3.8 problem. I've run up an XP VM, installed 3.3.8 (+patch), and been able download listings from Schedules Direct.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,195
Threads: 958
Joined: May 2006
#59
2014-11-05, 10:14 PM
Here is a test app to see if you can connect to SD using TLS

Martin
MarkHotchkiss
Offline

Junior Member

Posts: 41
Threads: 3
Joined: Jul 2013
#60
2014-11-06, 08:40 AM
Thanks Martin, Sub and Braklet.

Martin, I tried you program, and now I'm really on to something.

First from my laptop and I got this result:
Code:
Trying SSL
The underlying connection was closed: An unexpected error occurred on a send.

Trying TLS
{"response":"OK","code":0,"client":"mfdb-json","version":"0.22","serverID":"20140530.2","datetime":"2014-11-06T08:18:18Z"}

Default
{"response":"OK","code":0,"client":"mfdb-json","version":"0.22","serverID":"20140530.1","datetime":"2014-11-06T08:18:18Z"}
The error for SSL is different from what you received, but TLS seems to work the same.

I then tried it from the nPVR computer, and got this result:
Code:
Trying SSL
The server committed a protocol violation. Section=ResponseStatusLine

Trying TLS

The server committed a protocol violation. Section=ResponseStatusLine


Default

The server committed a protocol violation. Section=ResponseStatusLine
So something is clearly wrong with XP on the media computer. I will start by updating .NET

Unfortunately, I now have to go out on location for a few weeks, so I won't be able to wrestle with the problem until after Thanksgiving. I will be reverting back to 3.2.9 in the meantime, before my wife kills me (She does not yet know that I failed to record "Dancing with the Stars" on Monday - Please don't tell her).
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (7): « Previous 1 … 3 4 5 6 7 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Epg setting SD token NextPvr 4.2.4 casimir@zyxu.ca 1 1,660 2021-03-05, 01:38 PM
Last Post: mvallevand
  EPG Schedules Direct jwalbrook 6 4,230 2020-12-07, 07:43 PM
Last Post: mvallevand
  Possible to set the EPG source for more than one channel at a time? LeGrandZombie 15 8,474 2020-12-06, 02:15 AM
Last Post: pitbull1969
  Unhandled Exception: file name too long (idiots at pbs made it super long) jobby99 1 1,469 2020-10-29, 09:40 PM
Last Post: mvallevand
  Problem setting up recording for some programmes LeoL 5 2,145 2020-10-21, 09:34 PM
Last Post: LeoL
  How to delete a Schedules Direct Lineup from Version 4? mwkurt 2 1,746 2020-07-19, 02:32 PM
Last Post: mwkurt
  Schedules Direct issues artmetz 4 2,072 2020-04-22, 12:13 AM
Last Post: artmetz
  Unhandled Exception Error Message reedaf4 23 7,734 2020-03-13, 05:03 PM
Last Post: sub
  EPG/Schedules Direct Epitaph 7 2,984 2019-12-12, 03:59 AM
Last Post: Epitaph
  auto populate EPG source KarterJK 6 3,233 2019-12-03, 05:03 PM
Last Post: KarterJK

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode