Fixing error due to misuse of url.parse(..)

This is blocking data-load on the QA environment.