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

graph-v2 requests fail after update to 3.1.9 #16487

Open
kavvkon opened this issue Dec 24, 2024 · 3 comments
Open

graph-v2 requests fail after update to 3.1.9 #16487

kavvkon opened this issue Dec 24, 2024 · 3 comments

Comments

@kavvkon
Copy link

kavvkon commented Dec 24, 2024

When hitting: http://192.168.1.100:4200/api/flow_runs/c07e1f66-4187-48be-9b5d-5464aaaeddc2/graph-v2
It happens for all old and new flows, even those that were rendering fine in previous version (updated from 3.1.4)

Traceback (most recent call last):
  File "/home/user1/miniconda3/envs/prefect/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1815, in _execute_context
    context = constructor(
              ^^^^^^^^^^^^
  File "/home/user1/miniconda3/envs/prefect/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 1493, in _init_compiled
    flattened_processors[key](compiled_params[key])
  File "/home/user1/miniconda3/envs/prefect/lib/python3.12/site-packages/sqlalchemy/sql/type_api.py", line 2037, in process
    fixed_process_param(value, dialect)
  File "/home/user1/miniconda3/envs/prefect/lib/python3.12/site-packages/prefect/server/utilities/database.py", line 127, in process_bind_param
    if value.tzinfo is None:
       ^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'tzinfo'

image

Version:             3.1.9
API version:         0.8.4
Python version:      3.12.4
Git commit:          e1fe7943
Built:               Fri, Dec 20, 2024 4:33 PM
OS/Arch:             linux/x86_64
Profile:             user1
Server type:         server
Pydantic version:    2.8.2

Originally posted by @kavvkon in #15153 (comment)

@zzstoatzz
Copy link
Collaborator

hi @kavvkon - thanks for the issue!

this seems related to #16392 but I am not yet sure exactly how yet

@zzstoatzz
Copy link
Collaborator

zzstoatzz commented Dec 24, 2024

I cannot yet reproduce this, but I wonder if its related to loading older data after the linked PR was released

@desertaxle
Copy link
Member

Hey @kavvkon! I think we'll need some more info to troubleshoot this issue.

Can you provide:

  1. Information about your database including its version
  2. An example flow that shows this error when you try to view a run in the UI

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

3 participants