You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fineract.apache.org by "Juhan Aasaru (Jira)" <ji...@apache.org> on 2019/10/16 18:46:00 UTC

[jira] [Created] (FINCN-183) rhythm BeatPublisherService cannot access portfolio via Eureka

Juhan Aasaru created FINCN-183:
----------------------------------

             Summary: rhythm BeatPublisherService cannot access portfolio via Eureka
                 Key: FINCN-183
                 URL: https://issues.apache.org/jira/browse/FINCN-183
             Project: Fineract Cloud Native
          Issue Type: Improvement
            Reporter: Juhan Aasaru


In 

BeatPublisherService

method

publishBeat

app url is pulled from Eureka

List<ServiceInstance> applicationsByName =

discoveryClient.getInstances(applicationIdentifier);

ServiceInstance beatListenerService = applicationsByName.get(0);

final BeatListener beatListener = apiFactory.create(BeatListener.class, beatListenerService.getUri().toString());

 

but the problem is that getUri() returns the URL of Portfolio without context path (without '/portfolio/v1).

For this need to rewrite EurekaClient to use getHomePageUrl() instead

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)