Code Monkey home page Code Monkey logo

Comments (12)

macpie avatar macpie commented on June 11, 2024

You should get more info than that in the debug mode, full request/response.

from console.

disk91 avatar disk91 commented on June 11, 2024

the debug does not provide much more information:

{
  "id": "0a9cc59c-2857-451e-a488-f5cc09cab0e1",
  "name": "foxtrackr",
  "status": "error"
}

{}

the request (URL and body content looks good, content-type is ok) but the console report error as seen.
On my backend server, I see no incoming request from the console server.

Any other traces ?

from console.

disk91 avatar disk91 commented on June 11, 2024

getting more in the router log (was thinking is was a console job to manage the integration)
[2021-03-23 13:29:53.429] <0.4155.0> [info] [c563e843-dc17-4fc2-9268-33aa4593b3b0] [router_http_channel:check_url:144] got bad dns record "xxxxxx" {notimp,{dns_rec,{dns_header,4,true,query,false,false,true,true,false,4},[{dns_query,"xxxx",a,any}],[],[],[]}}

From the inside of the container I'm able to ping the target and also to curl the target, so it sounds being an issue inside the router

from console.

macpie avatar macpie commented on June 11, 2024

Sadly, I could not reproduce in any of our servers or locally.
You could run this:

docker exec -it helium_router _build/default/rel/router/bin/router remote_console

inet_res:resolve("XXX", any, a).

XXX being the url without http(s) and path (ex: https://google.com/maps -> google.com)

I would also take a look at your DNS setup on your server.

from console.

disk91 avatar disk91 commented on June 11, 2024

Here is the result

([email protected])1> inet_res:resolve("www.google.com",any,a)    
([email protected])1> inet_res:resolve(www.google.com,any,a)  
([email protected])1> inet_res:resolve(helium.com,any,a) 

From inside the container:

root@2f929337f7cf:/opt/router# ping  www.google.com
PING www.google.com (172.217.19.228) 56(84) bytes of data.
64 bytes from par21s11-in-f4.1e100.net (172.217.19.228): icmp_seq=1 ttl=108 time=13.3 ms

from console.

macpie avatar macpie commented on June 11, 2024

I would like to see the result with your HTTP integration's URL

from console.

macpie avatar macpie commented on June 11, 2024

FYI: we have an option https://github.com/helium/router/blob/master/src/channels/router_http_channel.erl#L105 to turn off the url check. It is not exposed via env variables but can be added here https://github.com/helium/router/blob/master/config/sys.config.src#L32

from console.

disk91 avatar disk91 commented on June 11, 2024

Command update

inet_res:resolve("xxx.com",any,a).
{error,{notimp,{dns_rec,{dns_header,82,true,query,false,
                                    false,true,true,false,4},
                        [{dns_query,"xxx.com",a,any}],
                        [],[],[]}}}

of with google

inet_res:resolve("www.google.com",any,a).
{error,{notimp,{dns_rec,{dns_header,96,true,query,false,
                                    false,true,true,false,4},
                        [{dns_query,"www.google.com",a,any}],
                        [],[],[]}}}

from console.

Vagabond avatar Vagabond commented on June 11, 2024

What DNS resolver do you have configured for this system? does the 'dig' command work?

from console.

disk91 avatar disk91 commented on June 11, 2024

dig is not part of the router container but as described above :
From inside the container:

root@2f929337f7cf:/opt/router# ping  www.google.com
PING www.google.com (172.217.19.228) 56(84) bytes of data.
64 bytes from par21s11-in-f4.1e100.net (172.217.19.228): icmp_seq=1 ttl=108 time=13.3 ms

from console.

macpie avatar macpie commented on June 11, 2024

ability to disabled that check exposed here helium/router#260

from console.

disk91 avatar disk91 commented on June 11, 2024

Tested working with the DNS check deactivation

from console.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.