Hi,
After the FDK version update, we encountered the changes below:
Before every error, log into the catch block like 404, 400, etc…
But now it’s not logging into the catch block, now its sending error in data like
{ status:404, message: "Record not found" }
Below Is my code :
client.db.get(`ticket:${ticket.id}`).then(function (data) {
console.log("data ", data)
}, function (error) {
console.log("error ", error)
})
Anyone can help!!
Thanks !!
Hi @kaustavdm , as discussed in our Dev Rel meeting, this is the issue that we are facing. We started facing this issue couple of days ago.
And one of the important point is, this issue is only faced on the Ticket details page. The behaviour on the Change Details page is as expected.
kaustavdm
(Kaustav Das Modak)
November 4, 2022, 5:24am
4
@Anushka_Ahir Can you share the screenshots of how this behaviour is different between different app locations? IIRC, there was a difference between how the same code behaved in the ticket details page and change details page.
FYI @Asif ^
Hi,
For creating errors currently, I am updating the key that is not in the local store.
We have two locations for app display
Ticket_sidebar
Change_sidebar
But we have different behavior for errors in two locations,
Change_sidebar: we have received an error in the "catch block " which is the expected behavior
Ticket_sidebar: we have received an error in “then block” which is not expected behavior
Let me know if any other information is required to reproduce this.
Thanks !!
system
(system)
Closed
February 2, 2023, 6:26am
6
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.