psgc-api icon indicating copy to clipboard operation
psgc-api copied to clipboard

500 internal error in api/barangay

Open warengonzaga opened this issue 4 years ago • 4 comments

Hi @justinbalaguer please check the code for calling api/barangay there is weird error there causing 500 error to appear.

warengonzaga avatar Mar 22 '21 09:03 warengonzaga

Please use the official URL image

warengonzaga avatar Mar 22 '21 09:03 warengonzaga

This may be caused by Vercel's request/ response payload limit of 5MB. The barangay JSON is at least 6MB.

The streamed logs show an HTTP 413 error, which according to Vercel's docs is the error they show if the payload is too large.

scinscinscin avatar Mar 25 '21 08:03 scinscinscin

This may be caused by Vercel's request/ response payload limit of 5MB. The barangay JSON is at least 6MB.

The streamed logs show an HTTP 413 error, which according to Vercel's docs is the error they show if the payload is too large.

Noted... a pagination would be necessary for this one.

warengonzaga avatar Mar 25 '21 13:03 warengonzaga

This issue is connected to this issue #26 for adding API pagination.

warengonzaga avatar Mar 29 '21 04:03 warengonzaga