-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ECONNREFUSED on Mac M1 when following time travel debugger quickstart #488
Comments
Hi @timr11! Sorry about the trouble. It looks like there's possibly several issues. 1. Known issue: schema checker aggressively rejects $PGPASSWORD.This was actually fixed two commits ago: 208c001 2. Your ECONNREFUSEDThis one I currently don't have an explanation for. Let's see if we can gather more data. I can give you some things to try:
See if these help? Meanwhile I'll see if anyone else has encountered this ECONNREFUSED error before. |
Hi @apoliakov, thank you for your response! On the ECONNREFUSED, I followed your suggestion and was able to connect via |
Thanks @timr11 ! The If that works, it means the proxy connection is healthy. But, for some reason, VSCode has trouble finding your workflows. And, to confirm, you have the app's directory open in VSCode, right? @devhawk mentioned he may have some advanced maneuvers we can try out here. I'll let him opine. |
It looks like the debug mode was trying to connect the proxy through IPV6 but the proxy itself serves with IPV4. The address here
The proxy listens to
It might have something to do with the underlying config on your laptop. If you try to run Meanwhile, we're fixing on our end to make sure the proxy listens to both IPv4 and IPv6. Thanks for reporting this issue! |
Regarding this issue, did you delete your DB instance and recreate one? Because time travel information would be cleared when you destroy a DB instance. |
Update, I tried again today and it worked! @qianl15 when selecting "Time Travel Debug" it ran |
When following the docs for the time traveller debug quickstart, it gave me a schema validation error for the dbos-config.yaml when hitting the "Time Travel Debug" link due to the PGPASSWORD. I set it manually and got a ECONNREFUSED when connecting to the debugger proxy. Spoke with @devhawk about it, repro steps below:
Then I copied over the operations.ts from the tutorial and ran:
Then I navigated to https://timromanski-dbos-time-travel-debugger.cloud.dbos.dev/greeting/tim and saw the application was working. I hit the “Time Travel Debug” link above the GreetingWorkflow, entered the DB password when prompted and selected the workflow ID associated with my website visit from earlier, it ran the following in my terminal:
I set the PGPASSWORD env var in the terminal and reran the command, got:
I checked and saw the proxy server was running:
Would love to get the time traveller debugger working, it's very cool. Help appreciated!
Environment:
The text was updated successfully, but these errors were encountered: