Skip to main content
Question
FYERS API
Asked a question 3 months ago

ERR: logEntryFunc: get_profile : [Errno 13] Permission denied: '/2021-08-30.txt' I'm getting the above error when I call get_positions python method. Though I maintain my daily logs in a file with name <YYYY-MM-DD.log>, the file name in the error message points to a txt file instead of a ".log" file. This is a neusance and I'm worried if this might crash my algo in the future. I'm getting the for all the APIs that I'm calling; ERR: logEntryFunc: get_profile : [Errno 13] Permission denied: '/2021-08-30.txt' ERR: logEntryFunc: positions : [Errno 13] Permission denied: '/2021-08-30.txt' Can some one help?

Join FYERS Community to pick others' brains on Trading/Investing

Was able to resolve this. In FyersModel() method mention the log_path. By default it takes /(root) path of linux. Once you give a proper path there, error vanishes