Skip to Content

SAP Business One Service Layer - Internal Server Error

Dec 05, 2016 at 12:54 AM


avatar image
Former Member


I have installed B1 HANA Platform and SAP B1 version for HANA PL05, everything went well. I started to test the service layer writing a simple Python application to consume its REST service. In the first tests it was working fine, the Service Layer returned the B1SESSION and ROUTEID, but after a while it stopped to work, the same code that was working before now it is not anymore. I tried to consume the service using Advanced Client Rest (plugin for Chrome) and I got the same result as the Python code.

I tried to restart the Service Layer service, it didn`t work. I also restarted all the SuSE OS but it didn`t work too.

My doubt now is if the Service Layer got some trouble with session management and after I connected several times it didn't manage to sort out the session for the requester anymore.

Request (python)

import requests
import ssl

task = {"CompanyDB": "SBOBRGT", "UserName": "i000001", "Password": "erp@123"}
resp ='', json=task, verify=False)



500 Internal Server Error  Loading time: 2215

Request headers 
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36

Origin: chrome-extension://bljmokabgbdkoefbmccaeficehkmlnao
Content-Type: application/x-www-form-urlencoded
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: pt-BR,pt;q=0.8,en-US;q=0.6,en;q=0.4
Cookie: ROUTEID=.node3

Response headers 
Date: Mon, 05 Dec 2016 00:38:49 GMT
Server: Apache/2.4.7 (Unix)
DataServiceVersion: 3.0
Content-Type: application/json;odata=minimalmetadata;charset=utf-8
Vary: Accept-Encoding
Content-Encoding: gzip
Connection: close
Transfer-Encoding: chunked

Response Body

    error: {
      code: -1000
      message: {
        lang: "en-us"
        value: "Internal server error."
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member Dec 05, 2016 at 01:37 AM

I have uninstalled Service Layer and installed it again and now it is working.

If someone else have faced this problem and solved in anther way, please share it here.

10 |10000 characters needed characters left characters exceeded