getAlby / hub

Alby Hub - Your own lightning node connected to every app. Run anywhere. Become self-sovereign.
https://albyhub.com
Apache License 2.0
70 stars 12 forks source link

bug: Requesting auto channel failure with phoenixd backend #648

Open gzuuus opened 4 days ago

gzuuus commented 4 days ago

I was deploying my Hub instance, using PhoenixD as the backend, when Hub suggested migrating some funds from my hosted balance. I attempted to 'Open channel and migrate funds', but encountered a generic error message: 'Something went wrong. Try again.' Upon reviewing the Hub logs, I noticed the following related errors:

{"host":"myhub.com","level":"info","msg":"handled API request","remote_ip":"...","request_id":"rkIcMSGHDHhgOnwpMjMWyLMpCCCfQIUj","status":200,"time":"2024-09-12T22:24:32Z","uri":"/api/channels","user_agent":"Mozilla/5.0 (Windows NT 10.0; rv:130.0) Gecko/20100101 Firefox/130.0"}
{"level":"info","msg":"Requesting auto channel","pubkey":"038a9e56512ec98da2b5789761f7af8f280baf98a09282360cd6ff1381b5e889bf","public":false,"time":"2024-09-12T22:24:34Z"}
{"error":"strconv.ParseUint: parsing \"\": invalid syntax","level":"error","msg":"Failed to parse lsp balance sat","time":"2024-09-12T22:24:35Z","url":"https://api.getalby.com/internal/lsp/alby/bitcoin/auto_channel"}
{"error":"failed to parse lsp balance sat strconv.ParseUint: parsing \"\": invalid syntax","level":"error","msg":"Failed to request auto channel","time":"2024-09-12T22:24:35Z"}
{"host":"myhub.tls","level":"info","msg":"handled API request","remote_ip":"...","request_id":"lWfVVnErsuEEiVGVRuvooKozXxOsnDTQ","status":500,"time":"2024-09-12T22:24:35Z","uri":"/api/alby/auto-channel","user_agent":"Mozilla/5.0 (Windows NT 10.0; rv:130.0) Gecko/20100101 Firefox/130.0"}
bumi commented 4 days ago

thanks for reporting, that's a bug with phoenixd you should not get into this flow.