bklavet / Echo-skill-to-control-Directv

amazon echo skill that will control a networked Directv Receiver so that users can control Directv with their voice
18 stars 67 forks source link

I get this error messege when testing #69

Closed marcusmiles1973 closed 6 years ago

marcusmiles1973 commented 6 years ago

The remote endpoint could not be called, or the response it returned was invalid. I follow the tutorial to the T and still get this message, please help B Money...

vmweaver commented 6 years ago

Did you chck through all of the things in this post? https://github.com/bklavet/Echo-skill-to-control-Directv/issues/12

It will be important to make sure that you can control thing from your local network, then from your external address first. This will ensure your DTV box is setup properly and that you have your router/firewall configured to forward traffic to your DTV box.

marcusmiles1973 commented 6 years ago

Ok. I got it to pause inside the network but no success on the outside. The port is forwarded to 8080 so I don't understand. Im sorry, im a noob when it comes to this. I have a plex server setup and forwarded to port 32400 so I know that the router is working.

vmweaver commented 6 years ago

I assume the configuration is the same between your Plex port forwarding as with the DTV port forwarding? Did you have to configure any type of Firewall Rule to allow Plex inbound? What type of router/FW are you running?
Is your external IP address IPv4 (xxx.xxx.xxx.xxx) or IPv6 (XXXX::XXXX:XXXX:XXXX:XXXX) or both? Please note to NOT include your actual address in any post!

marcusmiles1973 commented 6 years ago

the router is a comcast gateway smcd3gny. security type: TCP. my public ip is [removed IPv6 Address]. no special firewall settings

vmweaver commented 6 years ago

Since this is an IPv6 address, you may have to specify the destination as http://[IPv6Address]:8080/tv/getTuned (note the square brackets enclosing the address) Is this the format you are using to test externally?

marcusmiles1973 commented 6 years ago

yes it is but i delete the brackets.

marcusmiles1973 commented 6 years ago

this is what i paste inside of the browser. http://IPv6Address:8080/remote/processkey?key=pause&hold=keypress. Then is sends me to the did you mean page.

vmweaver commented 6 years ago

Any difference by including the bracket around the address?

marcusmiles1973 commented 6 years ago

No, no difference at all

On Jan 13, 2018 12:58 PM, "mawrew19" notifications@github.com wrote:

Any difference by including the bracket around the address?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bklavet/Echo-skill-to-control-Directv/issues/69#issuecomment-357453870, or mute the thread https://github.com/notifications/unsubscribe-auth/AhwxJOKpcEUwp07BcnqLYlUpW_ZIoQnxks5tKO66gaJpZM4RdQ89 .

vmweaver commented 6 years ago

And hitting your Plex server using your external address works fine in your browser? Is the URL somethign like "http://Ipv6Address:32400/web" ?? Sorry for all the questions on this.. just trying to determine where the issue lies.

marcusmiles1973 commented 6 years ago

Well I just tried that and it didn't work either. I usually just go to my app on my phone,or tablet to access it.

On Jan 13, 2018 1:06 PM, "mawrew19" notifications@github.com wrote:

And hitting your Plex server using your external address works fine in your browser? Sorry for all the questions on this.. just trying to determine where the issue lies.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bklavet/Echo-skill-to-control-Directv/issues/69#issuecomment-357454461, or mute the thread https://github.com/notifications/unsubscribe-auth/AhwxJJr96bqC6Y1tPWpdWAKD6VgkCGcxks5tKPCmgaJpZM4RdQ89 .

bklavet commented 6 years ago

is there a dmz option to put your dtv local ip into? this would help confirm if it is a router/isp blocking issue.

marcusmiles1973 commented 6 years ago

Yes there is but I don't know how to set it up

On Jan 13, 2018 1:18 PM, "B money" notifications@github.com wrote:

is there a dmz option to put your dtv local ip into? this would help confirm if it is a router/isp blocking issue.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bklavet/Echo-skill-to-control-Directv/issues/69#issuecomment-357455243, or mute the thread https://github.com/notifications/unsubscribe-auth/AhwxJDVyWvbvdHTgDr0CVS3UlO_gu6nLks5tKPNsgaJpZM4RdQ89 .

bklavet commented 6 years ago

Google search how to set up [your router make/model] for dmz on Comcast. you may be able to find something that helps show the setup. DMZ for mine is just a matter of enabling it, and assigning a local ip address. It throws that ip in front of its firewall. the Ip you will want to use is the local ip assigned to the dtv receiver.

marcusmiles1973 commented 6 years ago

Ok I just enabled it and put in my receivers up address.

