Try ERPNext Buy Support Partners Foundation

Fresh Installation PDF Issue - Invalid Method, Method not found

Hello,
I have deployed a new server with V11 and python3. it seems to work except for pdf button in print preview.

When I press it I get this screen.
image

Console output
Failed to load resource: the server responded with a status of 404 (NOT FOUND)
With the link which fails to be found.
https://IP/api/method/frappe.utils.print_format.download_pdf?doctype=Purchase%20Invoice&name=PI20-000001&format=P%20Invoice&no_letterhead=0&_lang=en

Versions:
ERPNext: v11.1.77 (version-11)
Frappe Framework: v11.1.69 (version-11)

This is something I am getting for the first time so thought I will check with community users if anyone else have faced this issue?

Any advice to solve this will be appreciated.

Thanks.

How did you accomplish the installation?
Is wkhtmltopdf installed? What version?
Did you try: bench migrate-env python3.x

Hello,
I have installed it using easy script and normally everything is done by the script.

I can’t see the full screen, but a similar post with solution is here

Hi and thanks for the response but I think the thread is a different problem of not having the document saved.
It is happening for all the doctypes.

Mine looks like wkhtml2pdf issue.

It was some print setting issue from the custom app.

Solved by making changes to it
Thanks.

hi @fkardame, I encountered the same problem. Could you please explain in detail how did you solve it?

Remove any custom app and try, it should work.