amazon-kinesis-producer icon indicating copy to clipboard operation
amazon-kinesis-producer copied to clipboard

ERROR](CurlHttpClient)Curl returned error code 28

Open muhufuk opened this issue 5 years ago • 7 comments

I have seen following logs on our applicaiton's logs. Our application runs on EC2 (m4xlarge)

[ERROR] [ ] [on-0003] [c.a.services.kinesis.producer.LogInputStreamReader]: [2019-07-22 14:30:24.972547] [0x00000052][0x00007f56a3fff700] [error] AWS Log: ERRORCurl returned error code 28

I would like to know what is the reason of exception above.

KPL version is 0.12.7

muhufuk avatar Aug 06 '19 07:08 muhufuk

@Cory-Bradshaw @sayantacC I see the following error message in my production application logs:

ERROR [kpl-daemon-0003] c.a.s.k.p.LogInputStreamReader(:) - [2019-11-04 16:27:06.082799] [0x0000417a][0x00007fe93de30700] [error] ### AWS Log: ERRORCurl returned error code 6

Please advise as to how to handle this error.

Environment details: KPL v 0.13.1 on Ubuntu 18.04 JVM : Corretto-8.232.09.1 (build 1.8.0_232-b09)

Thank you.

ramtg avatar Nov 05 '19 01:11 ramtg

Curl 28 indicates a request timed out.

I would recommend increasing MaxConnections parameter gradually in KPL and check if the errors persist.

https://github.com/awslabs/amazon-kinesis-producer/blob/e222115a91c51c75430e91b749591dd82ba53e2f/java/amazon-kinesis-producer/src/main/java/com/amazonaws/services/kinesis/producer/KinesisProducerConfiguration.java#L1035

MihirLimbachia avatar Jan 04 '20 06:01 MihirLimbachia

We are seeing similar warnings. Would like to know if you guys are able to solve this.

@muhufuk @ramtg Did change in max connections helped?

lakshmikanthpadala avatar Mar 18 '22 20:03 lakshmikanthpadala

Did this solve the issue?

DanOrsborne avatar Nov 28 '22 14:11 DanOrsborne

Configure RequestTimeout property of KPL to the higher value

SwapnilWadkute-NICE avatar Mar 29 '23 14:03 SwapnilWadkute-NICE

Configure RequestTimeout property of KPL to the higher value

No! That's not a fix. That just makes it wait longer before failing

DanOrsborne avatar Mar 29 '23 14:03 DanOrsborne

Could you resolve this issue? I am receiving the same error

Mariani88 avatar Nov 11 '23 04:11 Mariani88