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] 400 Client Error when fetching Nuxeo collection #1000

Closed
gamontoya opened this issue Jun 12, 2024 · 3 comments
Closed

[bug] 400 Client Error when fetching Nuxeo collection #1000

gamontoya opened this issue Jun 12, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@gamontoya
Copy link
Collaborator

When re-harvesting a recently, successfully harvested Nuxeo collection, it fails at the fetch_collection phase:

[2024-06-11, 23:39:06 UTC] {{standard_task_runner.py:104}} ERROR - Failed to execute job 140492 for task fetching.fetch_collection (400 Client Error: for url: https://nuxeo.cdlib.org/Nuxeo/site/api/v1/search/lang/NXQL/execute?pageSize=100&currentPageIndex=0&query=SELECT+%2A+FROM+SampleCustomPicture%2C+CustomFile%2C+CustomVideo%2C+CustomAudio%2C+CustomThreeD+WHERE+ecm%3Apath+STARTSWITH+%27%2Fasset-library%2FUCB%2FUCB+Ethnic+Studies%2FAAS%2FWei+Min+She+and+Asian+Community+Center+photographs%2C+1970-1980%2FAsian+Community+Center+Children%27s+Program%27+AND+ecm%3AisTrashed+%3D+0+ORDER+BY+ecm%3Apos; 11642)

@gamontoya gamontoya added the bug Something isn't working label Jun 12, 2024
@christinklez
Copy link
Collaborator

Perhaps due to strange characters in the link. Explore changing the URL to use UUIDs. (May have quotes in the title.)

@barbarahui barbarahui self-assigned this Jun 24, 2024
@barbarahui
Copy link
Collaborator

barbarahui commented Jun 24, 2024

This should be fixed with this PR: #1011

The problematic path has a single quote in it. Querying by ecm:ancestorId rather than ecm:path gets around this problem.

@christinklez
Copy link
Collaborator

Thanks so much, @barbarahui! I ran a harvest and it's successfully finished through. Thank you!

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

3 participants