Code Monkey home page Code Monkey logo

Comments (7)

gabeabrams avatar gabeabrams commented on August 20, 2024

from caccl.

STaylorY avatar STaylorY commented on August 20, 2024

Node :: v10.15.1
npm :: v6.4.1
OS: Windows 10 Enterprise 2016 LTSB 64-bit

Thank you for looking into this!

from caccl.

gabeabrams avatar gabeabrams commented on August 20, 2024

Hi STaylorY, I've been looking into this and it seems that the environment variables set by windows aren't what we were expecting. Unfortunately, we don't currently support running this on Windows and we don't plan on starting to support Windows at least not in the near future.

I recommend developing on either Mac or Linux if you plan on using CACCL. If you want to stick with Windows, I'd recommend using a bash shell: https://itsfoss.com/install-bash-on-windows/

If you're using Mac, Linux, or a bash shell and keep getting this error, please let me know!

P.S. I'm adding a note to the docs.

from caccl.

liorla avatar liorla commented on August 20, 2024

Hi Gabriel,
i have encountered the same issue when deploying the application to google app engine.
locally the app runs on my MAC OS just fine, but when deploying to google app engine nodejs application, i got the following error:
2020-07-06 20:40:46 default[20200706t233945] TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
2020-07-06 20:40:46 default[20200706t233945] at validateString (internal/validators.js:125:11)
2020-07-06 20:40:46 default[20200706t233945] at Object.join (path.js:1147:7)
2020-07-06 20:40:46 default[20200706t233945] at readConfig (/srv/node_modules/caccl/validateConfigAndSetDefaults/server.js:23:29)
2020-07-06 20:40:46 default[20200706t233945] at module.exports (/srv/node_modules/caccl/validateConfigAndSetDefaults/server.js:33:26)
2020-07-06 20:40:46 default[20200706t233945] at module.exports (/srv/node_modules/caccl/server/index.js:133:18)
2020-07-06 20:40:46 default[20200706t233945] at Object. (/srv/index.js:7:13)
2020-07-06 20:40:46 default[20200706t233945] at Module._compile (internal/modules/cjs/loader.js:778:30)
2020-07-06 20:40:46 default[20200706t233945] at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
2020-07-06 20:40:46 default[20200706t233945] at Module.load (internal/modules/cjs/loader.js:653:32)
2020-07-06 20:40:46 default[20200706t233945] at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
2020-07-06 20:40:47 default[20200706t233945] "GET /favicon.ico HTTP/1.1" 500
2020-07-06 20:40:48 default[20200706t233945] internal/validators.js:125
2020-07-06 20:40:48 default[20200706t233945] throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
2020-07-06 20:40:48 default[20200706t233945] ^

any ideas?
thank you for your help!

Lior.

from caccl.

gabeabrams avatar gabeabrams commented on August 20, 2024

Hi Lior,

Thank you for the detail you provided! I pushed a small fix that might work for the Google App Engine, though I am less familiar with that platform so could you test it out?

Please update to CACCL v1.1.26 and try again.

Looking forward to seeing how this goes :)

Best,
Gabe

from caccl.

liorla avatar liorla commented on August 20, 2024

Hi Gage,
thanks for your answer and fix!
well i haven't tried your fix yet, but i have found the cause of the error
apparently, when using the standard app engine (as opposed to the flexible app engine) there is no postscript running after the npm install to check for more depndencies to install. i uploaded the app to flexible app eninge (which costs money...) and all worked well :)
so this is the fix for the standard app engine: simply don't use it and deploy on flexible app engine...

btw, i have another question: i have deployed the app on heroku (piece of cake!!!) i have followed the instructions, set all config vars (CANVAS_HOST, CLIENT_ID, CLIENT_SECRET, CONSUMER_KEY, CONSUMER_SECRET) tho i'm not usin the API, and set the initCaccl to this:
// Initialize CACCL
const app = initCACCL({
disableAuthorization: true,
disableClientSideAPI: true,
disableServerSideAPI: true,
});

added and called the app from canvas. got this error: "Please launch this app via canvas" and set
any ideas?

thank you again for your time and for the amazing lib1 i've been through many libs but this one simpley works out of the box, it's truly amazing.
lior.

from caccl.

gabeabrams avatar gabeabrams commented on August 20, 2024

Stale. Closing due to inactivity. Please feel free to re-open if helpful!

from caccl.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.