upstash / qstash-js

Message queue for serverless
https://docs.upstash.com/qstash
MIT License
133 stars 11 forks source link

v2 Schedules Create returns invalid destination url: endpoint has invalid scheme, add http:// or https:// #49

Closed msywulak closed 9 months ago

msywulak commented 10 months ago

Using "@upstash/qstash": "^2.1.2", doesn't allow for creating schedules and returns the below error. Simple repo here: https://github.com/msywulak/qstash-v2-schedules just add your env for the destination or directly in page.tsx.

Error creating schedule: QstashError: {"error":"invalid destination url: endpoint has invalid scheme, add http:// or https://"}

It seems like the HttpClient is ignoring the inputted destination and cron options using schedules.create