ppngx icon indicating copy to clipboard operation
ppngx copied to clipboard

Can't import Email Text from .eml file

Open ornago opened this issue 1 year ago • 2 comments

Paperless-ngx on Podman is running fine and now I wanted to add the email account. I'd like to get the Email Text imported too but I'm getting an error.

Test Paperless.eml: Error occurred while consuming document Test Paperless.eml: Error while converting email to PDF: Client error '400 Bad Request' for url 'http://localhost:3000/forms/chromium/convert/html'

I think there is nothing listening on port 3000 or it is not activated? In the start.sh the Tika_Gotenberg_Endpoint is configured with http://localhost:3000

ornago avatar Oct 22 '24 13:10 ornago

Weird. I use paperless to log into a POP3 account and pull emails into the system just fine. Is Tika running on your setup?

jdoss avatar Dec 02 '24 15:12 jdoss

Sorry for the long time of no comment. I'm now looking further into it. Of course there is nothing listening on 3000 on my machine. Inside the pod, it is working and logging errors within paperless-gotenberg.

Here is the error from within the podman container running version 7:

{"level":"error","ts":1747800729.3552403,"logger":"api","msg":"validate form data: form field 'paperWidth' is invalid (got '8.27in', resulting to strconv.ParseFloat: parsing \"8.27in\": invalid syntax); form field 'paperHeight' is invalid (got '11.7in', resulting to strconv.ParseFloat: parsing \"11.7in\": invalid syntax); form field 'marginTop' is invalid (got '0.1in', resulting to strconv.ParseFloat: parsing \"0.1in\": invalid syntax); form field 'marginBottom' is invalid (got '0.1in', resulting to strconv.ParseFloat: parsing \"0.1in\": invalid syntax); form field 'marginLeft' is invalid (got '0.1in', resulting to strconv.ParseFloat: parsing \"0.1in\": invalid syntax); form field 'marginRight' is invalid (got '0.1in', resulting to strconv.ParseFloat: parsing \"0.1in\": invalid syntax)","trace":"f19c4029-6de4-4d97-acac-58633af4b24d","remote_ip":"::1","host":"localhost:3000","uri":"/forms/chromium/convert/html","method":"POST","path":"/forms/chromium/convert/html","referer":"","user_agent":"gotenberg-client/0.10.0","status":400,"latency":1696996,"latency_human":"1.696996ms","bytes_in":14037,"bytes_out":720}

I did bump the version of gotenberg podman to 8.20.1 and getting:

{"level":"error","ts":1747800033.2139742,"logger":"api","msg":"code=404, message=Not Found","log_type":"access","trace":"7c4ee794-bea6-4c48-ba08-6b0098301b2e","remote_ip":"::1","host":"localhost:3000","uri":"/forms/chromium/convert/html","method":"POST","path":"/forms/chromium/convert/html","referer":"","user_agent":"gotenberg-client/0.10.0","status":404,"latency":280452,"latency_human":"280.452µs","bytes_in":14005,"bytes_out":9}

Maybe I need to set some additional parameters in the config?

With version 8.7 it seems now running properly. Why version 8.7 you might ask? Found an article showing the update to 8.7.

ornago avatar May 21 '25 04:05 ornago