My job scheduler is not working, I know there must be something wrong. But I just don’t know where is the mistake can anyone point it out for me?
(Btw, I ald publish this and sync my sandbox database to live database and the database is open access to anyone)
jobs.config file looks fine to me, try to delete the last {} parentheses.
jobs.config needs to be a valid JSON object, you can check if your object is valid in the following site https://jsonformatter.curiousconcept.com/ .
try to execute sendMail function through a web module and see if it’s working for you without jobs.config and check also the site monitoring to see if there are any errors https://support.wix.com/en/article/corvid-viewing-live-site-events (after .then use .catch function to catch errors and log them, that way you can debug the code)
“database is open access to anyone” → doesn’t matter - when jobs config executes function it has admin permissions.
in addition, after the fetch function at line 28, you should use .then and .catch
or make Sendmail async function and surround it with a try-catch block.
Thanks a lot, FYI the /backend in functionLocation is the error source in my case