You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error when trying to attach a floating IP when an instance is starting #2361
We should try and get a better error message out the API there too. It’s possible that we are getting one and not displaying it because it’s a 503. Also is 503 really the right status code for this?
This came up today (and I almost opened a new issue for it hah). I did confirm that we are getting back a 503 with an external message that mirrors the status code. So this is likely something that should be fixed in the API to provide more context to the error being sent back. I'm not sure there is a great error code to be returned here, but 503 fits decently close with its emphasis on it being temporary.
This would be pretty easy to fix by adding something like modifyIp: ['running', 'rebooting', 'stopped'] to the list here and disabling attach/detach in other other states:
The problem is I need to nail down exactly which states allow IP attach/detach. It looks like this is probably the relevant code. @gjcolombo or @FelixMcFelix, does ['running', 'rebooting', 'stopped'] sound good for states you're allowed to attach or detach IPs in?
Activity
david-crespo commentedon Aug 9, 2024
We should try and get a better error message out the API there too. It’s possible that we are getting one and not displaying it because it’s a 503. Also is 503 really the right status code for this?
augustuswm commentedon Oct 4, 2024
This came up today (and I almost opened a new issue for it hah). I did confirm that we are getting back a 503 with an external message that mirrors the status code. So this is likely something that should be fixed in the API to provide more context to the error being sent back. I'm not sure there is a great error code to be returned here, but 503 fits decently close with its emphasis on it being temporary.
david-crespo commentedon Oct 4, 2024
This would be pretty easy to fix by adding something like
modifyIp: ['running', 'rebooting', 'stopped']to the list here and disabling attach/detach in other other states:console/app/api/util.ts
Lines 92 to 123 in efcaba7
The problem is I need to nail down exactly which states allow IP attach/detach. It looks like this is probably the relevant code. @gjcolombo or @FelixMcFelix, does
['running', 'rebooting', 'stopped']sound good for states you're allowed to attach or detach IPs in?gjcolombo commentedon Oct 4, 2024
I think that's right, from my recollection of what the code you linked is trying to do (I agree that it's the relevant bit here).
david-crespo commentedon Aug 13, 2026
This feels like mostly an API problem — a better status code and error message would show up in the console automatically.