Skip to content

TypeError: Cannot read property 'replace' of undefined #13

@Mo45

Description

@Mo45

root@playplanet:/home/mo45/scp# node index.js Mo45UA
Checking for existing cookies and verification token
Existing cookies and verification token found
Send GET-request to: http://socialclub.rockstargames.com/games/gtav/career/overviewAjax?character=Freemode&nickname=Mo45UA&slot=Freemode&gamerHandle=&gamerTag=&_=1485856587832
/home/mo45/scp/index.js:136
return parseInt(input.replace(/[$,]/g, '').trim());
^

TypeError: Cannot read property 'replace' of undefined
at parseInteger (/home/mo45/scp/index.js:136:26)
at Request._callback (/home/mo45/scp/index.js:428:29)
at Request.self.callback (/home/mo45/scp/node_modules/request/request.js:186:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request. (/home/mo45/scp/node_modules/request/request.js:1081:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at Gunzip. (/home/mo45/scp/node_modules/request/request.js:1001:12)
at Gunzip.g (events.js:291:16)

Node version 6.9.2

When trying to npm install get this:
npm WARN socialclubparser@1.4.0 No repository field.
After that i install required modules by myself. but still have same error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions