I have a backend function that works fine in preview but does not seem to be working properly in live. It runs just as expected in preview, and works for the first part in live. It calls an api then uses the results of that api to query a database. If an item is found in the database, it adds something to a seperate database. In live, I get an error saying uncaught promise rejection but I don't get any errors in preview.
Permissions for all databases are set to anyone, databases are synced between sandbox & live.
I can't post the code for security reasons sorry.