Jump to content

Networking Resources (Error TCP client request failed Net Module Rule: 34:406)


cam

Recommended Posts

There is no authentication/data... I just need to simply hit a website that I own.

 

For instance, if I create a new resource to www.google.com (with no path) it runs just fine.  If I alter that resource and add /news to the path I get a Net Module Rule: 36 error.

Link to comment

For the life of me I can't remember how to copy/paste an image...  

 

Top Section:  http GET Host www.google.com Port 80 Path /news [no encode] timeout 500 ms

Detail Headers

GET /news HTTP/1.1

Host: www.google.com:80

User-Agent: Mozilla/4.0

 

Actual

GET /news HTTP/1.1

Host: www.google.com:80

User-Agent: Mozilla/4.0

 

I then Save/Save, click on the newly added resource and click test.  For this google example I get the errors Subscriber didn't replay to event 1 followed by TCP client resource moved Net Module Rule: 36

Link to comment

I have a hello.html file here:  http://www.justautomated.com/hello.html and it outputs <html><body>hi</body></html>.  Works great from any browser.

 

In NR I create a new resource with protocol information:

  • http
  • GET
  • Host: www.justautomated.com
  • Port: 80
  • Path: /hello.html
  • Timeout: 5,000
  • URL Encoded (I've tried it both ways)

I'm using default headers (didn't touch what ISY adds).

 

Error:  TCP client request failed [Net Module Rule:  36:406]

Link to comment

Just thought I'd update the thread...  apparently most hosting companies run mod_security (an Apache security module) that block inbound requests originating from an HTTP client (e.g. ISY network resources) if that client doesn't have a variety of HTTP header details (Michel posted a link to some of them).  I tried every combination of accept headers and I was never able to get the ISY to access my backend server.  I also tried to access wiki.universal-device.com using NR and that didn't work (I suspect due to the same mod_security reasons).

 

I gave up and routed the call from iRule for now...  If I get the time/patience I'll try it again and post an update.

Link to comment

Is the server not on the same lan as the ISY; you can’t use a local nat address (192.168.x.x or 10.x.x.x)?

 

I do have a server on my LAN but I'm working on some cloud-based automation and I need to execute a Network Resource on a remote/hosted server.  

Link to comment

Can you get to https://google.com?

 

 

I was able to access google.com's home page without issue (they must have mod_security disabled and/or allow 3rd party non-browser clients (like the ISY) to connect.  I spent several hours late last night and found a solution to allow ISY calls to a remote server with mod_security enabled...  We're basically trying to trick the Apache server in thinking the ISY is a browser.  Here are the headers I set in the ISY Networking Resource to get it to work:

 

Accept: text/html

Accept-Charset: utf-8

Accept-Language: en-US

Content-Type: text/html

User-Agent:  Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...