Hello, first post here.
About my project:
My current project is an in-production Node.js server designed to store certain information in a JSON file database. It has an API, and I plan to add a feature to it to send a webhook message to a Discord server every Monday.
I have added a test route to my API that returns
"success" so that I may test how this might work.
I have a cronjob set up at https://cron-job.org to ping my project’s API every Monday at noon to send this webhook message (The contents of the webhook is dependent on the date and some content in the database).
In testing I have discovered that the cronjob receives a
403 Forbiddenresult. I know this is not coming from my API (I have tested) and must have been returned by the proxy that Glitch projects sit behind.
I recall a post a while back that Glitch was going to start restricting any sort of ping service from accessing any projects. I have realized that, due to the ping service restriction, what I am trying to do is not possible, and I need to use one of the following solutions:
- Purchase Glitch Premium (to run the cronjob on the server itself)
- Keep a machine (PC, Raspberry Pi, etc.) constantly powered on my home network to query my API once a week for information, then send the webhook from my personal server.
- Use an external service (likely to be paid, might also be restricted) like Linode.
To the Glitch devs: I understand that it is necessary to restrict ping services to minimize server load and conserve resources where possible, but why have it restricted all the time? Perhaps there is a way to count the number of pings a project has from a ping service over a certain amount of time, and if it exceeds a certain number then restrict ping services for that project.
Thank you for reading!!!