Open cloutiertyler opened 3 weeks ago
@gefjon Does this require making any API breaking changes to the publish API or no? i.e. do we already have a way of sending back error information?
I would bounce this to @kim , since the challenge is with cloud. With standalone it should be easy; we'd just return a better body with the error HTTP response.
We do generally propagate back errors in stringly repr.
Note that this error can occur whenever a module is instantiated -- which may happen after it was published successfully, but the server restarted with an incompatible host ABI. I wonder if it should not be detected earlier? For example, by storing the ABI version in st_module
, so we don't even try to instantiate the module if it doesn't match.
This error almost always means a bindings dependency which doesn't match the host version. We should update the error message to point users in that direction, with text like, "Does your module's spacetimedb dependency match the server's SpacetimeDB version?"