nithin
My api endpoint process the request for more than 60 seconds. Then empty reply is being sent to the client. How would I increase the request timeout? Thanks
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #hex
- #security










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
paulsullivanjr
Are you trying to increase the timeout or reduce the 60 processing time? 60 seconds seems long but I also have no idea what your endpoint is doing.
NobbZ
In the slack a similar question has been asked today. There the long response time was the result of querying an external API. So if this is related, then I fear, that there is nothing we can do about the actual processing time, but instead need to increase the timeout somehow.
nithin
I am trying to increase the timeout. I am sending a file to the server and processing the data and sending the data to another server. It may take more than one minute based on the size of file.
NobbZ
Since this was already in the slack today with another user, I got permission to post his minimal repository:
https://github.com/joobisb/phoenix-sample
The 65 second sleep in the action is to simulate the foreign API call and not subject to change.
outlog
it’s a new default in Cowboy 2 - can be changed using protocol_options - idle_timeout in the endpoint config
https://github.com/phoenixframework/phoenix/issues/3190
NobbZ
This worked on my local clone of the linked repository:
The changes I did:
outlog
yep, :infinity also works..
[idle_timeout: :infinity]this issue also popped up here Video streaming connection closed automatically - one could argue for phoenix having :infinity as a default.. on the other hand 60 secs is a “sane” default..
would say there might be a need for an explicit config showing 60_000 as the configured.. the hidden default kinda falls into the implicit category - that I’m not a fan of..
shanesveller
Are there any reverse-proxies (nginx, HAProxy, Apache, etc.) sitting in front of the app when you experience the timeouts? They typically have their own backend timeout settings to watch out for.
nithin
Thanks. It worked.
rsalgado
I know I’m late to the party, but had a similar issue and found out about the solution independently and wanted to see if somebody else had the issue (that’s how I found this thread); in my case I stumbled upon it when using
IEx.pryinside a controller’s action to do some debugging. Luckily last year when I was learning Plug, had the same issue and eventually learned about that Cowboy2 option after a long while looking around the docs of Plug and Cowboy.