Coder Social home page Coder Social logo

404 for all routes about demo-chat HOT 10 CLOSED

tpoxa avatar tpoxa commented on September 16, 2024
404 for all routes

from demo-chat.

Comments (10)

khelle avatar khelle commented on September 16, 2024

Did you change the ip address in `public/js/index.js' also?

from demo-chat.

zhiephie avatar zhiephie commented on September 16, 2024

@khelle yeah I too, try change index.js listen to external ip, what is wrong?

from demo-chat.

khelle avatar khelle commented on September 16, 2024

Could you please link me the changes you made, so I can try to detect the problem?

from demo-chat.

zhiephie avatar zhiephie commented on September 16, 2024

I change localhost:6080 to ip:6080, and run server and client again. what's wrong with the way I? 😄

from demo-chat.

khelle avatar khelle commented on September 16, 2024

I suspect this is the problem with origin or ip filtering. If you provide me your changed files I could ensure that everything is configured properly and the bug is on the kraken side, so then I would be able to run tests and fix it.

from demo-chat.

zhiephie avatar zhiephie commented on September 16, 2024

I'm only change this.connection.ws = new WebSocket("ws://localhost:6080/chat"); to this.connection.ws = new WebSocket("ws://192.168.1.164:6080/chat"); and restart kraken server and kraken client.

and i'm visit link 192.168.1.164:6080 not working.

from demo-chat.

tpoxa avatar tpoxa commented on September 16, 2024

Sorry. I left this environment. I unable to recreate it.

from demo-chat.

khelle avatar khelle commented on September 16, 2024

@zhiephie I believe lines 157-159 in Kraken\Netwok\Http\Component\Router\HttpRouter might be an issue. Could you try changing them from:

$this->checkOrigin ? [] : [ 'Origin' => $this->host ],
[],
$this->checkOrigin ? '' : $this->host

to

!$this->checkOrigin ? [] : [ 'Origin' => $this->host ],
[],
!$this->checkOrigin ? '' : $this->host

And tell me if this helped?

from demo-chat.

zhiephie avatar zhiephie commented on September 16, 2024

@khelle Thanks worked 😄

from demo-chat.

khelle avatar khelle commented on September 16, 2024

Glad to hear that. I will provide these fixes to 0.3.2 release, but until then you have to keep these lines changed in your instance for it to work properly :)

from demo-chat.

Related Issues (7)

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.