Giter Site home page Giter Site logo

Bogus IP and no response about arrjs HOT 8 OPEN

tjanczuk avatar tjanczuk commented on September 23, 2024
Bogus IP and no response

from arrjs.

Comments (8)

tjanczuk avatar tjanczuk commented on September 23, 2024

Have you tried running the included sample applications by following the steps of Getting Started?

from arrjs.

cmgit avatar cmgit commented on September 23, 2024

Still get weird ip but it looks like negotiation is occurring

Page comes back with

Web application not found in registry

c:\software\node-v0.7.3\Release\node_modules\arrjs\src>node arr.js --mongo=mongo
db://localhost/arr -p 1337 -s 443
DEBUG:169.254.3.96
Managed TCP port range: 8000-9000
Mongo DB: mongodb://localhost/arr
Unsecured listen address: 169.254.3.96:1337
SSL listen address: 169.254.3.96:443
Certificate: certs/wildcard-janczuk-cert.pem
Private key: certs/wildcard-janczuk-key.pem
Connected to Mongo DB
Loaded apps collection
Loaded SNI configuration
Configuring SNI for hostname app1.janczuk.org
Configuring SNI for hostname app2.janczuk.org
Configuring SNI for hostname app2.tangyorange.com
Configuring SNI for hostname ws1.janczuk.org
Configuring SNI for hostname ws1.tangyorange.com
ARR.JS started
Ctrl-C to terminate

from arrjs.

tjanczuk avatar tjanczuk commented on September 23, 2024

The hostname of the requests you are making (Host HTTP request header) must match one of the host names from the apps collection in your arr Mongo database.

from arrjs.

cmgit avatar cmgit commented on September 23, 2024

yeah...you pull full string into context.host so i'm going to update db to add port to key..

from arrjs.

tjanczuk avatar tjanczuk commented on September 23, 2024

Good point, yes. What are you building by the way?

from arrjs.

cmgit avatar cmgit commented on September 23, 2024

that results in

An error occurred when routing: {"code":"Unknown system errno 10060","errno":"Unknown system errno 10060","syscall":"connect"}

from arrjs.

cmgit avatar cmgit commented on September 23, 2024

BTW ws handles straight websockets from chrome and mozilla. socket.io does not in my experience.

from arrjs.

tjanczuk avatar tjanczuk commented on September 23, 2024

So I am assuming you are running on Windows. 10060 is "connection timed out" (http://msdn.microsoft.com/en-us/library/windows/desktop/ms740668(v=vs.85).aspx). Is anything actually listening on the IP and port number arrjs claims it is attempting to route the message to in https://github.com/tjanczuk/arrjs/blob/master/src/arr.js#L104?

The sample WS app included in wrrjs configures socket.io to only use websockets (https://github.com/tjanczuk/arrjs/blob/master/src/apps/ws1/server.js#L21). If you turn on network tracing in the browser you should see the upgrade request.

from arrjs.

Related Issues (1)

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.