Hi all, we're noticing that often when devving api...
# help
d
Hi all, we're noticing that often when devving apis locally via
sst start
that requests to the api are timing out after 10 seconds with an "Internal server error". A few other observations from trying to diagnose this issue: • It only happens when running locally with
sst start
not once the code is deployed • The sst logs also often display an error
Unexpected Top Level Error: Error: socket hang up
though hard to tell if this is the cause of the issue. • The api normally responds in under 100ms so it isn't just our code hitting the default 10s timeout • This is happening to multiple developers in multiple locations so probably not an issue on the local network • The error is intermittent, after a 500 error if you make the same request a few more times it generally starts working eventually • After a 500 error occurs, if you save the relevant handler file and re-request it seems to work (hard to tell for sure because of the above point) • We're on the latest version of the cli
^0.53.0
f
Hey @Dan Coates thanks for the details. @thdxr was looking into a similar issue. Let's see if he has some insight.
t
I'm going to push a potential fix for this tomorrow
The socket hangup is confusing though I'm not sure how that fits in
f
@thdxr Didn't mean to interrupt ur lovely Thanks Giving dinner man😁
t
I'm digesting
d
haha, sorry I'd forgotten it is thanksgiving - we're in Aus so easy to miss, obviously don't let this interrupt your festivities 🙂
m
sorry, has this been fixed already?
t
I did push one fix
I have another build which a much larger refactor if you want to try it