The-Commit-Company / frappe-react-sdk

React hooks for Frappe
https://frappe-react.vercel.app
MIT License
107 stars 36 forks source link

Permission error #62

Closed rs-rethik closed 5 months ago

rs-rethik commented 5 months ago

I have encountering while rendering the data using useFrappeGetDocList Error message: {exception: 'frappe.exceptions.PermissionError', exc_type: 'PermissionError', exc: '["Traceback (most recent call last):\n File \"app…ssionError\nfrappe.exceptions.PermissionError\n"]', _server_messages: '["{\"message\": \"User Guest does…nses Record\", \"title\": \"Message\"}"]', _error_message: 'No permission for Expenses Record', …}

nikkothari22 commented 5 months ago

@rs-rethik It looks like you are not logged in on the browser.

Harish-Stanch commented 5 months ago

@rs-rethik It seems like you followed the tut video on youtube, In your doctype below permissions add the guest user and save (only to check if it works). Then add the Login logic and use its authentication to fetch.

rs-rethik commented 5 months ago

@rs-rethik It seems like you followed the tut video on youtube, In your doctype below permissions add the guest user and save (only to check if it works). Then add the Login logic and use its authentication to fetch.

Yeah bro thank you..,I already sorted this issue by adding the Guest role in permission role settings.

rs-rethik commented 5 months ago

This error is because of Permission Error because the request will send as Guest user. For solving this add Guest role in permission role settings.. Hope this helps