question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OverflowError: date value out of range in should_schedule_next

See original GitHub issue

Hi,

My redash never refresh all my queries. And I found that there was an “OverflowError: date value out of range” exception raised at: https://github.com/getredash/redash/blob/v1.0.3/redash/models.py#L703

    if failures:
        next_iteration += datetime.timedelta(minutes=2**failures)

I think maybe it should check the date value range before applying the delta.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
guzhenpingcommented, Jun 21, 2018

By now, l use the code writed by @kitsuyui to fix the bug. It works.

1reaction
guzhenpingcommented, Jun 21, 2018

Hi, @RichardLitt !

l upgraded redash from v4.0.0 to v4.0.1.Just change the model of postgresql tables: python manage.py db upgrade. And then, l build the npm package and start the new redash server.

l use the old connection of postgresql for new redash. Maybe my method of upgrade is wrong.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python/Panda- Error: OverflowError: date value out of range
I'm having an error reading a pandas file of type excel.When I put it to pandas to read an excel file it is...
Read more >
Date value out of range (pandas) | Data Science and ... - Kaggle
I want to read an excel file using pandas read_excel method. But it shows an out of range error for the date value...
Read more >
OverflowError: date value out of range (#1670) · Issues
I have a large excel sheet with one date that is out of the valid range. Currently, I get the opaque error OverflowError:...
Read more >
date value out of range' if TZ is east of UTC) – Django
When a datetime field is set to 'infinity' by an external application, django will throw an 'OverflowError: date value out of range' when...
Read more >
OverflowError: date value out of range - ERPNext Forum
... Service Level Agreement and want to create issue record against it, but it raise error salying “OverflowError: date value out of range”....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found