Backend API workflow not detecting request data sent by cron-job.org

Hi,
I am learning something and i need help
I created one API workflow on backend with these settings…

Now i am using cron-job.org to trigger this API workflow at every 10 minutes,
It triggers completely fine when i do “Test Run” on cron-job while the bubble’s “Detect Data” is active,
Detect Data is active means this:

But after the Test Run is successful and i close the Detect Data tab on bubble, it stops detecting data hence the workflow is nor triggered. The cron-job execution history returns this error ‘Cronjob execution: Failed (HTTP error) (401 Unauthorized)’

What i need is, it should continue working even if i close the bubble tab, that’s what it was supposed to happen. Am i missing something?

You could try mark the “This wf can be run without authentication” property

It did not work. Getting 404 Not found error now

Ok i found the issue,

I was supposed to remove the /initialize from the URL that i copied from bubble while making the cronJob

Bubble gave me this:
https://clockit-26875.bubbleapps.io/version-919xm/api/1.1/wf/cron-job-test-on-list/initialize

Cron-job needed this:
https://clockit-26875.bubbleapps.io/version-919xm/api/1.1/wf/cron-job-test-on-list

I did’t knew that😅

Initialize is only to detect request data. Once it’s done, you need to remove it. Also, @Efe was right to ask you to uncheck authentication.

1 Like