Skip to Content
0
Former Member
Dec 12, 2016 at 09:21 AM

SAP B1 Service Layer Large json size error

80 Views Last edit Aug 22, 2017 at 07:53 AM 2 rev

I am trying send a 4MB json on https://servername:50000/b1s/v1/Invoices but the service layer is replying this error

XMLHttpRequest cannot load https://servername:50000/b1s/v1/Invoices. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:8888’ is therefore not allowed access. The response had HTTP status code 502.

NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://server:50000/b1s/v1/Invoices'.

It’s working If it’s just a few lines of item rows. The 4MB is just one consolidated A/R Invoice.