meveo-org / meveo

meveo core
GNU Affero General Public License v3.0
10 stars 15 forks source link

endpoint throws "not authorized error" #730

Open babardev opened 1 year ago

babardev commented 1 year ago

Issue

Sometime when we pull git repo of any module and then try to access any endpoint of that module. It starts throwing error of "You are not authorized to access this endpoint" on that endpoint call.

Frequency

This does not happen every time but I have noticed this 2 times out of 10. Especially If I have updated parameters of that endpoint.

How I fix this?

I fix this by opening that endpoint on Meveo web and then I uncheck the box of "Secured" and save it and then I check it again and save. It starts working.

Issue

My guess is when we updating parameters of endpoint, it is updating json of that endpoint and putting some restrictions on access.