Postman working regularly but monitors failing

I have a code test that is passing as usual in the connections.

But it is failing the when run by monitors. The top image is when it is run in the collections. The second one is when the monitor runs it. When the monitor is running it, it produces the same result but Postman says it is failing.