Error "User Guest does not have access this document" even after giving read permission

when using get_doc() giving error “User Guest does not have access this document” even after giving read permission to Guest user in Role Permission Manager
what can be alternative approach

@Vinay1 is the first one running fine when you used get_list ? which one is causing the error ?
I think it’s the first one indeed.

@bahaou get_list() is running fine but get_doc() is giving the error

@Vinay1 I find it hard to believe . but if you already got the list why you running get_doc again ?

@bahaou same here, is there any other way to get an document form a doctype other than get_doc() or where can we find code for get_doc() in frappe github

@Vinay1 get_list can get all the data you need for , add fields=[“name”,“expiry_time”] or [“*”] to get all the data you need in single call .
second observation: you trying to edit the doctype which you don’t have access to do .
third: what you doing is so dangerous and easy to bypass , I can open and see all the tokens and chose one to use . remove all the guest permissions and try to find another way
and hide your personal info like url when you publish in the forum