php – Cron spoils google credentials?-ThrowExceptions

Exception or error:

I have a bot that catch data from though their API and insert it to Google Spreadsheets. My script is correctly running on localhost and also when I run it through browser (by direct link to the file on a shared hosting).
But! cron logs says:
at line (in my code):

include 'credentials.json';

cron logs displays:


string abprutly ends!
And this happens only with cron.

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *