Budibase / budibase

Low code platform for building business apps and workflows in minutes. Supports PostgreSQL, MySQL, MSSQL, MongoDB, Rest API, Docker, K8s, and more 🚀
https://budibase.com
Other
21.24k stars 1.44k forks source link

Unable to create documents in CouchDB datasource #14079

Closed g-serge closed 1 day ago

g-serge commented 3 days ago

Checklist

Hosting

Describe the bug It's not possible to create a document using CouchDB datasource with a Create query.

To Reproduce Steps to reproduce the behavior:

  1. Go to the data section of an app and add a CouchDB datasource
  2. Create a new query to your CouchDB datasource
  3. Select "Create" in Function dropdown
  4. Add a valid JSON document inside Query text field
  5. Click on "Run query" button
  6. Observe error "Query Error: this.client[command] is not a function"

Expected behavior The query is run and a document is created.

Screenshots image

App Export If possible - please attach an export of your budibase application for debugging/reproduction purposes.

Desktop (please complete the following information):

Additional context Clicking on "Run query" button triggers a request to "/api/queries/preview" wich fails with the following response :

{"message":"this.client[command] is not a function","status":400}

The datasource is the same CouchDB server used by Budibase.

linear[bot] commented 3 days ago

BUDI-8415 Unable to create documents in CouchDB datasource

mike12345567 commented 1 day ago

This issue will be fixed in the next release (2.29.13)