Jump to content

Is it possible to run a Node.js script continuously without having an active browser tab open?


Recommended Posts

Here's your error:

# /home/lookyweb/node/test.js:5
    user.cloudSession(419697811, function (err, cloud) {
         ^

TypeError: Cannot read property 'cloudSession' of undefined
    at /home/lookyweb/node/test.js:5:10
    at /home/lookyweb/node/node_modules/scratch-api/scratchapi.js:105:7
    at IncomingMessage.<anonymous> (/home/lookyweb/node/node_modules/scratch-api/scratchapi.js:39:37)
    at IncomingMessage.emit (events.js:203:15)
    at endReadableNT (_stream_readable.js:1145:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
Passenger is what you would be using if you followed this guide https://wiki.helionet.org/tutorials/node.js
  • Like 1
Link to comment
Share on other sites

Here's your error:

# /home/lookyweb/node/test.js:5
    user.cloudSession(419697811, function (err, cloud) {
         ^

TypeError: Cannot read property 'cloudSession' of undefined
    at /home/lookyweb/node/test.js:5:10
    at /home/lookyweb/node/node_modules/scratch-api/scratchapi.js:105:7
    at IncomingMessage.<anonymous> (/home/lookyweb/node/node_modules/scratch-api/scratchapi.js:39:37)
    at IncomingMessage.emit (events.js:203:15)
    at endReadableNT (_stream_readable.js:1145:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
Passenger is what you would be using if you followed this guide https://wiki.helionet.org/tutorials/node.js

 

Thanks! I managed to figure out what's wrong! For some reason, I can't load credentials from my .env file located in the root directory of my project. I decided to hardcode my credentials into my app until I find a solution. I know that this is the opposite of ideal but what can I do? Thanks for any future help!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...