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

Running httpTest.lua, Output: Got response: Cannot read properties of undefined (reading 'split') #16

Open
Croios7 opened this issue Mar 13, 2024 · 0 comments

Comments

@Croios7
Copy link

Croios7 commented Mar 13, 2024

So I succesfully, compiled rabbithttp.c to .so, I managed to run server, but I have this message from (linux) shell after I run httpTest.lua on FCEUX (2.7.0):

This is message from shell:

npm start

> stackrabbit@1.0.0 start
> node-gyp build && tsc && node built/src/server/app.js

gyp info it worked if it ends with ok
gyp info using node-gyp@10.0.1
gyp info using node@20.11.1 | linux | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/home/croios/StackRabbit/build'
make: Nothing to be done for 'all'.
make: Leaving directory '/home/croios/StackRabbit/build'
gyp info ok 
IS_DEPLOY =  false true
loading: 28.265ms
loading: 30.895ms
loading: 27.594ms
loading: 27.648ms
loading: 23.483ms
loading: 28.338ms
loading: 19.634ms
Done loading worker threads
Listening on port 3000

-------------------------
localhost:3000/precompute/00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000001101110000110/L/J/18/0/0/0/0/0/0/X..../false
TypeError: Cannot read properties of undefined (reading 'split')
    at parseUrlArguments (/home/croios/StackRabbit/built/src/server/request_parser.js:62:27)
    at RequestHandler.<anonymous> (/home/croios/StackRabbit/built/src/server/request_handler.js:120:68)
    at step (/home/croios/StackRabbit/built/src/server/request_handler.js:44:23)
    at Object.next (/home/croios/StackRabbit/built/src/server/request_handler.js:25:53)
    at /home/croios/StackRabbit/built/src/server/request_handler.js:19:71
    at new Promise (<anonymous>)
    at __awaiter (/home/croios/StackRabbit/built/src/server/request_handler.js:15:12)
    at RequestHandler.routeRequest (/home/croios/StackRabbit/built/src/server/request_handler.js:107:16)
    at /home/croios/StackRabbit/built/src/server/app.js:89:61
    at step (/home/croios/StackRabbit/built/src/server/app.js:33:23)
Full request: 24.674ms

And this output message from FCEUX:

Sending request: localhost:3000/precompute/00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000001101110000110/L/J/18/0/0/0/0/0/0/X..../false

Got response: Cannot read properties of undefined (reading 'split')

What am I doing wrong? I know I should integrate cpp modules somehow, but dont know how...yet, I also have some luck of running stackRabbit.lua, and its working, then it goes down after 6-7 seconds. Its like somehow I need something third to stabilize and run the server? Please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant