Calling Google API from hosted server
When calling the google classroom API from my hosted server, I'm getting java.io.IOException: unable to create directory: /usr/local/cpanel/base/token. It wants to write a file at this location and it appears I don't have permissions to do so. Is there any way to work around this?
-
Hey there! I checked a few different cPanel installations on both CentOS 6 and 7, and the /usr/local/cpanel/base/token directory did not exist in any of those. Creating a file in /usr/local/cpanel would require root access to the system, so it might be best to reach out to the developers of that specific API to see what requirements it has to get setup on a cPanel machine, as I didn't find much searching for that software or that /token directory on my end. 0 -
Thanks @cPRex! Yes, I am checking with them as well. This has me puzzled as this seems to be a 'common/basic' setup calling a google api from a JAVA App using OAUTH2/Tokens. 0
Please sign in to leave a comment.
Comments
2 comments