Hi! I'm trying to connect my db to a web app from the SPIFFS memory. I'm using this SqlLite library. In this process I'm calling the LogIn function listed down in the web page, but whenever I press the button in the web app I'm getting the Exception (0) error. Does anyone know what I am doing wrong here? A little guidance would be tremendous.
LogIn() function
void LogIn() {
//getting credentials from page
String UserCNP = server.arg("Username");
String UserPassword = server.arg("Password");
//storing instruction in buffer
sprintf(buffer, "SELECT CNP, FirstName, LastName from Users WHERE (CNP='%s') AND (Password='%s');", UserCNP.c_str(), UserPassword.c_str());
//executing sql querry
rc = db_exec(db1, buffer);
if (rc != SQLITE_OK)
{
sqlite3_close(db1);
return;
}
//sending sql querry to the client
server.send(200, "application/json", response);
}
Error message
Exception (0):
epc1=0xc1127108 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
ctx: cont
sp: 3fff56f0 end: 3fff5dc0 offset: 01a0
>>>stack>>>
3fff5890: 402016d7 3ffe8c20 000002a0 40205cb0
3fff58a0: 40202574 3fff8254 000002a0 4023a407
3fff58b0: 00000001 3fff8254 3fffaab4 4023a5e3
3fff58c0: 00000002 3fff59d0 00025e2c 40239afb
3fff58d0: 3fffa894 00000200 3fff7dd4 00000200
3fff58e0: 00000001 00000000 00000200 00000200
3fff58f0: 3fff7dd4 00000002 3fffaab4 402349c0
3fff5900: 00000002 00000002 3ffe8c20 402144f9
3fff5910: 3fff5950 00000002 3fff7ee4 00000000
3fff5920: 00000000 00000148 00000148 3fff7d0c
3fff5930: 3fff94a0 00000000 3fff942c 40234cc4
3fff5940: 757e3c9e 0000000a 00000001 40213e3b
3fff5950: 3fffaab4 0000000a 3fff9034 3fff903f
3fff5960: 00000002 00000000 0000000a 00000000
3fff5970: 3fff903e 00000000 40201779 3fff942c
3fff5980: 3fff8c68 00000000 3fff942c 40214200
3fff5990: 3fff903f 00000000 00000000 40216d1a
3fff59a0: 00000000 3fff59d0 00000009 4020adfc
3fff59b0: 00000000 3fff5a00 00000004 00000004
3fff59c0: 00000001 00000001 96ee5e30 40202574
3fff59d0: 96ee5e30 00000004 78c00000 42125bb9
3fff59e0: 3fff8c68 3fff8f34 00000000 00000000
3fff59f0: 3fff8c68 3fff93ac 00000000 40226a86
3fff5a00: 00000000 00000000 00000000 00000000
3fff5a10: 00000001 00000000 00000000 00000000
3fff5a20: 00000000 00000000 00000000 00000000
3fff5a30: 00000000 00000000 00000000 00000000
3fff5a40: 00000000 0000ffff 00000000 00000001
3fff5a50: 00000002 00000000 3f010003 00000000
3fff5a60: 3fff953c 3fff79dc 3fff8f0c 3fff7cdc
3fff5a70: 00000000 00000006 3fff8c2c 00000000
3fff5a80: 3f000002 00000000 00000006 00000004
3fff5a90: 00000007 00000001 3fff93da 40245800
3fff5aa0: 3fff93a4 401043ee 3fff6fdc 402438d0
3fff5ab0: 96ee5e30 00000004 3fff5b40 4023f921
3fff5ac0: 3ffeed35 3fff7974 3fff5af0 3fff62f5
3fff5ad0: 40101be9 3fff27c0 3fff93a4 00000000
3fff5ae0: 3fff953c 3fff79dc 3fff79dc 402282ce
3fff5af0: 00000003 00000000 00000000 3fff93e8
3fff5b00: 3ffe8304 0455c6e8 00000002 00000100
3fff5b10: 7fffffff 3ffe925d 3ffef5ec 00000001
3fff5b20: 00000001 00004a88 3fff93a4 3ffe925d
3fff5b30: 3fff4711 00000001 00000000 00000000
3fff5b40: 00000000 00000000 3fff4712 00000000
3fff5b50: 00000000 00000000 00000000 00000000
3fff5b60: 00000000 00000000 0000000f 00000000
3fff5b70: 40237062 00000001 00000001 3fff4d8c
3fff5b80: 3fff5c10 00000000 00000000 4010053d
3fff5b90: 00000010 00000010 00000000 ffffffff
3fff5ba0: 3fff79dc 3fff46b8 3fff5c10 4022d00a
3fff5bb0: 3fff5c14 00000003 3fff5c50 4023db0b
3fff5bc0: 00000001 00000000 3fff5c50 402381dc
3fff5bd0: 00000033 3fff45cc 3fff5e00 3fff46b8
3fff5be0: 00000053 00000000 3fff79dc 4022d190
3fff5bf0: 3fff5c14 7fffffff 3fff5c5c 00000000
3fff5c00: 00000000 00000000 3fff79dc 402283ff
3fff5c10: 3fff953c 3fff4712 3fff5c9c 402381dc
3fff5c20: 00000003 00000000 3fff45c8 40235854
3fff5c30: 0000000c 3ffe9420 0000001c 4023eda8
3fff5c40: 3ffe9270 00000008 3fff5e00 0455d170
3fff5c50: 3fff46b8 3fff45c8 3fff5e00 40235a27
3fff5c60: 3fff79dc 3fff45cc 3fff8bec 3fff7974
3fff5c70: 6000001c ff000000 3fff5e00 402381dc
3fff5c80: 3fff46b8 3fff45cc 3fff487c 40235b78
3fff5c90: 00000000 00000000 00000000 3fff7974
3fff5ca0: 0000000f 00000003 3fff8bec 0000000f
3fff5cb0: 0000000b 00000724 00000724 4010020c
3fff5cc0: 00000001 00000001 3fff781c 4023e54e
3fff5cd0: 00000000 00000000 3fff781c 402381d2
3fff5ce0: 3fff781c 3fff4610 3fff781c 4023820e
3fff5cf0: 00000000 00000000 00000000 4023dcb4
3fff5d00: 3fff781c 3fff4610 3fff45cc 40238295
3fff5d10: 3fffa354 0000000f 00000006 00000000
3fff5d20: 00000000 3fff5d70 3fff45d0 40236d2c
3fff5d30: 3fff4610 00000001 3fff4da0 3fff45f4
3fff5d40: 00000001 00000000 40237664 0000000f
3fff5d50: 00000000 3fffa5fc 3fff45cc 3fff4d98
3fff5d60: 00000001 3fff45f4 3fff45cc 4023848c
3fff5d70: 40107658 00000000 00001388 00000000
3fff5d80: 00000000 3fffa5fc 3fff795c feefeffe
3fff5d90: 3fffdad0 00000000 3fff4d90 40235fb4
3fff5da0: 3fffdad0 00000000 3fff4d90 4023c440
3fff5db0: feefeffe feefeffe 3fff4da0 4010071c
<<<stack<<<
ets Jan 8 2013,rst cause:2, boot mode:(1,7)
ets Jan 8 2013,rst cause:4, boot mode:(1,7)
wdt reset
P.S.: If I use the instructions from the LogIn function in setup function it works perfectly.