Failed Contract Testing


(M Abdelsalam) #1

Hii all
I made a model and make api host to get value from {$$.env.host}
and made scenario and link model to scenario through Swagger/OAS Coverage

from Input / Tests Tab I get the result shown in screenshot attached
Issue

when removing http:// from url, contract testing discover model but I cannot run scenario and get error of invalid schema
Error sending request Get {url} unsupported protocol scheme “”

So I lose running scenario or run it without automatic contract testing

Thanks


(Taylor Barnett) #2

Hey @m.abdelsalam! Sorry about the delay. I’m looking into this today.


(M Abdelsalam) #3

Thanks for your response and waiting your solution


(Taylor Barnett) #4

Hey @m.abdelsalam! I asked something about this internally, but it looks like it got buried. I’m following up now.


(Taylor Barnett) #5

Could you try something out? Could you remove the “http://” from the URL and add it to their env.host to see if it fixes?


(Taylor Barnett) #6

Hey @m.abdelsalam! Just wanted to check in on this again. If I don’t hear back soon, I’ll go ahead and close this thread.


(M Abdelsalam) #7

Thanks @taylor for your fast response and support and i’m very sorry for not responding later.
after adding “http://” to env.host scenario running return the following message :
“Error sending request Get http://http/www.site.com: dial tcp: lookup http: no such host”
because scenario add it automatically so after adding it to env.host it’s added two time so it considered as bad protocol
thanks


(Taylor Barnett) #8

No problem. Sorry that didn’t fix it. I’ll need to look more into your specific contract tests. Could you send a message to support@stoplight.io with a link to the test in your project? I’ll follow up there.