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

Data endpoint requires autometa=true #205

Closed
nguyer opened this issue Sep 23, 2021 · 2 comments
Closed

Data endpoint requires autometa=true #205

nguyer opened this issue Sep 23, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@nguyer
Copy link
Contributor

nguyer commented Sep 23, 2021

Right now, if someone attempts to upload a file to the /namespaces/{namespaceId}/data endpoint, and only sets the file field, the request will fail with the following response:

HTTP 500 Internal Server Error
{
    "error": "FF10116: Database insert failed: NOT NULL constraint failed: data.value"
}

As a workaround it is possible to get this to work by adding another field to the form called autometa and setting its value to be true. This upload should work without needing to set this field though.

@nguyer nguyer added the bug Something isn't working label Sep 23, 2021
@peterbroadhurst
Copy link
Contributor

You can also set metadata to be any valid JSON

@peterbroadhurst
Copy link
Contributor

Fixed in #207 to allow a null value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants