Giter VIP home page Giter VIP logo

Comments (4)

weichou1229 avatar weichou1229 commented on July 17, 2024 1

@ajcasagrande
I opened the issue on go-mod-bootstrap.
edgexfoundry/device-sdk-go#1157

from device-onvif-camera.

weichou1229 avatar weichou1229 commented on July 17, 2024

@ajcasagrande

  1. The core-data config is required for device-sdk-go https://github.com/edgexfoundry/device-sdk-go/blob/main/internal/clients/init.go#L58

  2. And we just upgrade the lib from v2.1 to v2.2, it's the latest changes from the go-mod-bootstrap, the BootstrapHandler keeps trying to get the service endpoint.
    https://github.com/edgexfoundry/go-mod-bootstrap/pull/305/files

func (cb *ClientsBootstrap) getClientUrl(serviceKey string, defaultUrl string, startupTimer startup.Timer, lc logger.LoggingClient) (string, error) {
	if cb.registry == nil {
		lc.Infof("Using configuration for URL for '%s': %s", serviceKey, defaultUrl)
		return defaultUrl, nil
	}

	var err error
	var endpoint types.ServiceEndpoint

	for startupTimer.HasNotElapsed() {
		endpoint, err = cb.registry.GetServiceEndpoint(serviceKey)
		if err == nil {
			break
		}

		lc.Warnf("unable to Get service endpoint for '%s': %s. retrying...", serviceKey, err.Error())
		startupTimer.SleepForInterval()
	}

from device-onvif-camera.

lenny-intel avatar lenny-intel commented on July 17, 2024

If Core data is not being used, then it needs to be removed from the Clients section of the configuration.

Per the Registry ADR, bootstrap now uses the registry to get the endpoint of all clients.

from device-onvif-camera.

lenny-intel avatar lenny-intel commented on July 17, 2024
  1. The core-data config is required for device-sdk-go https://github.com/edgexfoundry/device-sdk-go/blob/main/internal/clients/init.go#L58

@weichou1229, Since Core Data is now optional, this check in the SDK should be removed.

from device-onvif-camera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.