Getting "Invalid Url" when sending RequestAsync with credentials in URL

I am trying to use the Shopify API to look up real-life orders in-game.

The endpoint I’m using is https://{api_key}:{password}@{shop_url}/admin/api/2021-10/orders.json?name={order_number}

When I try the endpoint with the filled-in information & the brackets removed, I get “HttpError: InvalidUrl”.

local response = game:GetService("HttpService"):RequestAsync({
	Url = imagine there is the link here,
	
	Method = "GET"
})

local decodedResponse

if response.Success then
	print("HttpService request ON!")
else
	print("The request failed:", response.StatusCode, response.StatusMessage)
end

If you try to visit the website without the credentials, it’ll ask you for a Username & Password

I saw somewhere on the Devforum a while back that you can send the Username & Password credentials over the header, but I forgot how to do it

show an example on how you are passing the URL

Since I can’t expose my actual shopify credentials for obvious reasons, I’ll fill in the information with gibberish

https://06aawf2222aa3148fce4e9f6b0:waiiufyawbXX@FakeShopifyLink.myshopify.com/admin/api/2021-10/orders.json?name=1207

If you could help me with my issue, that would be greatly appreciated :slight_smile:

take a look at this HTTP Service returns Invalid URL

they dont have sample code so uhh