You are viewing limited content. For full access, please sign in.

Question

Question

Self-hosted LF Web API Server sample project JSON error

asked on March 8, 2024 Show version history

Hello,

We have the self-hosted Laserfiche Web API Server installed, and Swagger works properly. I downloaded the sample project, lf-sample-repository-api-dotnet-sr, and I haven't been able to make it work.

The method RepositoryApiClient.CreateFromUsernamePassword() creates a client successfully. However, the following statement would throw a Json exception:

await client.RepositoriesClient.ListRepositoriesAsync().ConfigureAwait(false)

Other retrieval methods would fail the same way.

Please see the attached screenshot for the error and let me know what is causing this.

Thanks.

JsonError.PNG
JsonError.PNG (18.25 KB)
0 0

Answer

APPROVED ANSWER
replied on March 11, 2024

Hi!

Can you try using the v1 branch of the lf-sample-repository-api-dotnet-srv repository? The current self-hosted API Server only supports version v1 of the Laserfiche API.

We will update our documentation to make that more clear.

0 0

Replies

replied on March 11, 2024

I cloned the v1 branch of the lf-sample-repository-api-dotnet-srv repository. The JSON error is gone. 

Thank you very much for your help.

 

2 0
You are not allowed to follow up in this post.

Sign in to reply to this post.