Strange error 401

Hello,

I'm facing a strange Error 401 with one API that used to work correctly. I made some small changes and now it has stopped working. The issue here is that it is returning a Success then an Error401 in the log. When I press "Run & debug" it works well, and when published I'm using a logged user when trying to fecth the collection. I am not facing this issue with any other API. Any clues? This is how the log looks like:

Other
2 replies