Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Path in DoclingServeApi.baseUrl is ignored #294

@warnulf

Description

@warnulf

The DoclingServeClient removes the path part from the baseUrl when the request URI is generated.

e.g. "http://localhost:5001/api/" + "/v1/convert/file" is resolved to "http://localhost:5001/v1/convert/file" and the "api" path is lost.

When
var requestBuilder = HttpRequest.newBuilder() .uri(this.baseUrl.resolve(requestContext.getUri()))
is used to create the request URI the requeestContext.uri must not start with a slash to preserve the path of the baseUrl.

"http://localhost:5001/api/" + "v1/convert/file" is resolved to "http://localhost:5001/api/v1/convert/file"

Metadata

Metadata

Assignees

Labels

releasedIssue has been released

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions