stape-io / file-proxy-client

Apache License 2.0
3 stars 2 forks source link

Problematic "use Origin Headers" #1

Closed LukasGrebe closed 4 weeks ago

LukasGrebe commented 1 month ago

Thank you for the excellent work in this Template.

I've noticed problems with the "Use Origin Headers for Response" flag.

if set, depending on the source File URL and Container Hosting used, I may get a 502 Bad Gateway response. I assume this might be due to headers such as "Transfer-Encoding", "Connection (keep-alive)" or other headers.

I'm not sure what other headers a set natively from a GTM server side container.

Any advice on debugging would be much appreciated.

Bukashk0zzz commented 1 month ago

Hi,

You can use https://tagmanager.google.com/gallery/#/owners/gtm-templates-simo-ahava/templates/response-headers Set it using all headers that you think can cause errors. Then, delete headers individually and determine which header caused the issue.

LukasGrebe commented 4 weeks ago

Hi @Bukashk0zzz , thanks for the reply! I've identified transfer-encoding to cause the 502 response. I've created https://github.com/stape-io/file-proxy-client/pull/3 in case this may be relevant for others.

Bukashk0zzz commented 4 weeks ago

Merged

Bukashk0zzz commented 4 weeks ago

Thanks for the fix.