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

Batch job API sometimes results in an error #339

Open
iandees opened this issue May 5, 2023 · 0 comments
Open

Batch job API sometimes results in an error #339

iandees opened this issue May 5, 2023 · 0 comments

Comments

@iandees
Copy link
Member

iandees commented May 5, 2023

From the logs:

TypeError: Cannot read properties of undefined (reading 'job')
--
at Job.delta (file:///home/openaddresses/api/lib/types/job.js:166:52)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///home/openaddresses/api/routes/job.js:112:27
::ffff:127.0.0.1 - - [05/May/2023:15:16:31 +0000] "GET /api/job/40266/delta HTTP/1.0" 500 - "https://batch.openaddresses.io/job/40266" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36"

The job/:job/delta endpoint calls Job.delta(), which calls Data.list() here, and then datas[0].job here fails because datas[0] is undefined. datas comes from Data.list() here. When I execute a query that should match what is being run, I get a result with a job column.

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