Passing an invalid restart policy to machine API causes a server error

Hi, unsure of a good way to report bugs so here I am, I guess. When trying to create a machine with an invalid restart policy, an error is returned with no details about what’s wrong in the request. Specifically, I accidentally had the policy on-fail and not on-failure. on-fail is used in Machine restart policy · Fly Docs however, which makes this even more confusing because the API wants on-failure.

hi @catgirl

We’re updating the docs right now to note explicitly that the Machines API requires on-failure and the Machine config also returns on-failure. Ideally, we’ll update flyctl and then the docs, so that on-failure will be used everywhere.

Thanks for reporting your experience!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.