Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug: Update base with meta data via API doesn't work #8417

Open
1 task done
salim-b opened this issue May 6, 2024 · 0 comments
Open
1 task done

🐛 Bug: Update base with meta data via API doesn't work #8417

salim-b opened this issue May 6, 2024 · 0 comments

Comments

@salim-b
Copy link
Contributor

salim-b commented May 6, 2024

Please confirm if bug report does NOT exist already ?

  • I confirm there is no existing issue for this

Steps to reproduce ?

Issue the following HTTP request to update a base with the provided meta data:

curl -X 'PATCH' \
  'https://api.example.com/api/v2/meta/bases/{baseId}' \
  -H 'xc-token: abcd1234' \
  -H 'Content-Type: application/json' \
  -d '{ "meta": { "showNullAndEmptyInFilter": true } }'

(replace URL and xc-token with actual values, of course)

Although the request is answered with a HTTP 200 (with the value 1 in the response body), it has not the intended effect, i.e. it does not enable the "Show NULL & Empty in Filters" base setting.

Instead, the next time the NocoDB UI is reloaded, the following error message is displayed, indicating that something went wrong:

JSON.parse: unexpected character at line 1 column 2 of the JSON data

Desired Behavior

The base settings should be configured according to the meta data in the HTTP request.

Project Details

Node: v20.11.1
Arch: x64
Platform: linux
Docker: false
RootDB: sqlite3
PackageVersion: 0.207.0

Attachments

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🏌️ Open
Development

No branches or pull requests

1 participant