lambodar
lambodar

Reputation: 3773

Client gets 400 bad request but server did't receive any request

It's pretty wired but true. We are a back-end web-service team and recently our client started complaining they are getting sporadic 400 error for a GET request (this is the 2nd time in 2 week) but from server side we don't have access log either with the request-id or error code.

It violates the basic rule of client-server architecture, I have no clue what's going wrong. Any help is highly appreciable.

From client log:

2017-01-30 16:44:43,507 [nio-8009-exec-22] WARN java_class - call https://getcall.com/api [request_id] with params {app_id, start_time_in_mills , sender_id, type, pagesize, end_time_in_mills} returned error code 400-Bad Request with error

Upvotes: 0

Views: 1982

Answers (1)

lambodar
lambodar

Reputation: 3773

It was a problem with HTTP header, we were sending large amount of data(encrypted acls) in header which was exceeding the default limit from LB side(type-7), hence the request was not routing to the node and rejected from LB. Two solution here:

  • Increase the default header size for your LB/Server
  • Consider breaking headers and move it to body wherever possible.

Upvotes: 1

Related Questions