Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app crashed #6

Closed
SupperCraft5000 opened this issue Jan 7, 2022 · 6 comments · Fixed by #7
Closed

app crashed #6

SupperCraft5000 opened this issue Jan 7, 2022 · 6 comments · Fixed by #7
Assignees
Labels
bug Something isn't working

Comments

@SupperCraft5000
Copy link
Contributor

[nodemon] 2.0.15
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node server/app.js`
[INFO] - Oasis started on port 3000
C:\Users\ShadowUser\Documents\FS22\oasis-1.22.2\server\api.js:26
        debug(err)
        ^

ReferenceError: debug is not defined
    at C:\Users\ShadowUser\Documents\FS22\oasis-1.22.2\server\api.js:26:9
    at Request.callback (C:\Users\ShadowUser\Documents\FS22\oasis-1.22.2\node_modules\superagent\lib\node\index.js:905:3)
    at ClientRequest.<anonymous> (C:\Users\ShadowUser\Documents\FS22\oasis-1.22.2\node_modules\superagent\lib\node\index.js:822:12)
    at ClientRequest.emit (node:events:390:28)
    at Socket.socketErrorListener (node:_http_client:447:9)
    at Socket.emit (node:events:390:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
[nodemon] app crashed - waiting for file changes before starting...
@SupperCraft5000
Copy link
Contributor Author

I tested it at Linux and it works crashes only on Windows

@msdigital
Copy link
Owner

Thanks for the hint. Will take a look into this!

@msdigital msdigital self-assigned this Jan 8, 2022
@msdigital msdigital added the bug Something isn't working label Jan 8, 2022
@msdigital msdigital mentioned this issue Jan 8, 2022
@msdigital msdigital linked a pull request Jan 8, 2022 that will close this issue
@msdigital
Copy link
Owner

@SupperCraft5000
Copy link
Contributor Author

SupperCraft5000 commented Jan 9, 2022

> oasis@1.22.3 start
> nodemon server/app.js

[nodemon] 2.0.15
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node server/app.js`
[INFO] - Oasis started on port 3000
[ERROR] - connect ECONNREFUSED 65.108.25.254:8080
C:\Users\ShadowUser\Documents\oasis-1.22.3-rc\server\api.js:29
      var result = util.convert2json(xml.body)
                                         ^

TypeError: Cannot read properties of undefined (reading 'body')
    at C:\Users\ShadowUser\Documents\oasis-1.22.3-rc\server\api.js:29:42
    at Request.callback (C:\Users\ShadowUser\Documents\oasis-1.22.3-rc\node_modules\superagent\lib\node\index.js:905:3)
    at ClientRequest.<anonymous> (C:\Users\ShadowUser\Documents\oasis-1.22.3-rc\node_modules\superagent\lib\node\index.js:822:12)
    at ClientRequest.emit (node:events:390:28)
    at Socket.socketErrorListener (node:_http_client:447:9)
    at Socket.emit (node:events:390:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
[nodemon] app crashed - waiting for file changes before starting...
> oasis@1.22.3 start
> nodemon server/app.js

[nodemon] 2.0.15
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node server/app.js`
[INFO] - Oasis started on port 3000
C:\Users\ShadowUser\Documents\oasis-1.22.3-rc\server\model\server.js:4
  this.name = server.name
                     ^

TypeError: Cannot read properties of undefined (reading 'name')
    at new module.exports.Server (C:\Users\ShadowUser\Documents\oasis-1.22.3-rc\server\model\server.js:4:22)
    at C:\Users\ShadowUser\Documents\oasis-1.22.3-rc\server\api.js:31:17
    at Request.callback (C:\Users\ShadowUser\Documents\oasis-1.22.3-rc\node_modules\superagent\lib\node\index.js:894:12)
    at C:\Users\ShadowUser\Documents\oasis-1.22.3-rc\node_modules\superagent\lib\node\index.js:1127:20
    at IncomingMessage.<anonymous> (C:\Users\ShadowUser\Documents\oasis-1.22.3-rc\node_modules\superagent\lib\node\parsers\image.js:10:5)
    at IncomingMessage.emit (node:events:402:35)
    at endReadableNT (node:internal/streams/readable:1343:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
[nodemon] app crashed - waiting for file changes before starting...
[INFO] - Oasis started on port 3000
C:\Users\ShadowUser\Documents\oasis-1.22.3-rc\server\api.js:34
        vehicles: Vehicle.getVehicles(result.Server.Vehicles.Vehicle)
                                                             ^

TypeError: Cannot read properties of undefined (reading 'Vehicle')
    at C:\Users\ShadowUser\Documents\oasis-1.22.3-rc\server\api.js:34:62
    at Request.callback (C:\Users\ShadowUser\Documents\oasis-1.22.3-rc\node_modules\superagent\lib\node\index.js:894:12)
    at C:\Users\ShadowUser\Documents\oasis-1.22.3-rc\node_modules\superagent\lib\node\index.js:1127:20
    at IncomingMessage.<anonymous> (C:\Users\ShadowUser\Documents\oasis-1.22.3-rc\node_modules\superagent\lib\node\parsers\image.js:10:5)
    at IncomingMessage.emit (node:events:402:35)
    at endReadableNT (node:internal/streams/readable:1343:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
[nodemon] app crashed - waiting for file changes before starting...

Running Windows Server 2016 Build 14393.4825
Firewall is set to allow TCP on Port 3000

@SupperCraft5000
Copy link
Contributor Author

SupperCraft5000 commented Jan 9, 2022

I tested it again with and now it works the errors where thrown at me when the server was still starting.

@msdigital
Copy link
Owner

Great to hear! So, case closed i guess :)
I'm going to merge the fix and create a new Release.
Thanks for the testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants