Correct handling of API call on a wrong net_provider url

Change-Id: I24a3dea13e1deff8b61e139fcdb6e79c4fcd373a
Merge "Correct handling of API call on a wrong net_provider url"