dash-uploader icon indicating copy to clipboard operation
dash-uploader copied to clipboard

Upload on rsconnect and under proxy

Open biggiemikkie opened this issue 2 years ago • 1 comments

Hello! Could you pleage give me a hint about following issue: I am deploying my app on RSConnect platform and getting next error in logs of rsconnect when i try to upload a file: 2024/02/06 13:35:12 [error] 3755#0: *17036708 readv() failed (104: Connection reset by peer) while reading upstream, client: 172.27.19.216, server: rsconnect-app.prd.net, request: "POST /API/resumable?resumableChunkNumber=1&resumableChunkSize=1048576&resumableCurrentChunkSize=241368&resumableTotalSize=241368&resumableType=application%2Fvnd.openxmlformats-officedocument.spreadsheetml.sheet&resumableIdentifier=241368-new_template_copyxlsx&resumableFilename=new_template_copy.xlsx&resumableRelativePath=new_template_copy.xlsx&resumableTotalChunks=1&upload_id=c39cc72a-c4e9-11ee-a117-48df37301c48 HTTP/2.0", upstream: "http://127.0.0.1:3939/API/resumable?resumableChunkNumber=1&resumableChunkSize=1048576&resumableCurrentChunkSize=241368&resumableTotalSize=241368&resumableType=application%2Fvnd.openxmlformats-officedocument.spreadsheetml.sheet&resumableIdentifier=241368-new_template_copyxlsx&resumableFilename=new_template_copy.xlsx&resumableRelativePath=new_template_copy.xlsx&resumableTotalChunks=1&upload_id=c39cc72a-c4e9-11ee-a117-48df37301c48", host: "rsconnect-app.prd.net", referrer: "https://rsconnect-app.prd.net/content/595b9bd9-f506-4931-8997-c65d9c3c02e6/" As far as i understand i have to configure requests_pathname_prefix and routes_pathname_prefix but i don't really understand this concept from other issue threads

biggiemikkie avatar Feb 17 '24 13:02 biggiemikkie

I don't know about this specific error, but try app = dash.Dash(__name__, requests_pathname_prefix="/") and also check if the folder dash_uploader is saving the files exists and you have permissions.

GitHunter0 avatar Oct 09 '24 18:10 GitHunter0