On Jan 13, 2018 1:33 PM, "B money" notifications@github.com wrote:

Google search how to set up [your router make/model] for dmz on Comcast. you may be able to find something that helps show the setup. DMZ for mine is just a matter of enabling it, and assigning a local ip address. It throws that ip in front of its firewall. the Ip you will want to use is the local ip assigned to the dtv receiver.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bklavet/Echo-skill-to-control-Directv/issues/69#issuecomment-357456314, or mute the thread https://github.com/notifications/unsubscribe-auth/AhwxJHnJfV3wrTXiViyBp6cOb7j4YvKKks5tKPcHgaJpZM4RdQ89 .

bklavet commented 6 years ago

http://ipv6address:8080/remote/processkey?key=pause&hold=keypress

try this one again and see if it works,

marcusmiles1973 commented 6 years ago

It's a no go. Same thing it goes directly to a search results page

On Jan 13, 2018 1:38 PM, "B money" notifications@github.com wrote:

http://ipv6address:8080/remote/processkey?key=pause&hold=keypress

try this one again and see if it works,

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bklavet/Echo-skill-to-control-Directv/issues/69#issuecomment-357456583, or mute the thread https://github.com/notifications/unsubscribe-auth/AhwxJIGcCZySONLC0nxbls_Nju2_acNpks5tKPgHgaJpZM4RdQ89 .

bklavet commented 6 years ago

not looking good, double check port 8080 here. http://canyouseeme.org/

marcusmiles1973 commented 6 years ago

This is how I can access my plex. [ipv4]:32400/web

On Jan 13, 2018 1:46 PM, "Marcus Miles" marcusmiles.1973@gmail.com wrote:

It's a no go. Same thing it goes directly to a search results page

On Jan 13, 2018 1:38 PM, "B money" notifications@github.com wrote:

http://ipv6address:8080/remote/processkey?key=pause&hold=keypress

try this one again and see if it works,

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bklavet/Echo-skill-to-control-Directv/issues/69#issuecomment-357456583, or mute the thread https://github.com/notifications/unsubscribe-auth/AhwxJIGcCZySONLC0nxbls_Nju2_acNpks5tKPgHgaJpZM4RdQ89 .

bklavet commented 6 years ago

its open well it looks open.... I checked it against this site aswell https://networkappers.com/tools/open-port-checker

step one in issue 12 has been confirmed right? you have it set up to allow third parties. somethings not right, the port looks open. you should be able to control it.

marcusmiles1973 commented 6 years ago

Ok did a check and came back with a can't see error

On Jan 13, 2018 2:00 PM, "B money" notifications@github.com wrote:

its open

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bklavet/Echo-skill-to-control-Directv/issues/69#issuecomment-357458051, or mute the thread https://github.com/notifications/unsubscribe-auth/AhwxJJG7XGZ7jfB_oSBN-cO-a8CGE_xEks5tKP01gaJpZM4RdQ89 .

marcusmiles1973 commented 6 years ago

Ok, just found,out that my port 80 and 8080 is, reserved for smc. Is there a way to use any other ports?

On Jan 13, 2018 2:02 PM, "Marcus Miles" marcusmiles.1973@gmail.com wrote:

Ok did a check and came back with a can't see error

On Jan 13, 2018 2:00 PM, "B money" notifications@github.com wrote:

its open

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bklavet/Echo-skill-to-control-Directv/issues/69#issuecomment-357458051, or mute the thread https://github.com/notifications/unsubscribe-auth/AhwxJJG7XGZ7jfB_oSBN-cO-a8CGE_xEks5tKP01gaJpZM4RdQ89 .

vmweaver commented 6 years ago

so.. a few things:

  1. This an ipv4 address, so that's a bit easier.
  2. You should be able to configure your portforwarding to use (say) port 3000 to 3000 (range) and then direct it to port 8080 on the DTV box.
marcusmiles1973 commented 6 years ago

Ok. If you can,give me some instruction on how to redirect to dvr, I will configure the router then take a break. I really appreciate you working with me.

On Jan 13, 2018 2:16 PM, "mawrew19" notifications@github.com wrote:

so.. a few things:

  1. This an ipv4 address, so that's a bit easier.
  2. You should be able to configure your portforwarding to use (say) port 3000 to 3000 (range) and then direct it to port 8080 on the DTV box.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bklavet/Echo-skill-to-control-Directv/issues/69#issuecomment-357459042, or mute the thread https://github.com/notifications/unsubscribe-auth/AhwxJKrQ9kg-YxubBT0-QhJhyo3D4X_gks5tKQEcgaJpZM4RdQ89 .

marcusmiles1973 commented 6 years ago

