Skip to content
This repository was archived by the owner on Jan 5, 2021. It is now read-only.
This repository was archived by the owner on Jan 5, 2021. It is now read-only.

Undescriptive server error when trying to queue a task in the past / improper date #2

@casesandberg

Description

@casesandberg

I had a hard time getting up and running with this project and was hoping you could add some more helpful error handling on the backend to make the DX better?

To reproduce:

const runAt = new Date('Jan 1 2001')
await EmailQueue.enqueue({}, { runAt })

and

const runAt = { _seconds: 1608164625, _nanoseconds: 119000000 } // Firebase Firestore Date on record retrieval
await EmailQueue.enqueue({}, { runAt })

Output:
Error: Unexpected status: 500

Would be great to see errors like "Items can not be queued to run in the past" or "Your runAt date is not in the correct format", etc...

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions