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

error upload: maximum field length #4

Closed
tanner-ducharme opened this issue Apr 21, 2022 · 2 comments
Closed

error upload: maximum field length #4

tanner-ducharme opened this issue Apr 21, 2022 · 2 comments

Comments

@tanner-ducharme
Copy link

When trying to upload an article, I get the following error:

Error uploading entity 422 
{"error":"validation failed",
"validations":
[{"keyword":"metadataMatchesTemplateProperties",
"schemaPath":"#/metadataMatchesTemplateProperties",
"params":{"keyword":"metadataMatchesTemplateProperties"},
"dataPath":".metadata['article_contents']",
"message":"maximum field length exceeded"}],
"prettyMessage":"validation failed",
"requestId":8694} 

{'title': 'Farewell Letters: A Tribute to the Civil Society Groups, Bloggers, and Media Outlets We Lost in 2021', 
'template': '5d7fa0edabfb862c766385b3', 
'metadata': {...}

It appears that the article text is too long. I have two questions related to this issue:

  1. Is there any way around this?
  2. What is the maximum field length for Uwazi?

Thanks

@natasha-todi
@pddocs

@txau
Copy link

txau commented Apr 22, 2022

@tanner-ducharme there is indeed an on-going issue related to this: huridocs/uwazi#4520 . Hopefully we can release a patch soon.

  1. Currently there is no way around this but I'll try to prioritize this issue.
  2. For texts there should be no limit (or very big, in the range of thousands of pages) but we have a problem in our elastic mappings that is triggering this bug.

@tanner-ducharme
Copy link
Author

okay, it seems like when doing a mass upload that this doesn't prevent the other articles from being uploaded, so it's not a critical problem for the time being. Thanks

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

No branches or pull requests

2 participants