Giter Club home page Giter Club logo

dash's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dash's Issues

Error with sanic

Getting this error with Dash. Result: Unable to create a club penguin account

2023-04-11 15:56:05 Traceback (most recent call last):
2023-04-11 15:56:05 File "/usr/src/dash/bootstrap.py", line 3, in
2023-04-11 15:56:05 from sanic.log import logger
2023-04-11 15:56:05 File "/usr/local/lib/python3.11/site-packages/sanic/init.py", line 2, in
2023-04-11 15:56:05 from sanic.app import Sanic
2023-04-11 15:56:05 File "/usr/local/lib/python3.11/site-packages/sanic/app.py", line 102, in
2023-04-11 15:56:05 from sanic.server.protocols.websocket_protocol import WebSocketProtocol
2023-04-11 15:56:05 File "/usr/local/lib/python3.11/site-packages/sanic/server/protocols/websocket_protocol.py", line 3, in
2023-04-11 15:56:05 from websockets.connection import CLOSED, CLOSING, OPEN
2023-04-11 15:56:05 ImportError: cannot import name 'CLOSED' from 'websockets.connection' (/usr/local/lib/python3.11/site-packages/websockets/connection.py)
2023-04-11 15:56:05 2023/04/11 19:56:05 Command exited with error: exit status 1

Tutorial

I alredy config the Houdini-Asyncio in Xampp.
The Dash tutorial is only to nginx. Can you do a tutorial to config in Xampp?

Implementing card-jitsu snow authentication

The current snfgenerator for dash has no user authentication implemented, which lets players login with any account they want to. While this may not be a big security risk, I would still like to change that.

After some research, I found out that the /session endpoint receives the user_id and the login_key parameters. As far as I understood, when logging into houdini, a login key gets generated and temporarily stored in redis, but then deleted after you log into the world server. This makes the authentication impossible, unless you remove the expiry for the login key.

Furthermore, the game server for cjsnow needs a session token to actually authenticate the user. So implementing that part would also be required.

If the maintainers agree to these changes, I may open a pr for the implementation.

Error 500 page register

I dont speak the inglesh very well, forgive me is something is write bad.
The page register of my cpps show me the error 500.
I dont know what i made wrong i follow all of the steps of the video right.

Error with Sanic (need more help)

So I have downgraded the Python version of Dash (replaced FROM python:3-alpine for FROM python:3-10-alpine in Dockerfile and rebuilt the image).

image

And I still get the same error

dash_1               | Traceback (most recent call last):
dash_1               |   File "/usr/src/dash/bootstrap.py", line 3, in <module>
dash_1               |     from sanic.log import logger
dash_1               |   File "/usr/local/lib/python3.10/site-packages/sanic/__init__.py", line 2, in <module>
dash_1               |     from sanic.app import Sanic
dash_1               |   File "/usr/local/lib/python3.10/site-packages/sanic/app.py", line 102, in <module>
dash_1               |     from sanic.server.protocols.websocket_protocol import WebSocketProtocol
dash_1               |   File "/usr/local/lib/python3.10/site-packages/sanic/server/protocols/websocket_protocol.py", line 3, in <module>
dash_1               |     from websockets.connection import CLOSED, CLOSING, OPEN
dash_1               | ImportError: cannot import name 'CLOSED' from 'websockets.connection' (/usr/local/lib/python3.10/site-packages/websockets/connection.py)
dash_1               | 2023/04/12 22:10:22 Command exited with error: exit status 1

Thanks for investigating,

Timeout: Waiting for Dependencies

When I docker-compose up, it eventually gets to a point where I get the output below. This repeats with differing exit codes. Am I setting something up wrong?

