cancel
Showing results for 
Search instead for 
Did you mean: 

502 Proxy Error - Transactions Service Layer

hnavarro
Discoverer
0 Kudos

Se están presentando problemas en service layer con las operaciones que se realizan dentro de transactions tanto en operaciones $batch como las que se realizan por Script Engine. Las operaciones funcionan correctamente cuando se desactivan las validaciones en el SBO_SP_TransactionNotification, pero cuando se lanza un error desde ese procedimiento falla de la siguiente manera:


  • $Batch
--<Batch Boundary>
Content-Type: multipart/mixed;boundary=<Changeset Boundary>

--<Changeset boundary>
Content-Type:application/http
Content-Transfer-Encoding:binary
Content-ID:1

POST /b1s/v1/PurchaseInvoices
{... json content}
--<Changeset boundary>
Content-Type:application/http
Content-Transfer-Encoding:binary
Content-ID:2

POST /b1s/v1/VendorPayments

{... json content}
--<Changeset boundary>--
--<Batch Boundary>--

retorna
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head> <title>502 Proxy Error</title></head><body> <h1>Proxy Error</h1> <p>The proxy server received an invalid response from an upstream server.<br />The proxy server could not handle the request <em><a href="/b1s/v1/$batch">POST /b1s/v1/$batch</a></em>.<p> Reason: <strong>Error reading from remote server</strong></p> </p></body></html>
  • Script Engine
image.png
En el anterior script si se ocurre algún un error en el transact notification se ignora completamente y continúa como si nada pasara, aunque las operaciones realizadas no se guardan durante el commit. image.png
Si se eliminan todas las líneas del tipo transaction, entonces el error se muestra correctamente. image.png

Accepted Solutions (0)

Answers (1)

Answers (1)

mrcehlo
Explorer
0 Kudos

I'm facing the same issue, if I comment out the transaction, everything works, otherwise I'm getting the proxy error aswell.

I've tested validation by validation from transaction, no matter which is active, it falls on proxy error still.

Any help would be appreciated.

thiago , yatsea.li , ralph have you guys seen this issue?

JesperB1
Advisor
Advisor

Hello,

We have seen this error when there is insufficient memory assigned to Tomcat causing it to hang.

Try adjusting the memory of the Tomcat.

I hope that helps,

Jesper

mrcehlo
Explorer
0 Kudos

Thanks for the reply jesper.magnusson , but it wasn't the cause. I've changed it from max of 5GB to 10GB and still getting the error.

JesperB1
Advisor
Advisor
0 Kudos

Hello,

Try 16GB.

Jesper