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

Sleep Pattern giving 500 Internal Server Error #440

Closed
kazzaw opened this issue Apr 15, 2022 · 3 comments
Closed

Sleep Pattern giving 500 Internal Server Error #440

kazzaw opened this issue Apr 15, 2022 · 3 comments
Labels
need more info Needs more information from issue poster

Comments

@kazzaw
Copy link

kazzaw commented Apr 15, 2022

Probably goes back a couple updates now, but the wife has reported that attempting to access the Sleep Pattern gives a 500 Internal Server Error

@cdubz
Copy link
Member

cdubz commented Apr 15, 2022

This most likely #174 -- you can get a little more info if you set the DEBUG environment variable to something truthy and hit the page again.

@cdubz cdubz added support need more info Needs more information from issue poster labels Apr 15, 2022
@kazzaw
Copy link
Author

kazzaw commented Apr 16, 2022

Hi, yes, appears to be that issue according to logs.

Probably could correlate to DST ending here, I've probably only been using BB since DST was active.

For reference

KeyError at /children/frankie-baby/reports/sleep/pattern/

'2022-04-16'

Request Method: 	GET
Request URL: 	https://baby.domain.id.au/children/frankie-baby/reports/sleep/pattern/
Django Version: 	4.0.2
Exception Type: 	KeyError
Exception Value: 	

'2022-04-16'

Exception Location: 	/app/babybuddy/reports/graphs/sleep_pattern.py, line 194, in _add_adjustment
Python Executable: 	/usr/bin/python3
Python Version: 	3.9.5
Python Path: 	

['/app/babybuddy',
 '/usr/bin',
 '/usr/lib/python39.zip',
 '/usr/lib/python3.9',
 '/usr/lib/python3.9/lib-dynload',
 '/usr/lib/python3.9/site-packages',
 '/usr/lib/python3.9/site-packages/odf',
 '/usr/lib/python3.9/site-packages/odf',
 '/usr/lib/python3.9/site-packages/odf',
 '/usr/lib/python3.9/site-packages/odf',
 '/usr/lib/python3.9/site-packages/odf',
 '/usr/lib/python3.9/site-packages/odf',
 '/usr/lib/python3.9/site-packages/odf']

Server time: 	Sat, 16 Apr 2022 11:17:57 +1000

@cdubz
Copy link
Member

cdubz commented Apr 16, 2022

Yeah sorry. Some damn day I will deal with #174... :goberserk:

@cdubz cdubz closed this as completed Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more info Needs more information from issue poster
Projects
None yet
Development

No branches or pull requests

2 participants