wand-houdini_yeti-1       | 2023/01/07 01:35:50 Problem with dial: dial tcp 172.18.0.9:6112: i/o timeout. Sleeping 1s
wand-houdini_yeti-1       | 2023/01/07 01:35:50 Timeout after 10s waiting on dependencies to become available: [tcp://login:6112]
wand-houdini_glaciar-1    | 2023/01/07 01:35:51 Timeout after 10s waiting on dependencies to become available: [tcp://login:6112]
wand-houdini_avalanche-1  | 2023/01/07 01:35:51 Timeout after 10s waiting on dependencies to become available: [tcp://login:6112]
wand-houdini_yeti-1 exited with code 1
wand-houdini_blizzard-1   | 2023/01/07 01:35:52 Problem with dial: dial tcp 172.18.0.9:6112: i/o timeout. Sleeping 1s
wand-houdini_blizzard-1   | 2023/01/07 01:35:52 Timeout after 10s waiting on dependencies to become available: [tcp://login:6112]
wand-dash-1               | 2023/01/07 01:35:52 Timeout after 10s waiting on dependencies to become available: [tcp://login:6112]
wand-houdini_login-1      | 2023/01/07 01:35:52 Timeout after 10s waiting on dependencies to become available: [tcp://redis:6379]
wand-houdini_glaciar-1 exited with code 1
wand-houdini_avalanche-1 exited with code 1
wand-dash-1 exited with code 0
wand-houdini_login-1 exited with code 0
wand-houdini_blizzard-1 exited with code 0
wand-houdini_yeti-1       | 2023/01/07 01:36:04 Timeout after 10s waiting on dependencies to become available: [tcp://login:6112]
wand-houdini_glaciar-1    | 2023/01/07 01:36:05 Problem with dial: dial tcp 172.18.0.5:6112: i/o timeout. Sleeping 1s
wand-houdini_glaciar-1    | 2023/01/07 01:36:05 Timeout after 10s waiting on dependencies to become available: [tcp://login:6112]
wand-houdini_avalanche-1  | 2023/01/07 01:36:05 Timeout after 10s waiting on dependencies to become available: [tcp://login:6112]
wand-houdini_login-1      | 2023/01/07 01:36:05 Timeout after 10s waiting on dependencies to become available: [tcp://redis:6379]
wand-houdini_yeti-1 exited with code 1
wand-houdini_blizzard-1   | 2023/01/07 01:36:05 Timeout after 10s waiting on dependencies to become available: [tcp://login:6112]
wand-dash-1               | 2023/01/07 01:36:05 Timeout after 10s waiting on dependencies to become available: [tcp://login:6112]
wand-houdini_glaciar-1 exited with code 1
wand-houdini_avalanche-1 exited with code 1
wand-houdini_login-1 exited with code 1
wand-houdini_blizzard-1 exited with code 0
wand-dash-1 exited with code 0
wand-houdini_yeti-1       | 2023/01/07 01:36:17 Timeout after 10s waiting on dependencies to become available: [tcp://login:6112]
wand-houdini_avalanche-1  | 2023/01/07 01:36:18 Timeout after 10s waiting on dependencies to become available: [tcp://login:6112]
wand-houdini_glaciar-1    | 2023/01/07 01:36:18 Timeout after 10s waiting on dependencies to become available: [tcp://login:6112]
wand-houdini_yeti-1 exited with code 1
wand-dash-1               | 2023/01/07 01:36:19 Timeout after 10s waiting on dependencies to become available: [tcp://login:6112]
wand-houdini_blizzard-1   | 2023/01/07 01:36:19 Timeout after 10s waiting on dependencies to become available: [tcp://login:6112]
wand-houdini_login-1      | 2023/01/07 01:36:19 Problem with dial: dial tcp 172.18.0.10:6379: i/o timeout. Sleeping 1s
wand-houdini_login-1      | 2023/01/07 01:36:19 Timeout after 10s waiting on dependencies to become available: [tcp://redis:6379]

Issue running installation

Trying to do python bootstrap.py -c config.py is returning Traceback (most recent call last): File "bootstrap.py", line 3, in <module> from sanic.log import logger ImportError: No module named sanic.log. I've tried to install it separately and sanic is returning that it's already installed.

502 Bad Gateway

I keep getting this error (Avatar API, register, etc..). The game servers work perfectly fine but I have to create accounts using the db and that's really complicated. Sanic doesn't seem to like my computer at all, it keeps saying this:

raise FinalizationError("Cannot finalize with no routes defined.")
sanic_routing.exceptions.FinalizationError: Cannot finalize with no routes defined.
sys:1: RuntimeWarning: coroutine 'BaseEventLoop.create_server' was never awaited
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
[7164] [ERROR] Not all workers are ack. Shutting down.
 [7164] [ERROR] Experienced exception while trying to serve

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.