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

frappe.get_doc data script AssertionError #218

Open
Saleh-E opened this issue Oct 2, 2024 · 0 comments
Open

frappe.get_doc data script AssertionError #218

Saleh-E opened this issue Oct 2, 2024 · 0 comments

Comments

@Saleh-E
Copy link

Saleh-E commented Oct 2, 2024

now i put in data script
data.blog_info = frappe.get_doc(“blog post”, frappe.form_dict.blog_name or “sdsdsd fdf”)

its working because sdsdsd fdf is found but it fetch data for this doc only so when i do dynamic route and open any post open same page although url is change to serach specifi page but it found it self becaus i fetch by specifi name so i try by this as]
data.blog_info = frappe.get_doc(“blog post”, frappe.form_dict.blog_name)

when save data script save but this notification appear
There was an error while fetching page data AssertionError

and appear this eroor in console

POST https://mysite.com/api/method/run_doc_method [HTTP/1.1 404 NOT FOUND 154ms]

try any doctype same eroor try new way in documentation
data.property_info = frappe.get_doc(“Property”, “<smart_id>”)

same eroor i try every thing although i can fetch list datat but his noo
local i try aws i try with cors i try iam tiried from this and this last step to create my website

please give me solution iam sure is simple as usual of frappe but i don`t knew it

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

1 participant