GregoryCannon / GregoryCannon/StackRabbit

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

Open
#16 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
462
Forks
50
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with npm start and FCEUX's httpTest.lua, then inspect built/src/server/request_parser.js at line 62 and built/src/server/request_handler.js around line 120. Trace which request argument is undefined and compare the generated request with the parser's expectations; done means the request completes without the split error and the integration remains running.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, lua, node.js, typescript
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.