Hello all,
I seem to be having an issue with some of my backend functions being called correctly. Randomly, about once every 100 requests, certain backend functions will throw a 500 error in the network tab for no apparent reason. If I make the request again (via button click or otherwise), it will work. I assumed for a while it was just a bad connect and refreshing the page would fix it, however recently it’s happening more and more, but still randomly. Any help is appreciated! Below are screenshots of the network tab when it happens, and some code snippets.
//Frontend Code: Parcel Analysis Results
import {exportData} from "backend/export/land.jsw"
...
let error = await exportData(export_data, scrub_filters, desired_fields, data_tree_filters, search_parameters, use_city_pricing, use_geo_pricing, generate_offer_price_all_increments, user_id, email, user_plan, preview_mode, remove_duplicate_owners, generate_kml, split_pricing, record_cost)
//Backend Code: Land.jsw
//On 500 error, is not called (tested via console.log and site monitor)
export function exportData(buckets, scrub_filters, desired_fields, data_tree_filters, search_parameters, use_city_pricing, use_geo_pricing, generate_offer_price_all_increments, user_id, email, user_plan, preview_mode, remove_duplicate_owners, generate_kml, split_pricing, record_cost) {
...
}
I will also add that I put the frontend function inside of a try/catch block, and the error that is caught is empty. I don’t know if that helps, but just in case.
Please let me know if there is anything that can be done! I have temporarily added a single recursive retry, which seems to at least hide the issue from the user. I am positive I am doing something wrong, I just don’t know what that is.