Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload on rsconnect and under proxy #131

Open
biggiemikkie opened this issue Feb 17, 2024 · 1 comment
Open

Upload on rsconnect and under proxy #131

biggiemikkie opened this issue Feb 17, 2024 · 1 comment

Comments

@biggiemikkie
Copy link

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

@GitHunter0
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants