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.
Any ideas?
As you say it works for the first part in live, then you might not have a catch handler to the promise returned by a then method, which therefore is without handler for when the promise rejects.
You say that you can't post code for security reasons, that is fine. The only way that somebody can help you though is to be able to look at your used code.
The only option you have really is to allow a Wix Admin/Mod from this forum to view your Wix Editor to see it.
You can do that by posting up your Wix Editor URL here and it is ONLY Wix employees who have the permissions to do this for security and safety reasons etc.
Corvid Masters and Forum Ninjas are just like yourself and can't open editors apart from our own.