Open hmfarooq opened 9 months ago
I am parsing url using URI::Parse.new.parse But it's throwing this error
URI::Parse.new.parse
.rvm/gems/ruby-2.7.2/gems/uri-0.13.0/lib/uri/rfc2396_parser.rb:176:insplit': bad URI(is not URI?): https://clk.srv.stackadapt.com/clk?lp=https%3A%2F%2Fwww.selective.com%2Ffor-businesses%2Flanding-pages%2Fpicture-this-agents%3F%26utm_source%3Dstackadapt%26utm_medium%3Dprogrammatic%26utm_campaign%3Dzgm-display-picturethis-clagents%26utm_content%3Drisk-728x90&${SA_APP_NEXUS_CLICK_URL}](https://clk.srv.stackadapt.com/clk?lp=https://www.selective.com/for-businesses/landing-pages/picture-this-agents?&utm_source=stackadapt&utm_medium=programmatic&utm_campaign=zgm-display-picturethis-clagents&utm_content=risk-728x90&$%7BSA_APP_NEXUS_CLICK_URL%7D) (URI::InvalidURIError) `
.rvm/gems/ruby-2.7.2/gems/uri-0.13.0/lib/uri/rfc2396_parser.rb:176:in
here is my URL
https://clk.srv.stackadapt.com/clk?lp=https%3A%2F%2Fwww.selective.com%2Ffor-businesses%2Flanding-pages%2Fpicture-this-agents%3F%26utm_source%3Dstackadapt%26utm_medium%3Dprogrammatic%26utm_campaign%3Dzgm-display-picturethis-clagents%26utm_content%3Drisk-728x90&${SA_APP_NEXUS_CLICK_URL}](https://clk.srv.stackadapt.com/clk?lp=https://www.selective.com/for-businesses/landing-pages/picture-this-agents?&utm_source=stackadapt&utm_medium=programmatic&utm_campaign=zgm-display-picturethis-clagents&utm_content=risk-728x90&$%7BSA_APP_NEXUS_CLICK_URL%7D)
I am parsing url using
URI::Parse.new.parse
But it's throwing this error.rvm/gems/ruby-2.7.2/gems/uri-0.13.0/lib/uri/rfc2396_parser.rb:176:in
split': bad URI(is not URI?): https://clk.srv.stackadapt.com/clk?lp=https%3A%2F%2Fwww.selective.com%2Ffor-businesses%2Flanding-pages%2Fpicture-this-agents%3F%26utm_source%3Dstackadapt%26utm_medium%3Dprogrammatic%26utm_campaign%3Dzgm-display-picturethis-clagents%26utm_content%3Drisk-728x90&${SA_APP_NEXUS_CLICK_URL}](https://clk.srv.stackadapt.com/clk?lp=https://www.selective.com/for-businesses/landing-pages/picture-this-agents?&utm_source=stackadapt&utm_medium=programmatic&utm_campaign=zgm-display-picturethis-clagents&utm_content=risk-728x90&$%7BSA_APP_NEXUS_CLICK_URL%7D) (URI::InvalidURIError) `here is my URL
https://clk.srv.stackadapt.com/clk?lp=https%3A%2F%2Fwww.selective.com%2Ffor-businesses%2Flanding-pages%2Fpicture-this-agents%3F%26utm_source%3Dstackadapt%26utm_medium%3Dprogrammatic%26utm_campaign%3Dzgm-display-picturethis-clagents%26utm_content%3Drisk-728x90&${SA_APP_NEXUS_CLICK_URL}](https://clk.srv.stackadapt.com/clk?lp=https://www.selective.com/for-businesses/landing-pages/picture-this-agents?&utm_source=stackadapt&utm_medium=programmatic&utm_campaign=zgm-display-picturethis-clagents&utm_content=risk-728x90&$%7BSA_APP_NEXUS_CLICK_URL%7D)