Hi @hrishikesh
Is this an invalid redirect configuration? It was setup for SPA router and was functioning correctly for several months, until I started getting these random 500s.
Do you know if there was a change in how Netlify handles redirect configs?
Also just did some more tests using the exact same request from above and get 200s again.
I don’t understand he inconsistency. And these 500 are totally opaque and I have not details from netlify on the cause.
Could you please help escalate this and have someone review logs or request traces for these?
~/
❯ curl -I "https://aec.works/auth/linkedin"
HTTP/2 200
cache-control: public, max-age=0, must-revalidate
content-length: 0
content-type: text/html; charset=UTF-8
date: Tue, 20 Jul 2021 16:55:10 GMT
etag: "5f54ef3cdea17491ea35443a5ab8ebab-ssl"
strict-transport-security: max-age=31536000
server: Netlify
age: 1
x-nf-request-id: 6f5bf845-81aa-4580-894f-b92a758cc98c
~/
❯ curl -I "https://aec.works/auth/linkedin"
HTTP/2 200
cache-control: public, max-age=0, must-revalidate
content-length: 0
content-type: text/html; charset=UTF-8
date: Tue, 20 Jul 2021 16:56:47 GMT
etag: "5f54ef3cdea17491ea35443a5ab8ebab-ssl"
strict-transport-security: max-age=31536000
server: Netlify
age: 0
x-nf-request-id: f636200d-77ce-4fc6-9c20-6297d6eda3c4
~/
❯ curl -I "https://aec.works/auth/linkedin"
HTTP/2 200
cache-control: public, max-age=0, must-revalidate
content-length: 0
content-type: text/html; charset=UTF-8
date: Tue, 20 Jul 2021 16:56:50 GMT
etag: "5f54ef3cdea17491ea35443a5ab8ebab-ssl"
strict-transport-security: max-age=31536000
server: Netlify
age: 0
x-nf-request-id: da92e479-072f-48a9-b0e5-98443102f8bf
And notice the inconsistency here, these were made one right after the other, from two different laptops. Looks like the cache was reset after the first 500 but then worked as expected:
~/
❯ curl -I "https://aec.works/companies?sort=updated"
HTTP/2 500
server: Netlify
date: Tue, 20 Jul 2021 17:02:19 GMT
age: 0
x-nf-request-id: 8b03107b-d9fd-4988-88fa-fb7177b3649f
~/
❯ curl -I "https://aec.works/companies?sort=updated"
HTTP/2 200
cache-control: public, max-age=0, must-revalidate
content-length: 1841
content-type: text/html; charset=UTF-8
date: Tue, 20 Jul 2021 17:02:33 GMT
etag: "5f54ef3cdea17491ea35443a5ab8ebab-ssl"
strict-transport-security: max-age=31536000
server: Netlify
age: 0
x-nf-request-id: 01FB2DWZ754XSGBGDNQ8W7F0CH
~/
❯ curl -I "https://aec.works/companies?sort=updated"
HTTP/2 200
cache-control: public, max-age=0, must-revalidate
content-length: 1841
content-type: text/html; charset=UTF-8
date: Tue, 20 Jul 2021 17:02:33 GMT
etag: "5f54ef3cdea17491ea35443a5ab8ebab-ssl"
strict-transport-security: max-age=31536000
server: Netlify
age: 33
x-nf-request-id: 01FB2DY00T5V7C0M4M5NFVS4A3
~/
❯ curl -I "https://aec.works/companies?sort=updated"
HTTP/2 200
cache-control: public, max-age=0, must-revalidate
content-length: 1841
content-type: text/html; charset=UTF-8
date: Tue, 20 Jul 2021 17:02:33 GMT
etag: "5f54ef3cdea17491ea35443a5ab8ebab-ssl"
strict-transport-security: max-age=31536000
server: Netlify
age: 105
x-nf-request-id: 01FB2E065ADSG4JQAG78Y535D9