php – Cron spoils google credentials?-ThrowExceptions

Exception or error:

I have a bot that catch data from vk.com 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:

{"installed":{"client_id":"814829399584-5scth85iplbnnqsltoisa9g5oqpk8nhk.apps.googleusercontent.com",

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 *