yada

matttylr 2018-03-14T11:23:06.000339Z

Morning

malcolmsparks 2018-03-14T11:23:23.000272Z

Hi

matttylr 2018-03-14T11:23:35.000011Z

Hi @malcolmsparks, just the man 🙂

matttylr 2018-03-14T11:24:06.000054Z

getting a

Not found

https://:8443
from my yada deployment

matttylr 2018-03-14T11:24:36.000109Z

but my vhost config seems correct, it’s like yada isn’t able to pick up the HOST or HOSTNAME env var

malcolmsparks 2018-03-14T11:24:36.000309Z

Vhosts not matching

malcolmsparks 2018-03-14T11:25:14.000137Z

yada looks at the request and x-forwarded-proto header

malcolmsparks 2018-03-14T11:25:26.000358Z

Doesn't use HOST

malcolmsparks 2018-03-14T11:25:37.000368Z

Sorry, taking off

matttylr 2018-03-14T11:25:40.000380Z

ah, yes

matttylr 2018-03-14T11:25:47.000069Z

cool, enjoy the trip 🙂

malcolmsparks 2018-03-14T11:25:52.000194Z

Was, aborted!

malcolmsparks 2018-03-14T11:26:01.000175Z

Yikes

matttylr 2018-03-14T11:26:27.000092Z

are you literally sitting in the plane now?

malcolmsparks 2018-03-14T11:26:34.000154Z

Yep

matttylr 2018-03-14T11:26:43.000007Z

nice

malcolmsparks 2018-03-14T11:26:55.000388Z

Aircraft sped up, then suddenly braked. LHR

matttylr 2018-03-14T11:27:18.000106Z

you wouldn’t get that level of product support from commercial software

malcolmsparks 2018-03-14T11:27:19.000272Z

Pilot must badly want me to help fix your issue

matttylr 2018-03-14T11:27:24.000330Z

🙂

malcolmsparks 2018-03-14T11:28:14.000079Z

yada doesn't use env vars but you can in your setup code.

malcolmsparks 2018-03-14T11:28:50.000201Z

Best to use actual names if you can.

matttylr 2018-03-14T11:28:55.000141Z

yes, sorry, that isn’t what I meant, using the wrong words for what was in my head

matttylr 2018-03-14T11:29:44.000079Z

it’s just strange that the domain/host string is absent in the error msg, that would indicate that it wasn’t reading it from the header?

malcolmsparks 2018-03-14T11:30:07.000130Z

Technical issue on the flight deck. Doesn't seem to be yada related though

malcolmsparks 2018-03-14T11:30:50.000310Z

Ah. Yes, that's strange. Are you behind a proxy?

malcolmsparks 2018-03-14T11:31:25.000261Z

Look at the bidi vhosts ns to see how vhosts are matched

matttylr 2018-03-14T11:31:34.000427Z

yes, and a parallel deployment for another host does work

matttylr 2018-03-14T11:31:41.000052Z

ok, I’ll take a look there

malcolmsparks 2018-03-14T11:32:02.000042Z

Is there another header in use on your setup?

malcolmsparks 2018-03-14T11:32:44.000024Z

Technically this is a bidi issue but be aware yada adds a protocol extension to bidi in yada/ext/bidi.

malcolmsparks 2018-03-14T11:33:10.000077Z

Be aware of that when you're piecing together this puzzle

matttylr 2018-03-14T11:33:30.000378Z

ok, those are great pointers, cheers @malcolmsparks

malcolmsparks 2018-03-14T11:34:42.000189Z

Can't quite remember the request header that is also used. Think it is x-forward-proto but obviously I'm afk right now.

malcolmsparks 2018-03-14T11:35:48.000171Z

Aircraft is banjaxed (it's operated by SAS Ireland so I think that's the correct term here.)

matttylr 2018-03-14T11:37:06.000322Z

heck

malcolmsparks 2018-03-14T11:37:10.000015Z

Your proxy might be sending a different nonstandard header. You could dump the request which might help to see what it is doing. It might be an older proxy before this stuff was standardised

malcolmsparks 2018-03-14T11:37:26.000320Z

If so, you could patch bidi accordingly

malcolmsparks 2018-03-14T11:37:58.000175Z

Just add the header wherever x-forwarded-host is used

malcolmsparks 2018-03-14T11:39:43.000239Z

Not banjaxed. Engineers need to look at a few 'bits and pieces'. Not a reassuring term in the context of an aeroplane

matttylr 2018-03-14T11:40:19.000054Z

there’s quite a few bits and pieces on a plane, might take a while

1
matttylr 2018-03-14T11:40:58.000253Z

going direct via curl, sans proxy, give the same responses

matttylr 2018-03-14T11:41:06.000179Z

(with the working and non-working hosts)

malcolmsparks 2018-03-14T11:41:06.000243Z

They could give it a shake and listen for a rattling sound

matttylr 2018-03-14T11:41:26.000107Z

rattling sound might come from the passengers though….

malcolmsparks 2018-03-14T11:41:56.000007Z

Could you paste curl -v

malcolmsparks 2018-03-14T11:42:28.000378Z

(curse you SwiftKey!)

matttylr 2018-03-14T11:42:36.000263Z

not easily, you know, bank

malcolmsparks 2018-03-14T11:42:42.000316Z

Ah sure

matttylr 2018-03-14T11:42:45.000313Z

but Host: is def being sent

matttylr 2018-03-14T11:42:51.000013Z

and it’s correct

malcolmsparks 2018-03-14T11:42:56.000356Z

Right. That's what I was looking for.

matttylr 2018-03-14T11:43:40.000150Z

I don’t think this is yada/bidi, but just wanted to know where they were looking

malcolmsparks 2018-03-14T11:43:55.000034Z

Look at the bidi vhosts ns

matttylr 2018-03-14T11:44:00.000037Z

I’m there

matttylr 2018-03-14T11:45:55.000189Z

it looks for x-forwarded-host or host

malcolmsparks 2018-03-14T11:46:05.000382Z

Yes

matttylr 2018-03-14T11:46:11.000128Z

can’t see how that’s not working

malcolmsparks 2018-03-14T11:46:31.000227Z

Look at vhosts->routes

malcolmsparks 2018-03-14T11:47:13.000056Z

It's pulling from your vhost declaration. Not your request

malcolmsparks 2018-03-14T11:48:05.000152Z

Have you used an actual string in your vhost?

malcolmsparks 2018-03-14T11:48:13.000354Z

Or a wildcard?

matttylr 2018-03-14T11:48:20.000447Z

string

matttylr 2018-03-14T11:50:14.000029Z

contrasting with the working one

malcolmsparks 2018-03-14T11:50:21.000396Z

The vhosts->string fn is the problem here. It is looking for host in the map. You can see how the error is constructed. There must be something you're doing to the map.

malcolmsparks 2018-03-14T11:50:42.000124Z

It's odd that it's working on the other node

matttylr 2018-03-14T11:50:44.000198Z

both have the form

[{:scheme :https, :host "hostname:8443"}]

matttylr 2018-03-14T11:51:27.000178Z

there’s no silly extraneous spaces either

matttylr 2018-03-14T11:53:13.000121Z

hmm, as I say, believe it’s something environmental

matttylr 2018-03-14T11:53:38.000004Z

I’ve got to pop out for a bit, thanks for the pointers Malcolm, I hope you take off soon

malcolmsparks 2018-03-14T11:54:20.000298Z

So it looks like host is changing from hostname:8443 to :8443. The request itself isn't involved

đź‘Ť 1
malcolmsparks 2018-03-14T11:54:25.000468Z

Ok