Skip to content

Write Spectra Fault #181

@Will-Cooper

Description

@Will-Cooper

Some issue noticed in the apache error_log:

[Wed Jan 29 06:05:02.832658 2025] [wsgi:error] [pid 16337:tid 140178324723456] [remote 192.168.98.61:47386]   File "/var/www/webroot/simple_app/app_simple.py", line 335, in create_spectra_files_for_download
[Wed Jan 29 06:05:02.832661 2025] [wsgi:error] [pid 16337:tid 140178324723456] [remote 192.168.98.61:47386]     results: pd.DataFrame = getattr(everything, 'spectra')
[Wed Jan 29 06:05:02.832663 2025] [wsgi:error] [pid 16337:tid 140178324723456] [remote 192.168.98.61:47386] AttributeError: 'Inventory' object has no attribute 'spectra'
[Wed Jan 29 06:05:03.797069 2025] [wsgi:error] [pid 16337:tid 140178307938048] [remote 192.168.98.61:47558] [2025-01-29 06:05:03,796] ERROR in app: Exception on /write_spectra [GET]
[Wed Jan 29 06:05:03.797096 2025] [wsgi:error] [pid 16337:tid 140178307938048] [remote 192.168.98.61:47558] Traceback (most recent call last):
[Wed Jan 29 06:05:03.797099 2025] [wsgi:error] [pid 16337:tid 140178307938048] [remote 192.168.98.61:47558]   File "/var/www/webroot/.local/lib/python3.9/site-packages/flask/app.py", line 1463, in wsgi_app
[Wed Jan 29 06:05:03.797103 2025] [wsgi:error] [pid 16337:tid 140178307938048] [remote 192.168.98.61:47558]     response = self.full_dispatch_request()
[Wed Jan 29 06:05:03.797105 2025] [wsgi:error] [pid 16337:tid 140178307938048] [remote 192.168.98.61:47558]   File "/var/www/webroot/.local/lib/python3.9/site-packages/flask/app.py", line 872, in full_dispatch_request
[Wed Jan 29 06:05:03.797108 2025] [wsgi:error] [pid 16337:tid 140178307938048] [remote 192.168.98.61:47558]     rv = self.handle_user_exception(e)
[Wed Jan 29 06:05:03.797111 2025] [wsgi:error] [pid 16337:tid 140178307938048] [remote 192.168.98.61:47558]   File "/opt/jelastic-python39/lib/python3.9/site-packages/flask_cors/extension.py", line 176, in wrapped_function
[Wed Jan 29 06:05:03.797113 2025] [wsgi:error] [pid 16337:tid 140178307938048] [remote 192.168.98.61:47558]     return cors_after_request(app.make_response(f(*args, **kwargs)))
[Wed Jan 29 06:05:03.797116 2025] [wsgi:error] [pid 16337:tid 140178307938048] [remote 192.168.98.61:47558]   File "/var/www/webroot/.local/lib/python3.9/site-packages/flask/app.py", line 870, in full_dispatch_request
[Wed Jan 29 06:05:03.797118 2025] [wsgi:error] [pid 16337:tid 140178307938048] [remote 192.168.98.61:47558]     rv = self.dispatch_request()
[Wed Jan 29 06:05:03.797121 2025] [wsgi:error] [pid 16337:tid 140178307938048] [remote 192.168.98.61:47558]   File "/var/www/webroot/.local/lib/python3.9/site-packages/flask/app.py", line 855, in dispatch_request
[Wed Jan 29 06:05:03.797123 2025] [wsgi:error] [pid 16337:tid 140178307938048] [remote 192.168.98.61:47558]     return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
[Wed Jan 29 06:05:03.797126 2025] [wsgi:error] [pid 16337:tid 140178307938048] [remote 192.168.98.61:47558]   File "/var/www/webroot/simple_app/app_simple.py", line 335, in create_spectra_files_for_download
[Wed Jan 29 06:05:03.797128 2025] [wsgi:error] [pid 16337:tid 140178307938048] [remote 192.168.98.61:47558]     results: pd.DataFrame = getattr(everything, 'spectra')
[Wed Jan 29 06:05:03.797131 2025] [wsgi:error] [pid 16337:tid 140178307938048] [remote 192.168.98.61:47558] AttributeError: 'Inventory' object has no attribute 'spectra'

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghigh priorityThis needs doing as soon as possible

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions