[Feature Toggle Management] Continuous error messages getting logged(InvalidURI:The hostname could not be parsed)
feature-toggle-management
Forge component by Experts
Application Type
Traditional Web

Hi,

Can you please help me fixing these errors which are getting logged every minute in 100's of count.



Below are the Error Details:

Invalid URI: The hostname could not be parsed.

RequestUrl: http://(**IP Address in here**)/FeatureToggleManagement_BP/_ActivityHandler.asmx (Method: POST)

Stack -

Invalid URI: The hostname could not be parsed.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.Net.WebRequest.Create(String requestUriString)
   at ssFeatureToggleManagement_CS.CcFeatureToggleAPI.ActionEV_FeatureToggle_CreateOrUpdate(HeContext heContext, ICcFeatureToggleAPICallbacks _callbacks, String inParamEnvironmentKey, String inParamFeatureToggleKey, String inParamFeatureToggleName, Boolean inParamIsFenced, Boolean inParamIsActiveByDefault, Boolean inParamIsOn, Boolean inParamIsConditionalOn, String inParamCategoryName, String inParamTextIds, STFeatureToggleAPIResponseStructure& outParamResponse)


Thank You

This method constructs the URI, puts it in canonical form, and validates it. If an unhandled exception occurs, this method catches it. If you want to create a Uri and get exceptions use one of the Uri constructors.

Hi Manideep,

I had the same problem. I don't know how my data was generated incorrectly but in my case I had to add this condition in the logic to close the active instances with errors. Perhaps there is a bug in this process.


The UpdateToggle process (FeatureToggleManagement_BP module) invokes to APIFeatureToggle_CreateOrUpdateWrapper method (FeatureToggleManagement_CS module) and this method tries to call a REST method (Feature_Lib module). Before calling the REST method tries to parse the URI and raises an exception because of bad data.

Kind regards, David.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.