I am facing this issue: after deploying, it occurs on the server, but it works perfectly fine locally.

This would happen if there are problems with the repository you’re passing. You should be able to find more information in a debug log file. See here for more info:

If that doesn’t help, you’d need to provide more details on the type of repository you’re using, what the code for instantiating ad passing it to LL looks like etc.