diff --git a/pkg/sources_server_client/client.go b/pkg/sources_server_client/client.go index e8de200c93fd1..e3e2607854cf5 100644 --- a/pkg/sources_server_client/client.go +++ b/pkg/sources_server_client/client.go @@ -52,6 +52,10 @@ func (c *sourceServerClient) sendRequest(method, url string, payload interface{} } fullURL, err := netUrl.JoinPath(c.clientConfig.BaseURL, url) + if err != nil { + return nil, fmt.Errorf("error joining path: %w", err) + } + req, err := http.NewRequest(method, fullURL, bytes.NewBuffer(requestBody)) if err != nil { return nil, fmt.Errorf("error creating request: %w", err)