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

enomem error when receiving a large response #48

Open
konstantino opened this issue Jul 2, 2014 · 0 comments
Open

enomem error when receiving a large response #48

konstantino opened this issue Jul 2, 2014 · 0 comments

Comments

@konstantino
Copy link

hi, I was wondering if you had a quick tip on how I could go around such an error, in particular if it would be possible to mediate this via an option.

large in this particular case means a content-length greater than 60742854 [so "Content-Length","60742854"]. I'm using lhttpc in a wrapper which retrieves data from elastic search and in some cases where the amount of data I'm retrieving exceeds this particular threshold I get this exception. Any help will be appreciated. Thanks.

More details on the exception:

{error,
{enomem,
[{lhttpc_client,read_length,4,
[{file,"src/lhttpc_client.erl"},{line,639}]},
{lhttpc_client,handle_response_body,4,
[{file,"src/lhttpc_client.erl"},{line,484}]},
{lhttpc_client,read_response,4,
[{file,"src/lhttpc_client.erl"},{line,446}]},
{lhttpc_client,execute,9,
[{file,"src/lhttpc_client.erl"},{line,169}]},
{lhttpc_client,request,9,
[{file,"src/lhttpc_client.erl"},{line,92}]}]}}

g-andrade pushed a commit to g-andrade/lhttpc that referenced this issue Nov 26, 2014
{ok, ...} | {error, ...} signature to ec2 api
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

1 participant