I’m getting the following error after attempting to replay a request from ams
to my primary in den
.
error.message="could not send HTTP request to instance: http2 error: stream error received: unspecific protocol error detected" 2023-01-30T16:05:52Z proxy[5f0b30a4] sjc [error]request.method="POST" request.url="https://kentcdodds.com/calls/record/new?_data=routes%2Fcalls.record%2Fnew" request.id="01GR1PTYHGSR2F0NKFBVAHWY6A-sjc" response.status=502
error.message="could not send HTTP request to instance: error from user's HttpBody stream: error reading a body from connection: stream error detected: unspecific protocol error detected" 2023-01-30T16:05:57Z proxy[5f0b30a4] den [error]request.method="POST" request.id="01GR1PTYHGSR2F0NKFBVAHWY6A-sjc"
My own logs before this show that my application in ams
was sending the replay:
2023-01-30T16:05:52Z app[92d83e6f] ams [info]Replaying: {
2023-01-30T16:05:52Z app[92d83e6f] ams [info] pathname: '/calls/record/new',
2023-01-30T16:05:52Z app[92d83e6f] ams [info] method: 'POST',
2023-01-30T16:05:52Z app[92d83e6f] ams [info] currentInstance: '92d83e6f',
2023-01-30T16:05:52Z app[92d83e6f] ams [info] currentIsPrimary: false,
2023-01-30T16:05:52Z app[92d83e6f] ams [info] primaryInstance: '5f0b30a4'
2023-01-30T16:05:52Z app[92d83e6f] ams [info]}
I’m uncertain why sjc
is mentioned in those logs because I don’t have a region in sjc
.
This is a POST
of application/x-www-form-urlencoded;charset=UTF-8
with a content-length of 1139895
(quite large). So maybe that has something to do with it? Specifically, it’s the audio recorder upload for Call Kent Podcast
You can find the source code for the replay here: kentcdodds.com/fly.ts at 96d76de72a4a48089f2eb22a88a6ad1c6f847fa1 · kentcdodds/kentcdodds.com · GitHub (that’s an express middleware that’s applied pretty early in my middleware: kentcdodds.com/index.ts at 96d76de72a4a48089f2eb22a88a6ad1c6f847fa1 · kentcdodds/kentcdodds.com · GitHub).
Any tips and advice is welcome.