TypeError: Cannot read property '0' of undefined

Hello,

I have an app to insert new record to Postgres table via the uplink server. the table is getting updated successfully everytime I run the code. However, the client throws the error “An internal error has occurred” and logs show “TypeError: Cannot read property ‘0’ of undefined” error without further details.
The uplink seems to work properly. I have also tried to use several browsers but to no avail.

Does anyone have an idea what this could be?

Hi @mansour.elsayeh - i’ve moved this to bug reports.

Do you have a clone link and a set of instructions to reproduce the error? Then we can investigate further.
The best clone link would just highlight the issue without uplink scripts.

Some code snippets would also help to debug this further.

Hi @stucork

Thanks for your reply, I figured out that an alert with wrong syntax was causing that error.

great - do you have the code snippet that broke it and I can see if there’s a way we could have caught the error and reported it better.