Graphql error 413 Payload Too Large

manish_mmanish_m Member Posts: 1

I am facing issue creating invoice using Wave's GraphQL API (invoiceCreate mutation). Invoice has line items ranging from 500 - 2000.



At around 600 line items, api return error



{"error":"<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<title>Error</title>\n</head>\n<body>\n<pre>Payload Too Large</pre>\n</body>\n</html>\n","status":413}



I am attaching invoice payload containing 580 line items and returning said error.
Change your businessId, customerId and product id to reproduce at your end and increase/decrease line items as required.


Is it anything which we can do from our side?

Comments

  • Linda_ByrneLinda_Byrne Member Posts: 13 admin

    Thanks for bringing this to our attention @manish_m, we'll look into it and get back to you.

  • Linda_ByrneLinda_Byrne Member Posts: 13 admin

    Hi @manish_m.

    We have implemented a restriction that only a certain number of invoice items may be added to an invoice, and your request is hitting up against that.
    Unfortunately this restriction will remain in place. An option for you could be to split the invoice into two invoices in order to lower the amount of items per-invoice.

Sign In or Register to comment.