Announcement

Collapse
No announcement yet.

"Request failed, error RTSP/1.0 500 Internal Server Error"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • "Request failed, error RTSP/1.0 500 Internal Server Error"

    I have three AppleTVs and a Raspberry PI (running AirPi) set up with Airplay. AirplaySpeak "sees" all of the clients and is set up with no errors.

    When I run a test using &hs.speak from the control panel (testing each Airplay device separately using the enable check box of AirplaySpeak), only the Raspberry Pi works. The others throw an error:

    "INFO Connection to Basement TV (10.0.1.10:5000) failed: Request failed, error RTSP/1.0 500 Internal Server Error"

    I note that the AppleTVs appear to be set up as port 5000, while the Raspberry Pi is set up as port 5002. (for testing, I turned off the firewall on my Homeseer box.)

    Any clues?

  • #2
    this error usually means there is something that blocks the traffic between HS and the airplay speaker. Make sure your firewall is completely disabled, the plugin use several ports and both TCP and UDP protocols. Make sure your A/V isn't blocking anything either.

    did it work on your old server?

    what version of the plugin are you testing?

    please set the log level to debug, and send me the full logs, including the TXT lines you got when the plugin discovers the speakers.

    Comment


    • #3
      This is HS3 ver. 3.0.0.68; AirplaySpeak ver. 3.0.0.4.

      It worked on my old server (WHS). It was running older beta versions of HS3 and AirplaySpeak (I migrated sometime in December, and am just getting to this issue).

      New server is a WHS 2011 VM running on VMware ESXi 5.5. The Windows Firewall is completely disabled in the server VM. No anti-virus loaded during these tests.

      I have attached two files that were captured after a clean restart. I then executed an &hs.speak command from the control panel resulting in the errors you see in the files.

      Thanks in advance for your help.
      Attached Files

      Comment


      • #4
        czfyjf: Did you ever figure this out?

        Comment


        • #5
          I am getting the same error on my system.

          From the error log:

          Feb-23 15:40:39 AirplaySpeak INFO Connection to Apple TV (192.168.1.226:7000) failed: Request failed, error RTSP/1.0 500 Internal Server Error

          Comment


          • #6
            I should add, this is on a new Apple TV. Also, the Apple TV displays a message stating:

            Device Requirements
            This AirPlay connection requires iOS 7.1 or later, OS X 10.9.2 or later, or iTunes 11.2 or later.

            Comment


            • #7
              Originally posted by Lee_L View Post
              I should add, this is on a new Apple TV. Also, the Apple TV displays a message stating:

              Device Requirements
              This AirPlay connection requires iOS 7.1 or later, OS X 10.9.2 or later, or iTunes 11.2 or later.
              I have never tested it with the new AppleTV
              Could you set the log level to debug, then restart the plugin, and please post here the lines logged when the plugin discovers your AppleTV. Thanks

              Comment


              • #8
                just found this: http://help.airsquirrels.com/support...quires-ios-7-1

                please try to turn off the "Require Device Verification" setting, and let me know if it helps.

                Comment


                • #9
                  I have security disabled on the Apple TV for AirPlay. Here's the log file when I have a voice announcement sent:


                  Feb-23 16:53:48 AirplaySpeak DEBUG 15 Speaker.AfterSend()
                  Feb-23 16:53:48 AirplaySpeak DEBUG 15 Speaker.SendSample() gets lock
                  Feb-23 16:53:48 AirplaySpeak DEBUG 15 Speaker.SendSample()
                  Feb-23 16:53:48 AirplaySpeak DEBUG 15 Speaker.BeforeSend()
                  Feb-23 16:53:48 AirplaySpeak DEBUG Stack: at RTSPClient.ExecRequest(String Cmd, String ContentType, String Content, WebHeaderCollection hds, Boolean GetResponse, String& returnCode, Boolean parseHeaderOnError) at RTSPClient.AnnounceSDP(String SDP) at RAOPClient.Connect() at HSPI_AIRPLAY_SPEAK.Speaker.Reset()
                  Feb-23 16:53:48 AirplaySpeak INFO Connection to Apple TV (192.168.1.226:7000) failed: Request failed, error RTSP/1.0 403 Forbidden
                  Feb-23 16:53:48 AirplaySpeak DEBUG ANNOUNCE rtsp://192.168.1.10/4172482044 RTSP/1.0 CSeq: 2 Content-Type: application/sdp Content-Length: 183 User-Agent: iTunes/4.6 (Macintosh; U; PPC Mac OS X 10.3) Client-Instance: CC38C324857E22C6 v=0 o=iTunes 4172482044 0 IN IP4 192.168.1.10 s=iTunes c=IN IP4 192.168.1.226 t=0 0 m=audio 0 RTP/AVP 96 a=rtpmap:96 AppleLossless a=fmtp:96 352 0 16 40 10 14 2 255 0 0 44100
                  Feb-23 16:53:48 AirplaySpeak DEBUG CSeq, 1
                  Feb-23 16:53:48 AirplaySpeak DEBUG Server, AirTunes/268.1
                  Feb-23 16:53:48 AirplaySpeak DEBUG Content-Length, 0
                  Feb-23 16:53:48 AirplaySpeak DEBUG OPTIONS * RTSP/1.0 CSeq: 1 User-Agent: iTunes/4.6 (Macintosh; U; PPC Mac OS X 10.3) Client-Instance: CC38C324857E22C6
                  Feb-23 16:53:48 AirplaySpeak DEBUG 15 Speaker.Reset() gets the lock
                  Feb-23 16:53:48 AirplaySpeak DEBUG 15 Speaker.Reset()
                  Feb-23 16:53:48 TTS Speak: ():It's time for Decklin to go to bed.
                  Feb-23 16:53:48 AirplaySpeak INFO (Apple TV): It's time for Decklin to go to bed.
                  Feb-23 16:53:47 Event Event Trigger "Time Triggered Declans Bed Time"
                  Feb-23 16:53:47 Event Event Time Triggered Declans Bed Time triggered by the event page 'Run' button.
                  Feb-23 16:51:36 AirplaySpeak DEBUG vv = '2'
                  Feb-23 16:51:36 AirplaySpeak DEBUG vs = '268.1'
                  Feb-23 16:51:36 AirplaySpeak DEBUG vn = '65537'
                  Feb-23 16:51:36 AirplaySpeak DEBUG tp = 'UDP'
                  Feb-23 16:51:36 AirplaySpeak DEBUG pk = '689b12a147951c0ec2eb5ecd272d4501e7a1ae4a42c4dd4434f04058fc8 9c099'
                  Feb-23 16:51:36 AirplaySpeak DEBUG am = 'AppleTV5,3'
                  Feb-23 16:51:36 AirplaySpeak DEBUG md = '0,1,2'
                  Feb-23 16:51:36 AirplaySpeak DEBUG sf = '0x244'
                  Feb-23 16:51:36 AirplaySpeak DEBUG ft = '0x5A7FFFF7,0xDE'
                  Feb-23 16:51:36 AirplaySpeak DEBUG et = '0,3,5'
                  Feb-23 16:51:36 AirplaySpeak DEBUG da = 'true'
                  Feb-23 16:51:36 AirplaySpeak DEBUG cn = '0,1,2,3'
                  Feb-23 16:51:36 AirplaySpeak DEBUG TXT Records =
                  Feb-23 16:51:36 AirplaySpeak INFO Resolved Service: C869CD296EDE - Apple TV - 192.168.1.226 - 7000
                  Feb-23 16:51:36 Plug-In Finished initializing plug-in AirplaySpeak
                  Feb-23 16:51:36 AirplaySpeak INFO Found Service: C869CD296EDE@Apple TV
                  Feb-23 16:51:36 AirplaySpeak INFO AirplaySpeak version 3.0.0.5
                  Feb-23 16:51:36 Info Plugin AirplaySpeak has connected. IP:127.0.0.1:61477

                  Comment


                  • #10
                    this is not the same error, in your last logs you got:
                    Code:
                     failed: Request failed, error RTSP/1.0 403 Forbidden
                    in the first one you posted it was
                    Code:
                    failed: Request failed, error RTSP/1.0 500 Internal Server Error
                    so, what did you change exactly?
                    do you have a password set for Airplay?

                    Comment


                    • #11
                      Originally posted by spud View Post
                      this is not the same error, in your last logs you got:
                      Code:
                       failed: Request failed, error RTSP/1.0 403 Forbidden
                      in the first one you posted it was
                      Code:
                      failed: Request failed, error RTSP/1.0 500 Internal Server Error
                      so, what did you change exactly?
                      do you have a password set for Airplay?
                      I did not have a password at first and got the 500 error. Setup a password (in plugin and Apple TV) and got the 403 error. Disabled the password in Apple TV and plugin and still receive 403 error. I restarted plugin after each change.

                      Comment


                      • #12
                        Do you still get the following message on your AppleTV? "This AirPlay connection requires iOS 7.1 or later, OS X 10.9.2 or later, or iTunes 11.2 or later."

                        did you try to change the "Require Device Verification" setting like explained in the link?

                        Comment


                        • #13
                          Originally posted by spud View Post
                          Do you still get the following message on your AppleTV? "This AirPlay connection requires iOS 7.1 or later, OS X 10.9.2 or later, or iTunes 11.2 or later."

                          did you try to change the "Require Device Verification" setting like explained in the link?
                          I only get the "This AirPlay connection requires iOS 7.1 or later, OS X 10.9.2 or later, or iTunes 11.2 or later." when I choose a password or pass code in the Apple TV. It does not show that message when no security is selected.

                          I have "Require Device Verification" setting to "OFF" in the Apple TV. I just tried it again and get this in the log:


                          Feb-25 11:09:57 AirplaySpeak DEBUG 18 Speaker.AfterSend()
                          Feb-25 11:09:57 AirplaySpeak DEBUG 18 Speaker.SendSample() gets lock
                          Feb-25 11:09:57 AirplaySpeak DEBUG 18 Speaker.SendSample()
                          Feb-25 11:09:57 AirplaySpeak DEBUG 18 Speaker.BeforeSend()
                          Feb-25 11:09:57 AirplaySpeak DEBUG Stack: at RTSPClient.ExecRequest(String Cmd, String ContentType, String Content, WebHeaderCollection hds, Boolean GetResponse, String& returnCode, Boolean parseHeaderOnError) at RTSPClient.Setup(Int32 controlport, Int32 timingport) at RAOPClient.Connect() at HSPI_AIRPLAY_SPEAK.Speaker.Reset()
                          Feb-25 11:09:57 AirplaySpeak INFO Connection to Apple TV (192.168.1.226:7000) failed: Request failed, error RTSP/1.0 500 Internal Server Error
                          Feb-25 11:09:25 AirplaySpeak DEBUG SETUP rtsp://192.168.1.10/3060732017 RTSP/1.0 CSeq: 2 Transport: RTP/AVP/UDP;unicast;interleaved=0-1;mode=record;control_port=50522;timing_port=50521 User-Agent: iTunes/4.6 (Macintosh; U; PPC Mac OS X 10.3) Client-Instance: 1B2FBD5FC48A8279
                          Feb-25 11:09:25 AirplaySpeak DEBUG Server, AirTunes/268.1
                          Feb-25 11:09:25 AirplaySpeak DEBUG CSeq, 1
                          Feb-25 11:09:25 AirplaySpeak DEBUG ANNOUNCE rtsp://192.168.1.10/3060732017 RTSP/1.0 CSeq: 1 Content-Type: application/sdp Content-Length: 183 User-Agent: iTunes/4.6 (Macintosh; U; PPC Mac OS X 10.3) Client-Instance: 1B2FBD5FC48A8279 v=0 o=iTunes 3060732017 0 IN IP4 192.168.1.10 s=iTunes c=IN IP4 192.168.1.226 t=0 0 m=audio 0 RTP/AVP 96 a=rtpmap:96 AppleLossless a=fmtp:96 352 0 16 40 10 14 2 255 0 0 44100
                          Feb-25 11:09:25 AirplaySpeak DEBUG 18 Speaker.Reset() gets the lock
                          Feb-25 11:09:25 AirplaySpeak DEBUG 18 Speaker.Reset()
                          Feb-25 11:09:25 AirplaySpeak DEBUG 9 Speaker.AfterSend()
                          Feb-25 11:09:25 AirplaySpeak DEBUG 9 Speaker.SendSample() gets lock
                          Feb-25 11:09:25 AirplaySpeak DEBUG 9 Speaker.SendSample()
                          Feb-25 11:09:25 AirplaySpeak DEBUG 9 Speaker.BeforeSend()
                          Feb-25 11:09:25 AirplaySpeak DEBUG Stack: at RTSPClient.ExecRequest(String Cmd, String ContentType, String Content, WebHeaderCollection hds, Boolean GetResponse, String& returnCode, Boolean parseHeaderOnError) at RTSPClient.Setup(Int32 controlport, Int32 timingport) at RAOPClient.Connect() at HSPI_AIRPLAY_SPEAK.Speaker.Reset()

                          Comment


                          • #14
                            I have recently bought an AppleTV 4th generation, and I have made a fix for this "500 Internal Server Error".

                            Please test version 3.0.0.9 available here

                            Comment


                            • #15
                              Spud,

                              I am also experiencing this error. I enabled the plugin and while listening to iTunes DAAP, my Philips AirPlay speakers pause for the speak event, although nothing is spoken, and then resume playing music. I did set a 3 second delay in ITunes DAAP.

                              When I list the HS speakers in the advanced section of the speak event, only my computer is listed as a client.

                              When looking at the configure of AirPlay Speak, all AirPlay speakers are listed.

                              Really hope you have some advice to get the plugin working (I already paid for it).

                              Thank you,

                              Michael



                              Here is a snippet of my log file:


                              Jun-12 6:26:25 PM AirplaySpeak DEBUG RECORD rtsp://192.168.0.2/1203614567 RTSP/1.0 CSeq: 3 Session: 1 Range: npt=0- RTP-Info: seq=862;rtptime=27384 User-Agent: iTunes/7.6.2 ( Windows;N Client-Instance: 5EE64C59ECE4F1C9
                              Jun-12 6:26:25 PM AirplaySpeak DEBUG Audio-Jack-Status, connected; type=analog
                              Jun-12 6:26:25 PM AirplaySpeak DEBUG Server, AirTunes/103.2
                              Jun-12 6:26:25 PM AirplaySpeak DEBUG Transport, RTP/AVP/UDP;unicast;mode=record;server_port=1225;control_port=1226;t iming_port=1227
                              Jun-12 6:26:25 PM AirplaySpeak DEBUG CSeq, 2
                              Jun-12 6:26:25 PM AirplaySpeak DEBUG Session, 1
                              Jun-12 6:26:24 PM AirplaySpeak DEBUG SETUP rtsp://192.168.0.2/1203614567 RTSP/1.0 CSeq: 2 Transport: RTP/AVP/UDP;unicast;interleaved=0-1;mode=record;control_port=60773;timing_port=60772 User-Agent: iTunes/7.6.2 ( Windows;N Client-Instance: 5EE64C59ECE4F1C9
                              Jun-12 6:26:24 PM AirplaySpeak DEBUG Server, AirTunes/103.2
                              Jun-12 6:26:24 PM AirplaySpeak DEBUG CSeq, 1
                              Jun-12 6:26:24 PM AirplaySpeak DEBUG ANNOUNCE rtsp://192.168.0.2/1203614567 RTSP/1.0 CSeq: 1 Content-Type: application/sdp Content-Length: 182 User-Agent: iTunes/7.6.2 ( Windows;N Client-Instance: 5EE64C59ECE4F1C9 v=0 o=iTunes 1203614567 0 IN IP4 192.168.0.2 s=iTunes c=IN IP4 192.168.0.254 t=0 0 m=audio 0 RTP/AVP 96 a=rtpmap:96 AppleLossless a=fmtp:96 352 0 16 40 10 14 2 255 0 0 44100
                              Jun-12 6:26:24 PM AirplaySpeak DEBUG 13 Speaker.Reset() gets the lock
                              Jun-12 6:26:24 PM AirplaySpeak DEBUG 13 Speaker.Reset()
                              Jun-12 6:26:24 PM AirplaySpeak DEBUG Stack: at RTSPClient.ExecRequest(String Cmd, String ContentType, String Content, WebHeaderCollection hds, Boolean GetResponse, String& returnCode, Boolean parseHeaderOnError) at RTSPClient.Record(Int32 rtpseq, Int32 rtptime) at RAOPClient.Connect() at HSPI_AIRPLAY_SPEAK.Speaker.Reset()
                              Jun-12 6:26:24 PM AirplaySpeak INFO Connection to Living Room Speaker (192.168.0.147:1024) failed: Request failed, error RTSP/1.0 500 Internal Server Error
                              Jun-12 6:26:18 PM Z-Wave Device: Sensors Loft Motion Sensor Set to On/Open/Motion
                              Jun-12 6:26:08 PM Z-Wave Scenes Office Wall Plug Central Scene signal received, requesting status.
                              Jun-12 6:26:08 PM Z-Wave Device: Scenes Office Wall Plug Central Scene Set to 2000
                              Jun-12 6:26:07 PM Z-Wave Ceiling Fans Office Ceiling Fan signal received, requesting status.
                              Jun-12 6:26:07 PM Z-Wave Scenes Office Ceiling Fan Lights Central Scene signal received, requesting status.
                              Jun-12 6:26:07 PM Z-Wave Device: Scenes Office Ceiling Fan Lights Central Scene Set to 2000
                              Jun-12 6:26:04 PM Z-Wave Device: Sensors Office Motion Sensor Set to On/Open/Motion
                              Jun-12 6:25:52 PM AirplaySpeak DEBUG RECORD rtsp://192.168.0.2/3072581376 RTSP/1.0 CSeq: 3 Session: 1 Range: npt=0- RTP-Info: seq=987;rtptime=19840 User-Agent: iTunes/7.6.2 ( Windows;N Client-Instance: B80BBD8CA4293AAA
                              Jun-12 6:25:52 PM AirplaySpeak DEBUG Audio-Jack-Status, connected; type=analog
                              Jun-12 6:25:52 PM AirplaySpeak DEBUG Server, AirTunes/103.2
                              Jun-12 6:25:52 PM AirplaySpeak DEBUG Transport, RTP/AVP/UDP;unicast;mode=record;server_port=1245;control_port=1246;t iming_port=1247
                              Jun-12 6:25:52 PM AirplaySpeak DEBUG CSeq, 2
                              Jun-12 6:25:52 PM AirplaySpeak DEBUG Session, 1
                              Jun-12 6:25:51 PM AirplaySpeak DEBUG SETUP rtsp://192.168.0.2/3072581376 RTSP/1.0 CSeq: 2 Transport: RTP/AVP/UDP;unicast;interleaved=0-1;mode=record;control_port=60770;timing_port=60769 User-Agent: iTunes/7.6.2 ( Windows;N Client-Instance: B80BBD8CA4293AAA
                              Jun-12 6:25:51 PM AirplaySpeak DEBUG Server, AirTunes/103.2
                              Jun-12 6:25:51 PM AirplaySpeak DEBUG CSeq, 1
                              Jun-12 6:25:51 PM AirplaySpeak DEBUG ANNOUNCE rtsp://192.168.0.2/3072581376 RTSP/1.0 CSeq: 1 Content-Type: application/sdp Content-Length: 182 User-Agent: iTunes/7.6.2 ( Windows;N Client-Instance: B80BBD8CA4293AAA v=0 o=iTunes 3072581376 0 IN IP4 192.168.0.2 s=iTunes c=IN IP4 192.168.0.147 t=0 0 m=audio 0 RTP/AVP 96 a=rtpmap:96 AppleLossless a=fmtp:96 352 0 16 40 10 14 2 255 0 0 44100
                              Jun-12 6:25:51 PM AirplaySpeak DEBUG 13 Speaker.Reset() gets the lock
                              Jun-12 6:25:51 PM AirplaySpeak DEBUG 13 Speaker.Reset()
                              Jun-12 6:25:51 PM AirplaySpeak DEBUG Stack: at RTSPClient.ExecRequest(String Cmd, String ContentType, String Content, WebHeaderCollection hds, Boolean GetResponse, String& returnCode, Boolean parseHeaderOnError) at RTSPClient.Record(Int32 rtpseq, Int32 rtptime) at RAOPClient.Connect() at HSPI_AIRPLAY_SPEAK.Speaker.Reset()
                              Jun-12 6:25:51 PM AirplaySpeak INFO Connection to Guest Room Speaker (192.168.0.127:1024) failed: Request failed, error RTSP/1.0 500 Internal Server Error
                              Jun-12 6:25:18 PM AirplaySpeak DEBUG RECORD rtsp://192.168.0.2/0511141897 RTSP/1.0 CSeq: 3 Session: 1 Range: npt=0- RTP-Info: seq=1058;rtptime=20646 User-Agent: iTunes/7.6.2 ( Windows;N Client-Instance: 548CB989D3A453C1
                              Jun-12 6:25:18 PM AirplaySpeak DEBUG Audio-Jack-Status, connected; type=analog
                              Michael

                              HS3 Pro 3.0.0.470 | 849 devices | 349 events | OpenSprinkler | BLShutdown | EasyTrigger | NetCAM | Harmony Hub | Sonos | SDJ-Health | BLUPS | PHLocation | BLBackup | BLLock | Z-Wave 3.0.1.243 | weatherXML | Pushover 3P | Blue-Iris | AirPlaySpeak

                              Comment

                              Working...
                              X