feast-dev / feast

The Open Source Feature Store for Machine Learning
https://feast.dev
Apache License 2.0
5.62k stars 1k forks source link

Unable to load UI in 0.41.3 #4743

Open t0a009r opened 2 weeks ago

t0a009r commented 2 weeks ago

Expected Behavior

I expect to be able to init a feast repo, apply the example changes, and then load up the UI successfully.

Current Behavior

The UI is unable to load and returns an error. Screenshot 2024-11-06 at 5 26 22 PM

Steps to reproduce

$ feast version
Feast SDK Version: "0.41.3"
(.venv) [05:25 PM] ~ 
$ feast init demo 

Creating a new Feast repository in /Users/t0a009r/demo.

(.venv) [05:25 PM] ~ 
(.venv) [05:25 PM] ~ 
$ cd demo/feature_repo/
(.venv) [05:25 PM] ~/demo/feature_repo 
(.venv) [05:25 PM] ~/demo/feature_repo 
$ feast apply
Applying changes for project demo
...
RuntimeWarning: On demand feature view is an experimental feature. This API is stable, but the functionality does not scale well for offline retrieval
  warnings.warn(
11/06/2024 05:25:46 PM root WARNING: Cannot use sqlite_vec for vector search
11/06/2024 05:25:46 PM root WARNING: Cannot use sqlite_vec for vector search
11/06/2024 05:25:46 PM root WARNING: Cannot use sqlite_vec for vector search
11/06/2024 05:25:46 PM root WARNING: Cannot use sqlite_vec for vector search
Created project demo
Created entity driver
Created feature view driver_hourly_stats
Created feature view driver_hourly_stats_fresh
Created on demand feature view transformed_conv_rate_fresh
Created on demand feature view transformed_conv_rate
Created feature service driver_activity_v2
Created feature service driver_activity_v3
Created feature service driver_activity_v1

11/06/2024 05:25:46 PM root WARNING: Cannot use sqlite_vec for vector search
11/06/2024 05:25:46 PM root WARNING: Cannot use sqlite_vec for vector search
11/06/2024 05:25:46 PM root WARNING: Cannot use sqlite_vec for vector search
11/06/2024 05:25:46 PM root WARNING: Cannot use sqlite_vec for vector search
Created sqlite table demo_driver_hourly_stats_fresh
Created sqlite table demo_driver_hourly_stats

(.venv) [05:25 PM] ~/demo/feature_repo 
$ feast ui
...
DeprecationWarning: 
        on_event is deprecated, use lifespan event handlers instead.

        Read more about it in the
        [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).

  @app.on_event("shutdown")
...
 DeprecationWarning: 
        on_event is deprecated, use lifespan event handlers instead.

        Read more about it in the
        [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).

  return self.router.on_event(event_type)
INFO:     Started server process [50321]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:8888 (Press CTRL+C to quit)
INFO:     127.0.0.1:62172 - "GET /registry HTTP/1.1" 200 OK
INFO:     127.0.0.1:62226 - "GET / HTTP/1.1" 304 Not Modified
INFO:     127.0.0.1:62226 - "GET /static/css/main.8f4de231.css HTTP/1.1" 304 Not Modified
INFO:     127.0.0.1:62228 - "GET /static/js/main.c06fbdbb.js HTTP/1.1" 304 Not Modified
INFO:     127.0.0.1:62228 - "GET /static/media/feast-icon-grey.e5aa0a305d8efd775c4b.svg HTTP/1.1" 304 Not Modified
INFO:     127.0.0.1:62228 - "GET /projects-list.json HTTP/1.1" 200 OK
INFO:     127.0.0.1:62228 - "GET /static/js/icon.arrow_down.50a8ddfa.chunk.js HTTP/1.1" 304 Not Modified
INFO:     127.0.0.1:62228 - "GET /registry HTTP/1.1" 200 OK
INFO:     127.0.0.1:62237 - "GET /manifest.json HTTP/1.1" 304 Not Modified
INFO:     127.0.0.1:62228 - "GET /feast-favicon-300x300.png HTTP/1.1" 304 Not Modified
INFO:     127.0.0.1:62228 - "GET /registry HTTP/1.1" 200 OK
INFO:     127.0.0.1:62228 - "GET /registry HTTP/1.1" 200 OK
INFO:     127.0.0.1:62228 - "GET /registry HTTP/1.1" 200 OK
INFO:     127.0.0.1:62228 - "GET /static/js/icon.warning.c555a5de.chunk.js HTTP/1.1" 200 OK
^CINFO:     Shutting down
INFO:     Waiting for application shutdown.
INFO:     Application shutdown complete.
INFO:     Finished server process [50321]

# Visit the home page and it won't load

Specifications

Possible Solution

It might be related to #4475? Currently the UI successfully loads for 0.40.0.

JCirera commented 2 weeks ago

The same is happening to me. In 0.40.1 the UI still works. I tested in wsl.

young-hun-jo commented 2 weeks ago

I got this same error. I can't this fix it. By mentioned by @JCirera , the 0.40.1 version works for mac. This is broken feature in latest version(0.41.3)

franco-bocci commented 2 weeks ago

I think it's related to it using projectMetadata instead of projects here, but not entirely sure.