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

OCR/Scan recipe fails with "Database Error: Recipes could not be added" #479

Open
relder opened this issue Jan 12, 2025 · 1 comment
Open
Assignees
Labels
bug Something isn't working go Pull requests that update Go code
Milestone

Comments

@relder
Copy link

relder commented Jan 12, 2025

Describe the bug
Attempt to use the scan recipe function (from mac safari, iOS safari or mac Chrome) fails with database error. Nothing in the docker log when the problem happens. Lines from the recipya log at the end of this.

I tried the sample Azure python app to see if my endpoint/key were ok with the attempted image and that seems to go OK.

Copy of image attempted https://rob-elder.com/pics/recipe.jpg

To Reproduce
Steps to reproduce the behavior:

  1. Go to scan
  2. Select one or more images
  3. Submit and see "Database error"

Expected behavior
Successful operation or better log as to the problem

Environment
Docker image reaper99/recipya nightly 2a81bf0f5347 18 hours ago

Screenshots
image

Additional context
Log entries after the error:

{"time":"2025-01-12T19:49:27.270132037Z","level":"INFO","msg":"HTTP roundtrip","userID":1,"request":{"method":"POST","uri":"/recipes/add/ocr","referrer":"http://192.168.1.10:8078/recipes/add","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.2 Safari/605.1.15","ipAddress":"192.168.1.90","body":"","form":""},"response":{"code":202,"duration":"343.428084ms","body":"","headers":{"HX-Redirect":"","HX-Trigger":""}}}
{"time":"2025-01-12T19:49:27.496972249Z","level":"WARN","msg":"Failed to execute request","req":"!ERROR:json: unsupported type: func() (io.ReadCloser, error)","status":404}
@relder relder added the bug Something isn't working label Jan 12, 2025
@reaper47 reaper47 added this to Recipya Jan 13, 2025
@reaper47 reaper47 added the go Pull requests that update Go code label Jan 13, 2025
@reaper47 reaper47 moved this to Backlog in Recipya Jan 13, 2025
@reaper47 reaper47 added this to the v1.2.3 milestone Jan 13, 2025
@reaper47 reaper47 moved this from Backlog to In Progress in Recipya Jan 18, 2025
@reaper47 reaper47 self-assigned this Jan 18, 2025
@reaper47
Copy link
Owner

I'm a bit confused because I manage to import the image. The result isn't great so I will work on the parser..
https://github.com/user-attachments/assets/4e7e5e1b-edce-422a-b68e-500b3342b046

Here is my Document Intelligence config:
Image | width=100

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working go Pull requests that update Go code
Projects
Status: In Progress
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants