bgmulinari / B1SLayer

A lightweight SAP Business One Service Layer client for .NET
MIT License
122 stars 42 forks source link

Logged in but keep getting "Authorization header not found"? #65

Open KwokHoiMan opened 3 months ago

KwokHoiMan commented 3 months ago

After logging on, the callback shows that the session is established, but on the next request the response is "authorisation header not found".

This repeats until the .NET console program crashes.

image

I am using SAP v10 SP2311 64-bit.

Any advice appreciated!

bgmulinari commented 3 months ago

Hi, @KwokHoiMan. Can you share a the code snippet that reproduces your problem, please?

Shield1739 commented 2 months ago

In case anyone comes up with this error, the problems comes from including the /Login in the service layer root uri

Example:

This is WRONG: new SLConnection("https://sapserver:50000/b1s/v1/Login", "CompanyDB", "manager", "12345");

This is CORRECT: new SLConnection("https://sapserver:50000/b1s/v1", "CompanyDB", "manager", "12345");