emilhe / dash-extensions

The dash-extensions package is a collection of utility functions, syntax extensions, and Dash components that aim to improve the Dash development experience
https://www.dash-extensions.com/
MIT License
409 stars 58 forks source link

ServersideOutput is not working in deployment [SOLVED] #259

Closed marcstern14 closed 1 year ago

marcstern14 commented 1 year ago

I am running my plotly dash app on a private company server. When I decided to add the serverside output to pass large data around, it works great locally, but when I try to deploy it, I'm unable to pass around any kind of data, even just a test string. Any help would be appreciated

mirix commented 1 year ago

It may have something to do with this:

The syntax of the ServersideOutputTransform has been changed. Instead of using ServersideOutput in place of the Output, one must now wrap return values in Serverside objects

Any examples of the new syntax?

emilhe commented 1 year ago

If the code works locally, but not deployed, it would indicate an issue with the deployment. What backend are you using? And how many instances are you running?

marcstern14 commented 1 year ago

Thanks for the replies! It turned out to be a permissions issue on my end with GCP, and it works great now! Also worth noting that the Internal Server Error caused by the lack of permission was causing the program to crash, thus I couldn't pass around a test string.