Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cron job to accept GET requests #49

Merged
merged 3 commits into from
Dec 28, 2024
Merged

Conversation

neubig
Copy link
Contributor

@neubig neubig commented Dec 28, 2024

Fixes #42. This PR modifies the cron.js file to properly handle GET requests from Vercel cron jobs, resolving the "Method Not Allowed" error.

Key changes:

  1. Accepts GET requests (Vercel cron job method)
  2. Maintains cron secret for security
  3. Ensures correct functionality with Vercel cron jobs

This addresses both the functionality issue and security concerns.

Copy link

vercel bot commented Dec 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
openhands-agent-monitor ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 28, 2024 6:39pm

@neubig neubig merged commit 2e59f1b into main Dec 28, 2024
6 checks passed
@neubig neubig deleted the openhands-workspace-e3sd2f4e branch December 28, 2024 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cache is not updating on vercel
2 participants