Online-Crash-Gambling-Simulator icon indicating copy to clipboard operation
Online-Crash-Gambling-Simulator copied to clipboard

Issue with backend

Open digbee42 opened this issue 2 years ago • 12 comments

image

I get this issue with the backend while running npm start.

digbee42 avatar Sep 30 '22 11:09 digbee42

Hi, did you find solution? I have the same with empty/new MongoDB database.

VardanMelik avatar Feb 19 '23 16:02 VardanMelik

hi anyone find a solution on this please update regarding same mangodb connection error

Mi-Boss avatar Mar 03 '23 11:03 Mi-Boss

@wbrandon25 seems like we need migration files for db.

roxtar-venture avatar Apr 03 '23 11:04 roxtar-venture

Hi i have tried recreating the game_loop collection and added default data but still getting the same error

Jacob-Petro avatar Apr 08 '23 19:04 Jacob-Petro

hi anyone find a solution on this please update regarding same mangodb connection error

Its not a connection error, i added a console log and that confirms that the connection to the mongodb is successfully.. But still get this error

BustAces avatar Apr 21 '23 14:04 BustAces

i fixed by creating the schema manually then i exported my Game_loop id and updated and got fixed

nakamoto-dev avatar Jun 20 '23 18:06 nakamoto-dev

use mydb switched to db mydb show collections collection users db.game_loops.insertOne({ round_number: 1, active_player_id_list: [], multiplier_crash: 0, b_betting_phase: false, b_game_phase: false, b_cashout_phase: false, time_now: -1, previous_crashes: [], round_id_list: [], chat_messages_list: [] }) { "acknowledged" : true, "insertedId" : ObjectId("6491ea03b8255fc2af655e71") } show collections collection game_loops users

nakamoto-dev avatar Jun 20 '23 18:06 nakamoto-dev

With this new id , update GAME_LOOP constant

nakamoto-dev avatar Jun 20 '23 18:06 nakamoto-dev

const Game_loop = require("./models/game_loop") require('dotenv').config()

const GAME_LOOP_ID = 'update here'

const { Server } = require('socket.io') const http = require('http') const Stopwatch = require('statman-stopwatch'); const { update } = require("./models/user"); const sw = new Stopwatch(true);``

nakamoto-dev avatar Jun 20 '23 18:06 nakamoto-dev

@nakamoto-dev You right with that data database work. Try test in long time, You will have an issue with No User Authentication, and after that you can't bet.

VardanMelik avatar Jun 22 '23 21:06 VardanMelik

Where can you host this solution?

On Fri, 23 Jun 2023, 00:38 Vardan Meliksetyan, @.***> wrote:

@nakamoto-dev https://github.com/nakamoto-dev You right with that data database work. Try test in long time, You will have an issue with No User Authentication, and after that you can't bet.

— Reply to this email directly, view it on GitHub https://github.com/wbrandon25/Online-Crash-Gambling-Simulator/issues/4#issuecomment-1603348945, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUPTNCPDTPHNBSXTXKZRVS3XMS3NBANCNFSM6AAAAAAQZWF62A . You are receiving this because you were mentioned.Message ID: @.*** com>

nakamoto-dev avatar Jul 04 '23 15:07 nakamoto-dev

I found a way to make it working, it works for me 100% now after getting this error, the fix i posted here: https://github.com/wbrandon25/Online-Crash-Gambling-Simulator/issues/6

BustAces avatar Nov 09 '23 21:11 BustAces