Announcement

Collapse
No announcement yet.

Connection failed: Request failed, error 500

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

    Connection failed: Request failed, error 500

    I'm just busy adding the AirPlay functionality of my 'Apple airport express' to Homeseer.
    I installed the ' iTunes Speaker' plugin, this all works perfectly. The next step must be 'AirplaySpeak' to let Homeseer Speak over my Airplay devices.
    When homeseer starts up everything seems to be fine, the folowing text appears in the LOG:

    6/27/2013 10:47:23 PM - AirplaySpeak - Resolved Service: 20C9D09E2A2A - LivingRoom - 10.0.1.1 - 5000
    6/27/2013 10:47:23 PM - AirplaySpeak - TXT Records =
    6/27/2013 10:47:23 PM - AirplaySpeak - txtvers = '1'
    6/27/2013 10:47:23 PM - AirplaySpeak - ch = '2'
    6/27/2013 10:47:23 PM - AirplaySpeak - cn = '0,1'
    6/27/2013 10:47:23 PM - AirplaySpeak - et = '0,4'
    6/27/2013 10:47:23 PM - AirplaySpeak - sv = 'false'
    6/27/2013 10:47:23 PM - AirplaySpeak - da = 'true'
    6/27/2013 10:47:23 PM - AirplaySpeak - sr = '44100'
    6/27/2013 10:47:23 PM - AirplaySpeak - ss = '16'
    6/27/2013 10:47:23 PM - AirplaySpeak - pw = 'false'
    6/27/2013 10:47:23 PM - AirplaySpeak - vn = '65537'
    6/27/2013 10:47:23 PM - AirplaySpeak - tp = 'TCP,UDP'
    6/27/2013 10:47:23 PM - AirplaySpeak - vs = '105.1'
    6/27/2013 10:47:23 PM - AirplaySpeak - am = 'AirPort10,115'
    6/27/2013 10:47:23 PM - AirplaySpeak - fv = '76300.7'
    6/27/2013 10:47:23 PM - AirplaySpeak - sf = '0x5'

    When i run the default ' Speak Time' event, the 'Computer' speaks the time, but the 'Airport Express/Airplay' doesn't do anthing. After a few seconds the folowing apears in the LOG:

    6/27/2013 10:51:49 PM - AirplaySpeak - ANNOUNCE rtsp://10.0.1.14/3915479145 RTSP/1.0CSeq: 1Content-Type: application/sdpContent-Length: 175User-Agent: iTunes/4.6 (Macintosh; U; PPC Mac OS X 10.3)Client-Instance: 574C2653FC0BE268v=0o=iTunes 3915479145 0 IN IP4 10.0.1.14s=iTunesc=IN IP4 10.0.1.1t=0 0m=audio 0 RTP/AVP 96a=rtpmap:96 AppleLosslessa=fmtp:96 352 0 16 40 10 14 2 255 0 0 44100
    6/27/2013 10:51:49 PM - AirplaySpeak - CSeq, 1
    6/27/2013 10:51:49 PM - AirplaySpeak - Server, AirTunes/105.1
    6/27/2013 10:51:49 PM - AirplaySpeak - SETUP rtsp://10.0.1.14/3915479145 RTSP/1.0CSeq: 2Transport: RTP/AVP/UDP;unicast;interleaved=0-1;mode=record;control_port=58376;timing_port=58375User-Agent: iTunes/4.6 (Macintosh; U; PPC Mac OS X 10.3)Client-Instance: 574C2653FC0BE268
    6/27/2013 10:51:49 PM - AirplaySpeak - Transport, RTP/AVP/UDP;unicast;mode=record;server_port=6000;control_port=6001;t iming_port=6002
    6/27/2013 10:51:49 PM - AirplaySpeak - CSeq, 2
    6/27/2013 10:51:49 PM - AirplaySpeak - Server, AirTunes/105.1
    6/27/2013 10:51:49 PM - AirplaySpeak - Session, 1
    6/27/2013 10:51:49 PM - AirplaySpeak - Audio-Jack-Status, connected; type=analog
    6/27/2013 10:51:49 PM - AirplaySpeak - RECORD rtsp://10.0.1.14/3915479145 RTSP/1.0CSeq: 3Session: 1Range: npt=0-RTP-Info: seq=5263;rtptime=2750User-Agent: iTunes/4.6 (Macintosh; U; PPC Mac OS X 10.3)Client-Instance: 574C2653FC0BE268
    6/27/2013 10:52:22 PM - AirplaySpeak - Connection to LivingRoom (10.0.1.1:5000) failed: Request failed, error 500
    6/27/2013 10:52:22 PM - AirplaySpeak - Stack: at RTSPClient.ExecRequest(String Cmd, String ContentType, String Content, WebHeaderCollection hds, Boolean GetResponse) at RTSPClient.Record(Int32 rtpseq, Int32 rtptime) at RAOPClient.Connect() at HSPI_AIRPLAY_SPEAK.Speaker.Reset()

    Can anyone help me finding the problem?

    Jaco

    #2
    what's the version of the plugin you are testing?

    somehow the AirPort seems busy, are you playing some music on it from iTunes while you are testing the speak time event?
    The Airport needs to be idle for Airplay Speak to work, so make sure no other software is using it.

    Comment


      #3



      I just updated to version 1.2.0.6 but this don't change a lot, the error keeps appearing.

      The configuration I use is quite basic I think; a computer with a soundcard and one airport express (named: Woonkamer) which are both connected using network cables.




      6/28/2013 10:41:19 PM - AirplaySpeak - (Woonkamer): The time is 10:41 PM
      6/28/2013 10:41:19 PM - TTS - Speak: ():The time is 10:41 PM
      6/28/2013 10:41:19 PM - AirplaySpeak - 51 Speaker.Reset()
      6/28/2013 10:41:19 PM - AirplaySpeak - 51 Speaker.Reset() gets the lock
      6/28/2013 10:41:19 PM - AirplaySpeak - ANNOUNCE rtsp://10.0.1.14/2766785096 RTSP/1.0CSeq: 1Content-Type: application/sdpContent-Length: 175User-Agent: iTunes/4.6 (Macintosh; U; PPC Mac OS X 10.3)Client-Instance: 9B9829D0B24C60D0v=0o=iTunes 2766785096 0 IN IP4 10.0.1.14s=iTunesc=IN IP4 10.0.1.1t=0 0m=audio 0 RTP/AVP 96a=rtpmap:96 AppleLosslessa=fmtp:96 352 0 16 40 10 14 2 255 0 0 44100
      6/28/2013 10:41:20 PM - AirplaySpeak - CSeq, 1
      6/28/2013 10:41:20 PM - AirplaySpeak - Server, AirTunes/105.1
      6/28/2013 10:41:20 PM - AirplaySpeak - SETUP rtsp://10.0.1.14/2766785096 RTSP/1.0CSeq: 2Transport: RTP/AVP/UDP;unicast;interleaved=0-1;mode=record;control_port=64610;timing_port=64609User-Agent: iTunes/4.6 (Macintosh; U; PPC Mac OS X 10.3)Client-Instance: 9B9829D0B24C60D0
      6/28/2013 10:41:20 PM - AirplaySpeak - Transport, RTP/AVP/UDP;unicast;mode=record;server_port=6000;control_port=6001;t iming_port=6002
      6/28/2013 10:41:20 PM - AirplaySpeak - CSeq, 2
      6/28/2013 10:41:20 PM - AirplaySpeak - Server, AirTunes/105.1
      6/28/2013 10:41:20 PM - AirplaySpeak - Session, 1
      6/28/2013 10:41:20 PM - AirplaySpeak - Audio-Jack-Status, connected; type=analog
      6/28/2013 10:41:20 PM - AirplaySpeak - RECORD rtsp://10.0.1.14/2766785096 RTSP/1.0CSeq: 3Session: 1Range: npt=0-RTP-Info: seq=8071;rtptime=24473User-Agent: iTunes/4.6 (Macintosh; U; PPC Mac OS X 10.3)Client-Instance: 9B9829D0B24C60D0



      6/28/2013 10:41:52 PM - AirplaySpeak - Connection to Woonkamer (10.0.1.1:5000) failed: Request failed, error 500
      6/28/2013 10:41:52 PM - AirplaySpeak - Stack: at RTSPClient.ExecRequest(String Cmd, String ContentType, String Content, WebHeaderCollection hds, Boolean GetResponse) at RTSPClient.Record(Int32 rtpseq, Int32 rtptime) at RAOPClient.Connect() at HSPI_AIRPLAY_SPEAK.Speaker.Reset()
      6/28/2013 10:41:52 PM - AirplaySpeak - 51 Speaker.BeforeSend()
      6/28/2013 10:41:52 PM - AirplaySpeak - 51 Speaker.SendSample()
      6/28/2013 10:41:52 PM - AirplaySpeak - 51 Speaker.SendSample() gets lock
      6/28/2013 10:41:52 PM - AirplaySpeak - 51 Speaker.AfterSend()






      Thank you for your help!







      Comment


        #4
        to make sure the airport is idle, just close iTunes and then try again to run the Speak Time event.

        Except this, I must confess I don't know what could cause this. Here is some other things you can try:

        - your logs show that you are using the latest AirPort generation with the latest firmware (7.6.3) which I never tested personnaly. So you can try to downgrade your firmware to 7.6.2. using the Airport Utility tool

        - do you have any other AirPlay device that you could test to make sure the problem does not come from your network or config? If you don't you can try to install Shairport4w: http://sourceforge.net/projects/shairport4w/ on a windows machine to turn this machine into an AirPlay receiver. Just make sure to disable the AirPort Express from the Airplay Speak config page.

        Comment


          #5



          The following text appears in the logging:

          7/8/2013 10:29:49 PM - Event - Event Trigger "Speak Time"
          7/8/2013 10:29:49 PM - AirplaySpeak - (Woonkamer): The time is 10:29 PM
          7/8/2013 10:29:49 PM - TTS - Speak: ():The time is 10:29 PM
          7/8/2013 10:29:49 PM - AirplaySpeak - 47 Speaker.Reset()
          7/8/2013 10:29:49 PM - AirplaySpeak - 47 Speaker.Reset() gets the lock
          7/8/2013 10:30:10 PM - AirplaySpeak - Connection to Woonkamer (172.16.42.1:5000) failed: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 172.16.42.1:5000
          7/8/2013 10:30:10 PM - AirplaySpeak - Stack: at System.Net.Sockets.TcpClient.Connect(String hostname, Int32 port) at RTSPClient.Connect() at RAOPClient.Connect() at HSPI_AIRPLAY_SPEAK.Speaker.Reset()
          7/8/2013 10:30:10 PM - AirplaySpeak - 47 Speaker.BeforeSend()
          7/8/2013 10:30:10 PM - AirplaySpeak - 47 Speaker.SendSample()
          7/8/2013 10:30:10 PM - AirplaySpeak - 47 Speaker.SendSample() gets lock
          7/8/2013 10:30:10 PM - AirplaySpeak - 47 Speaker.AfterSend()

          Comment


            #6
            Originally posted by Jaco View Post
            It is supposed to be the ip address of your Airport Express, make sure that there is no firewall or anti virus blocking traffic from your HS machine to your Airport Express. For example can you ping your Airport Express from your HS machine?

            Also did you try with shairport or another AirPlay device?

            Comment


              #7
              First of all I tried to ping to 172.16.42.1, there was no reply coming back. In the configuration of the AirportExpress I found out the 172.16.42-range was reserved for the guest-network. After disabling the guest network the and restarting homeseer, the AirplaySpeak plugin connect to the AirportExpress in the 10.0.1-range which is the same as my homeseer server. After this it is possible to ping the IP-adress.
              Unfortunately the “Connection to Woonkamer (10.0.1.1:5000) failed: Request failed, error 500 “-error appears again. Also after disabling virus-software and firewall is doesn’t work.


              I use Spud’s iTunesSpeakers plugin, this can connect to my AirportExpress perfectly, I can control everything. Even my iPhone and iPad can ‘stream’ audio to the AirportExpress.

              I’ve thought a lot about the problem, and driven to find the problem. If the software is working at everybody except at my system, I will try to change the things which are different in my configuration.
              I think my network configuration differs a little bit from the most users; the networkcable from my ISP is plugged into the AirportExpress, the outgoing cable is going to a switch. Because the AirportExpress is only providing DHCP-addresses on the wireless part of the router, I gave all the wired devices a static IP-address. Maybe this has something to do with the problem.

              What’s the configuration of most AirplaySpeak-users, a normal router with one-or-more AirplayExpresses which are ‘wired’ connected to the router?

              Comment


                #8
                I guess most users do not use an AirPort Express as their main router. Personnally, I don't even use the router capabilities of my AE, I just connect them to my local network through wifi and use them only to stream audio from HS and iTunes.

                But since you can stream from iTunes, there is no reason it wouldn't work from HS with this plugin. Does the iTunes instance you tested with is running on the same machine as HS?

                To help me investigate, please
                - install the latest Beta version (1.2.0.7)
                - set the log level to debug,
                - restart HS
                - run an event that speaks something
                - send me the FULL log (spud.webb.4@gmail.com) or paste it here.

                then if you can try to test with the AE configured as a simple wifi or wired client (and not as your main router) that could help too.

                Comment

                Working...
                X