Comments (7)
from caccl.
Node :: v10.15.1
npm :: v6.4.1
OS: Windows 10 Enterprise 2016 LTSB 64-bit
Thank you for looking into this!
from caccl.
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.
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.
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.
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.
Stale. Closing due to inactivity. Please feel free to re-open if helpful!
from caccl.
Related Issues (16)
- How to add LTI to Canvas HOT 5
- Course context HOT 1
- Please launch this app via Canvas. HOT 4
- Trouble setting up project with init HOT 1
- Using CACCL on Windows HOT 1
- Unable to deploy on server HOT 2
- Cookie from Production Server Doesn't Get Sent Properly on HTTPS HOT 3
- Error while creating new project HOT 8
- App keeps asking for permission after deployment HOT 7
- How to set up multiple launch paths? HOT 2
- What versions of LTI does this work with? HOT 6
- Integration with express API server app HOT 5
- Error on installing with init HOT 2
- Which operating system & node version has this been tested with? HOT 2
- Chrome local dev http vs https sameSite cookie issue HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caccl.