Skip to Content
avatar image
Former Member

SAP HANA Service Layer not working

Hello Everyone,

While Calling Service Layer through Postman I am getting the below error also the same has been highlighted in the inserted image as well:

  • An authentication object was not found in the security context.
  • Expected CSRF token not found, Has your session expired ?

The documentation link which have details about the User manual & API Reference is showing up but the when we try to call Login method @ that time we are getting the above error in the output window of postman client.

Also when I open the Login url (http://url:50000/b1s/v1/Login) in the browser then I am getting Not Found text in the browser. Screenshot has been attached related to this.

Can anyone please point what should I do to fix this issue.

Pic 1.

sap-error.png (73.8 kB)
pic-2.png (52.5 kB)
pic-3.png (37.1 kB)
pic-4.png (10.6 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 30, 2017 at 07:00 AM

    Hi Abhay,

    1.404 error on open http://url:50000/b1s/v1/Login in browser
    Yatsea: The browser is using HTTP GET to endpoint http://url:50000/b1s/v1/Login, which is of course not available as the endpoint of Login is only listing to POST.

    2.Login Error with Postman

    • An authentication object was not found in the security context.
    • Expected CSRF token not found, Has your session expired ?

    Yatsea: It seems related to DB user has no enough privilege to access Database.
    If you are using a different DB different from the one used in the installation, please assure the user have grant the proper permission.
    To do so, you may refer to section 9.3.3 Database Privileges for Installing, Upgrading, and Using SAP Business One in the Administrator Guide of SAP Business One, version for SAP HANA.

    Kind Regards, Yatsea

    Add comment
    10|10000 characters needed characters exceeded