Callback Error when the app is started

Hello all,
I get this error for each callback the first time the app is loaded. The app then refreshes continuously. After a couple of minutes, the number of errors decreases, and all the plots get loaded.
Any idea how to fix this?
(This error originated from the built-in JavaScript code that runs Dash apps. Click to see the full stack trace or open your browser’s console.)

Error: Callback failed: the server did not respond.

at http://127.0.0.1:8050/_dash-component-suites/dash_renderer/dash_renderer.v1_8_2m1601045632.dev.js:93428:11

I have the same issue, I supose that happens because the interdependence between the different callback that start at the same time do not receive the info from the other or also in the same callback the output has no data until some process is done.
I want to know if there are any way to avoid that start error messages.

I found the solution:

You can now skip this initialization behavior by passing in prevent_initial_call=True to your @app.callback or, if you want to skip this for all of your callbacks, prevent_initial_callbacks=True to app = dash.Dash(__name__, prevent_initial_callbacks=True)

from:

2 Likes