In an app in Ionic 3 I have this function validateCupom () which when called sends a GET to, in case it has return 200 (OK), then calls the other function setConfig ().
Belowisthefunctionthatneedstobecalledifthefirstonesucceeds.
Attheend,thecodethatthefunctionSetConfiguration()mustrunintheAPI.
Inthedebugconsoleoftheapplication,itappearsthatthestatusinthevalidateCupomwas200,itmakeschangestodatabasefields,everythingworking,butwhenitarrivestogetintotheConfigurationsetitpopsthiserror.