StackRabbit icon indicating copy to clipboard operation
StackRabbit copied to clipboard

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

Open Croios7 opened this issue 11 months ago • 0 comments

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

> [email protected] start
> node-gyp build && tsc && node built/src/server/app.js

gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | 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

Croios7 avatar Mar 13 '24 03:03 Croios7