Closed msywulak closed 9 months ago
Creating schedules using the new V2 endpoints doesn't use the destination or cron inputs and errors out with either:
Error creating schedule: QstashError: {"error":"invalid destination url: endpoint has invalid scheme, add http:// or https://"} or Error creating schedule: QstashError: {"error":"Invalid cron expression empty spec string"}
Error creating schedule: QstashError: {"error":"invalid destination url: endpoint has invalid scheme, add http:// or https://"}
Error creating schedule: QstashError: {"error":"Invalid cron expression empty spec string"}
"Upstash-Cron": req.cron
req.destination
req.body
Note: This is my first PR so please don't hesitate to tell me I'm doing something wrong and happy to just wait for a general fix in the future.
Description
Creating schedules using the new V2 endpoints doesn't use the destination or cron inputs and errors out with either:
Error creating schedule: QstashError: {"error":"invalid destination url: endpoint has invalid scheme, add http:// or https://"}
orError creating schedule: QstashError: {"error":"Invalid cron expression empty spec string"}
Changes
"Upstash-Cron": req.cron
to headersreq.destination
to pathFixes #49
Updates since initial PR
req.body
Note: This is my first PR so please don't hesitate to tell me I'm doing something wrong and happy to just wait for a general fix in the future.