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

firebase-functions/v2/scheduler onSchedule is not supported by the wrapper #210

Open
maas-it opened this issue Aug 12, 2023 · 0 comments
Open

Comments

@maas-it
Copy link

maas-it commented Aug 12, 2023

Version info

firebase-functions-test: 3.1.0

firebase-functions: 4.4.1

firebase-admin: 11.10.1

Expected behavior

Call my test function with the v2 ScheduledEvent like it happens in my production environment:

Started CET billing job {
jobName: 'firebase-schedule-billingCET-europe-west1',
scheduleTime: '2023-08-10T04:00:03.442Z'
}

Actual behavior

Error: Options object {"scheduleTime":"2021-01-17T05:00:00.000Z"} has invalid key "scheduleTime".

Because the old job event seems to be expected. If I rename scheduleTime to timestamp it will be called with the old v1 scheduled event:

Started CET reservation statistic job {
     eventId: 'fdnstcb0e6p97erpk53aei',
     resource: undefined,
     eventType: '',
     timestamp: '2021-01-17T05:00:00.000Z',
     params: {}
   }
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

No branches or pull requests

1 participant