Skip to content

Error log emitted when client connected to relay proxy without events #103

@chradcliffe

Description

@chradcliffe

Is this a support request? No

Describe the bug
When using the ldcomponents.RelayProxyEndpointsWithoutEvents to set the Config.ServiceEndpoints configuration parameter, the SDK emits an error log (from here):

ERROR: You have set custom ServiceEndpoints without specifying the Events base URI; connections may not work properly

To reproduce
Create a client that is connected to a relay proxy without events, e.g.:

	relayURI := "http://my-relay-hostname:8080"
	config := ld.Config{
	    ServiceEndpoints: ldcomponents.RelayProxyEndpointsWithoutEvents(relayURI),
	}

Expected behavior
An error log shouldn't be emitted for a regular configuration option.

Logs
N/A

SDK version
v6.1.0

Language version, developer tools
Go 1.22

OS/platform
Linux Alpine

Additional context
N/A

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions