Possible Bug in Dashboard? - OAS APIs can't be edited after creation

We recently update our Dashboard from 5.3.8 to the latest version 5.7.1

In the new version we can’t edit APIs that were importet as OAS from an OpenAPI Spec. Initial creation works well, but as soon as I want to edit anything (for example the Name, Expiration or Enabled) I get the Error “Failed to update Org object to DB” (see Screenshot)

If I import the API as a classic API editing works

In the Log I get the following output:
time=“Feb 11 08:17:02” level=error msg=“Update failed for API”
time=“Feb 11 08:17:02” level=error msg=“write exception: write errors: [The DBRef $ref field must be followed by a $id field]”
time=“Feb 11 08:17:02” level=error msg=“Failed to update Org object to DB”

Is that a Bug or am I doing something wrong?

Anybody got any input on this?

Unless I’m completely mistaken I’d say this is a bug

Hi @markus.wiedmer,

You may experience this if using an unsupported version of MongoDB.

v5.7.1 supports Mongo 5.0.x, 6.0.x, 7.0.x. Please see more about this here.

1 Like

thank you for your reply. That fixed our issue. We were still running on MongoDB 4.0 and hadn’t noticed that that is no longer supported.

After upgrading to MongoDB 6.0 everything seems to be working now. It also fixed another issue we had that we couldn’t reach the classic portal after upgrade.

1 Like