Alpha-Males / MovieFreak

1 stars 0 forks source link

getting application error on viewing user 125 #4

Open Circles24 opened 3 years ago

Circles24 commented 3 years ago

getting application error on https://moviefreak-flask-new.herokuapp.com/users/125

Agent-Hellboy commented 3 years ago

Request timeout You may have encountered that this route is taking more than expected time to load as we are performing a task synchronously which should be asynchronous maybe we need celery here or these two operations https://github.com/Alpha-Males/MovieFreak/blob/f37f9a06b80f2b53f11dfc010780024b8935dbd5/app.py#L56 https://github.com/Alpha-Males/MovieFreak/blob/f37f9a06b80f2b53f11dfc010780024b8935dbd5/app.py#L57 should be performed in the background by another thread. don't know much about this, you should suggest.

error log 2021-06-29T10:23:09.394554+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path="/users/125" host=moviefreak-flask-new.herokuapp.com request_id=4df1fac0-2cb9-458e-a00c-8d938cb65fa2 fwd="106.206.195.197" dyno=web.1 connect=1ms service=30000ms status=503 bytes=0 protocol=http

Circles24 commented 3 years ago

may we can go with executor framework not very sure will check on this