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

Imaginary request produce HTTP 400 error code #1370

Open
jsalort opened this issue Dec 23, 2024 · 3 comments
Open

Imaginary request produce HTTP 400 error code #1370

jsalort opened this issue Dec 23, 2024 · 3 comments

Comments

@jsalort
Copy link

jsalort commented Dec 23, 2024

Describe the bug

Preview generation with imaginary used to work fine for me. I understand that is it not recommanded because it may have bugs with GIF and HEIC. But, on my RPi setup, imagemagick does not have support for HEIC at all. So I configured Preview to use a remote Imaginary instance instead, and it used to work fine.

Now, the requests produce a HTTP 400 error code on the Imaginary instance, and I haven't been able to figure out how to debug this problem. So I don't know if it is a bug in Preview/Memory, a misconfiguration on the Imaginary instance, or an edge case because of a broken file...

Here is an example of the requests on the Imaginary instance:

imaginary_1  | 192.168.112.1 - - [23/Dec/2024 08:50:33] "POST /pipeline?operations=%5B%7B%22operation%22%3A%22fit%22%2C%22params%22%3A%7B%22width%22%3A2048%2C%22height%22%3A2048%2C%22stripmeta%22%3A%22true%22%2C%22type%22%3A%22jpeg%22%2C%22norotation%22%3A%22true%22%2C%22quality%22%3A%2260%22%7D%7D%5D&key=**REDACTED*** HTTP/1.1" 400 168 0.2713

My understanding is that code 400 means malformed request. Did anything change in recent versions of Memories?
This used to work like a charm a few weeks ago.

Thanks,

Steps To Reproduce

No response

Platform

- Browser: Safari and Firefox
- Memories Version: 7.4.1
- Nextcloud Version: 30.0.4
- PHP Version: 8.2

Screenshots

No response

Additional context

  • Any errors in the JS console?

Yes:

Failed to load XImg Error fetching single preview: {"message":"No provider successfully handled the preview generation"} 3 [XImg.vue:95](webpack:///memories/components/frame/XImg.vue)
    loadImage XImg.vue:95
    mounted XImg.vue:50
    VueJS 19
    processDays Timeline.vue:873
    fetchDays Timeline.vue:774
    createState Timeline.vue:370
    refresh Timeline.vue:394
    routeChange Timeline.vue:300
    mounted Timeline.vue:212
    VueJS 11
  • Any errors in the Nextcloud server logs?
    No
@jsalort jsalort added the needs triage To be triaged label Dec 23, 2024
@jsalort
Copy link
Author

jsalort commented Dec 23, 2024

Addition: I have checked that this is not a bug introduced by newer versions of imaginary. I downgraded imaginary to the container of several weeks ago, and the error is the same.
It seems that the URL is somehow malformed now. I did update NC and Memories in the meantime. So, possibly something was changed?

@pulsejet
Copy link
Owner

Memories does not deal with preview generation at all, so this would be an upstream bug (nextcloud/server)

@jsalort
Copy link
Author

jsalort commented Dec 23, 2024

Memories does not deal with preview generation at all, so this would be an upstream bug (nextcloud/server)

Ok. Thanks for you reply. I was confused because the only GUI that allows to switch Imaginary ON/OFF is actually the Memories administration pane.
I have opened a ticket upstream.
nextcloud/server#49963

@pulsejet pulsejet removed the needs triage To be triaged label Jan 4, 2025
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