I'm doing some file uploads that sends to an nginx reverse proxy. If I set the python requests timeout to 10 seconds and upload a large file, nginx will report client prematurely closed connection and forward an empty body to the server. If I remove the requests timeout, the file uploads without any issues. As I understand it, the timeout should only apply if the client fails to receive or send any bytes, which I don't believe is the case as it's in the middle of uploading the file. It seems to behave more like a time limit, cutting the connection after 10 seconds with no exception being raised by requests. Is sending bytes different than reading bytes for timeout? I haven't set anything for stream or tried any type of multi-part. I would like to set a timeout but confused as to why the connection is getting aborted early - thanks for any help.
Python Requests POST timeout prematurely closed connection
283 Views Asked by ElJeffe At
0
There are 0 best solutions below
Related Questions in POST
- Add an http GET/POST entry point to a Django with channels websocket
- NEXTJS - POST net::ERR_ABORTED 500 (Internal Server Error)
- Post request response time spikes
- Slim routing in PHP-DI container
- single form and multiple submit (with multiple value)
- How do I post new data directly into a nested array in my json data file?
- When my form submitts I get: Failed to load resource: the server responded with a status of 400 (Bad Request) | Cannot GET /api/auth/createEvent
- POST a 50MB file to an Azure Durable Function app
- submitting multiple files as array ,with react axios
- I'm did POST method for DELETE with correct parameters and URL in React application but receive 400 Bad request error. Can it be server side issue?
- How to change the post permalink from title plus custom field value
- Making a POST to a folder are recived as a GET
- I can't retrieve GET values
- UPS new OAuth QVEvent POST API into VBA
- How to reference a model in a POST request body schema according to OpenAPI?
Related Questions in PYTHON-REQUESTS
- I can't call a FastAPI POST route using Python's "requests" module, but I'm able to call the same route via cURL command line
- WebScraping doesnt work, even without error
- Python Requests: Handling Exceptions and Ensuring Server Response
- Issue with sending POST request using Python requests library
- Post request response time spikes
- Python GET Request returns data when tried on Postman but the generated python code not working
- downloading pdf using requests not working
- Trying to scrape a dynamic website in python with requests_html
- Chain multiple ajax requests in website to show more pages and get full list in single page
- Steam API - Available stats when I don't own a game?
- Trying to detect expired short urls, trouble with status_code and response url
- How can I download a file from a URL using Python when requests is redirecting to an error page
- certificate verify failed: unable to get local issuer certificate nothing seems wrong
- langchain: how to use a custom deployed fastAPI embedding model locally?
- How to Extract Data from Multiple Pages Using BeautifulSoup?
Related Questions in TIMEOUT
- MongoDb not connecting C#
- Python Requests: Handling Exceptions and Ensuring Server Response
- Flutter connection to a local api
- SerialPort timeouts in ReadChar() method, WPF, "The operation has timed out."
- test result: Error. Program `sh' timed out (timeout set to 480000ms, elapsed time including timeout handling was 480002ms)
- sql performance in accounting software invoice list
- Scrapy handle closespider timeout in middleware
- Run initialization has timed out after 90.0 sec
- Problem with connection timeout SQL Server
- Connection timeout when trying to reach local web server from within local network
- C# MVC net.7 Application goes in time out
- How to hande nodejs/expressjs gateway timeout by THIRD_PARTY_SERVER?
- Why does the python client socket receiving a reply but still throw the exception in some threadings?
- Timeout error when running webdriverIO project in Docker with MacBook M1 Pro
- mobile devices dont see radio button onchange
Related Questions in NGINX-REVERSE-PROXY
- nginx set up reverse proxy from subfolder to a port
- Openshift nginx proxy_pass not redirecting from current host to another
- Load balancing using NGINX between sites that are in different docker-containers in the Portainer environment
- Extracting and Storing Value of a Initial Header in NGINX
- Request header field access-control-allow-origin is not allowed by Access-Control-Allow-Headers in preflight response, nginx, django, waitress
- Problem with Plex and Owncloud reverse proxies cohabitation
- Why Node.JS HTTP server doesn't work properly behind proxy?
- How to rewrite the name of a backend header with nginx as a forward or reverse proxy?
- Websockets stopped working after adding nginx and gunicorn
- self-hosted blazor web app - websocket/signalR works in public network, but does not work on home network when using domain name
- Error configuration for nginx-ingress controller
- How to resolve weird 404 error while connecting to php-fpm via nginx (reverse proxy) inside of a podman pod?
- nginx conflicting server name
- Nginx v1.25.1 http2 on; new recommendation creating another warn
- Combine Short-URL-Service with Existing CMS on Nginx
Related Questions in CONNECTION-CLOSE
- how fastcgi close the connection between client and nginx
- GridDB: The connection already been lost(NewSQL/NoSQL)
- Python Requests POST timeout prematurely closed connection
- Angular API Call on C# Web API Cors Exception
- Spring HikariCP's connection is not closing immediately
- Heroku "Connection closed without response" H13 with golang after http 503
- How to list opened sql server connections and close the specific one
- How can I close and then reopen async TCP socket in C#?
- Connection is closed when using Hibernate Search with Spring application
- WebSocketSharp with BinanceAPI
- How to exec code after res.send() in express server at Firebase cloudFunctions
- Closing a null sql connection
- How to fix connection close issue in synchronised method?
- The underlying connection closed, was working fine last week
- Unexpected connection close in HttpClient
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?