I was using the port checker on my cellphone with the Wi-Fi off. With the Wi-Fi on, it says port 8080 is open.

On Jan 13, 2018 2:20 PM, "Marcus Miles" marcusmiles.1973@gmail.com wrote:

Ok. If you can,give me some instruction on how to redirect to dvr, I will configure the router then take a break. I really appreciate you working with me.

On Jan 13, 2018 2:16 PM, "mawrew19" notifications@github.com wrote:

so.. a few things:

  1. This an ipv4 address, so that's a bit easier.
  2. You should be able to configure your portforwarding to use (say) port 3000 to 3000 (range) and then direct it to port 8080 on the DTV box.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bklavet/Echo-skill-to-control-Directv/issues/69#issuecomment-357459042, or mute the thread https://github.com/notifications/unsubscribe-auth/AhwxJKrQ9kg-YxubBT0-QhJhyo3D4X_gks5tKQEcgaJpZM4RdQ89 .

vmweaver commented 6 years ago

Sure..

  1. First thing would be to undo the DMZ configuration
  2. Now go to the Port Forwarding Configuration screen and item that you currently have setup for Port 8080
  3. It will probably say something like "Starting Port" and "Ending Port"? If so, put those both as 3000

I am not sure where in the interface you tell it which "service" to use. I think that is under a drop down for "common Services".. There may be a section that is for "other" service which will let you specify a port. If there is one, then put in 8080 and make sure the serverIP is that of your DTV box.

Does any of this line up with what you see in the UI?

vmweaver commented 6 years ago

Does the UI look like this? image

If so: LAN Server IP = DTV IP address Remote IPs: ANY Public IP Ports: Single Start Public Port: 3000 End Public Port: 3000 (if you have to put something in) Private Port: 8080

vmweaver commented 6 years ago

@marcusmiles1973 Any luck with these settings or can you provide additional info?

marcusmiles1973 commented 6 years ago

No luck. I have to take a snapshot of my gui settings but I have to reset my router each time I want to log into it so I'll do that and send to you in a few.

On Jan 15, 2018 6:25 PM, "mawrew19" notifications@github.com wrote:

@marcusmiles1973 https://github.com/marcusmiles1973 Any luck with these settings or can you provide additional info?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bklavet/Echo-skill-to-control-Directv/issues/69#issuecomment-357811421, or mute the thread https://github.com/notifications/unsubscribe-auth/AhwxJCKSgMrAostOsnSURZFnIQ6iCO1Zks5tK95igaJpZM4RdQ89 .

vmweaver commented 6 years ago

Yikes, you have to reset it to login? Why is that?

marcusmiles1973 commented 6 years ago

I tried sending a pic of my interface but it won't go through. Do you have another email? Not sure,why my router makes me do that but on deck log out, I try to log back in and all it does is search then goes to the page not found.

On Jan 15, 2018 7:35 PM, "mawrew19" notifications@github.com wrote:

Yikes, yo have to reset it to login? Why is that?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bklavet/Echo-skill-to-control-Directv/issues/69#issuecomment-357820253, or mute the thread https://github.com/notifications/unsubscribe-auth/AhwxJIGwe8qIvG9E2XnN9wzsEAPvGrP6ks5tK-62gaJpZM4RdQ89 .

vmweaver commented 6 years ago

Sure. [email redacted]

marcusmiles1973 commented 6 years ago

It says that email can't be found. [email redacted]

On Jan 15, 2018 9:01 PM, "mawrew19" notifications@github.com wrote:

You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bklavet/Echo-skill-to-control-Directv/issues/69#issuecomment-357831892, or mute the thread https://github.com/notifications/unsubscribe-auth/AhwxJK9_SuOFCzr8_mLMVr1wwPfQ5L7Jks5tLALVgaJpZM4RdQ89 .

vmweaver commented 6 years ago

@marcusmiles1973 Was great working with you just now and glad we got this worked out for you. For documentation purposes:
I believe your original router would NOT allow a port forward for 8080, nor would it allow you to "port translate" from say "3000 externally to 8080 internally". Good work to replace that router with one that could actually work! ;-)

You had everything fine, but had gone into the realm of Publishing the skill. I am not sure if that caused issues or not. I recall you ALSO had "Skill Verification" enabled. I don't have mine setup that way, so I undid that too. I will play with both of those settings to see what was truly the cause of your issues.

Have fun playing!

marcusmiles1973 commented 6 years ago

Hey hows it going man? I have a question, there are a few channels missing inside of the custom slot values like WUPA. Do I just type it in and upload it or is there something else that I need to do to activate it?

On Sat, Jan 20, 2018 at 1:35 PM, mawrew19 notifications@github.com wrote:

Closed #69 https://github.com/bklavet/Echo-skill-to-control-Directv/issues/69.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bklavet/Echo-skill-to-control-Directv/issues/69#event-1433794311, or mute the thread https://github.com/notifications/unsubscribe-auth/AhwxJGb74dBpKz215pfPSwrs4qfnIw_Tks5tMjHkgaJpZM4RdQ89 .

bklavet commented 6 years ago

what channel is WUPA?

bklavet commented 6 years ago

is this wupa in atlanta channel 69?

marcusmiles1973 commented 6 years ago

Yes it is

On Jan 23, 2018 6:47 PM, "B money" notifications@github.com wrote:

is this wupa in atlanta channel 69?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bklavet/Echo-skill-to-control-Directv/issues/69#issuecomment-359971301, or mute the thread https://github.com/notifications/unsubscribe-auth/AhwxJA4nsQ4oeH9abbbjeNp0VjkVtzu8ks5tNm-sgaJpZM4RdQ89 .

bklavet commented 6 years ago

so do me a favor turn the main genie to WUPA and then put this in the browser enter, and then copy and paste the response here and I will show you how to add the channel. http://[dtv ip]:8080/tv/getTuned

marcusmiles1973 commented 6 years ago

{ "callsign": "WUPA", "date": "20180123", "duration": 1800, "isOffAir": false, "isPclocked": 3, "isPpv": false, "isRecording": false, "isVod": false, "major": 69, "minor": 65535, "offset": 1338, "programId": "74384096", "rating": "TV-PG", "startTime": 1516753800, "stationId": 3223472, "status": { "code": 200, "commandResult": 0, "msg": "OK.", "query": "/tv/getTuned" }, "title": "Family Feud" }

On Jan 23, 2018 7:45 PM, "B money" notifications@github.com wrote:

so do me a favor turn the main genie to WUPA and then put this in the browser enter, and then copy and paste the response here and I will show you how to add the channel. http://[dtv ip]:8080/tv/getTuned

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bklavet/Echo-skill-to-control-Directv/issues/69#issuecomment-359982276, or mute the thread https://github.com/notifications/unsubscribe-auth/AhwxJLSCnDFuMVYcBz-gwIWY2phfL0jdks5tNn1EgaJpZM4RdQ89 .

bklavet commented 6 years ago

you will want to add something like this to the index

case "WUPA": case "w.u.p.a..": case "wupa": path = '/tv/tune?major=69';

break;

you will want to add it after a "break;" and before another "case"

then go to the developer portal and add w.u.p.a. to the custom slot values.

odds are WUPA will go to lambda as w.u.p.u. but i added the other case arguments on the chance alexa sends off WUPA or wupa. if alexa sends something like "whoopa" you may have to adjust accordingly.

give it a shot and see how it goes

marcusmiles1973 commented 6 years ago

ok i wrote it into the index file now do you mean upload it to the developers site?

On Tue, Jan 23, 2018 at 8:05 PM, B money notifications@github.com wrote:

you will want to add something like this to the index

case "WUPA": case "w.u.p.a..": case "wupa": path = '/tv/tune?major=69';

break;

you will want to add it after a "break;" and before another "case"

then go to the developer portal and add w.u.p.a. to the custom slot values.

odds are WUPA will go to lambda as w.u.p.u. but i added the other case arguments on the chance alexa sends off WUPA or wupa. if alexa sends something like "whoopa" you may have to adjust accordingly.

give it a shot and see how it goes

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bklavet/Echo-skill-to-control-Directv/issues/69#issuecomment-359985847, or mute the thread https://github.com/notifications/unsubscribe-auth/AhwxJCtgYSer12FP7ct0G42mp3r9mSGsks5tNoHUgaJpZM4RdQ89 .

bklavet commented 6 years ago

you will want to zip your index with the alexa file, (like you did hte first time) and upload to lambda. then go to the developer portal and add w.u.p.a. to the custom slot value, and then you can test it out.

vmweaver commented 6 years ago

Yes.. so you will update the index file, zip it up with the Alexa file and upload that to the Lambda developer site.

Then you will go to the Alexa Skill and edit the "Control_List" custom slot type. You should see other channels at the bottom of that list. Just add the "w.u.p.a" to that list and save it.

vmweaver commented 6 years ago

for the index file, you will a bunch of entries like this: case "ABC": path = '/tv/tune?major=397'; break;

            case "amc":
                path = '/tv/tune?major=254';
            break;

case "WUPA": case "w.u.p.a..": case "wupa": path = '/tv/tune?major=69';

break;