Vivek Verma
Vivek Verma

Reputation: 41

GCP Internal Load balancer - Error: Request failed with status code 431

As per our requirement, we are making GET Request, we send encoded string in url. Gradually the length of encoded string exceeds 5000 character and that is where we are getting 431 error.

It seems like we are hitting this: Load Balancer quota limit

debug: osrm: query start debug: osrm: Error : Error: Request failed with status code 431 at createError (/home/sagar/Desktop/interpl/OSRM-response-check/node_modules/axios/lib/core/createError.js:16:15) at settle (/home/sagar/Desktop/interpl/OSRM-response-check/node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (/home/sagar/Desktop/interpl/OSRM-response-check/node_modules/axios/lib/adapters/http.js:293:11) at IncomingMessage.emit (node:events:402:35) at endReadableNT (node:internal/streams/readable:1343:12) at processTicksAndRejections (node:internal/process/task_queues:83:21) { config: {

Upvotes: 0

Views: 611

Answers (1)

boredabdel
boredabdel

Reputation: 2130

Seems like you are hitting the URL request size (64KB). That limit unfortunately cannot be increased on GCP Loadbalancers.

Upvotes: 0

Related Questions