-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: isTableExists: No available connection for database: with Capacitor 4 and SQLite ver: 4.2.2 #344
Comments
@Sampath-Lokuge try with the latest version of @capacitor-community/sqlite. I am away from any computer till end of the month. |
Still the same error with 4.2.0. Do I need to change my code? i.e. cannot use the below code with this new version? I have used Same above error. package.json
code
|
@Sampath-Lokuge i do not see in your code where you call isTableExists. On which platform the error is returned? All of them ? |
I have used this Do I need to change that to Can I have doc for such changes? This is a native Android app. |
P.S. I have not used |
P.S. 2 Sorry, we cannot use this Any thoughts, please? Why is that error with 4.2.0? |
@Sampath-Lokuge it is isTable to be used with this.sqliteDbConnection |
Yes |
P.S. I use this CLI: |
Any feedback here, please? |
That error shows when it executes this line:
|
Please see this video too: https://youtu.be/8oWWLAYzxkE Any clue, please? |
@Sampath-Lokuge are you using @capacitor-community/http if it is the case change it with the http plugin @capacitor/http. This may solve the issue. At least it did for one developer otherwise you will have to share your code when i am back and i will have a look |
No. I use this
|
I have sent you the source code. Please confirm it. Thanks! |
I have sent you a Git invitation for the source code. Please see that. Thanks! |
@Sampath-Lokuge i do not have receive any invitation |
@Sampath-Lokuge can you close the issue if everything is solved on your side |
Your this feedback gave me a hint. #338 (comment) i.e. I have opened 2 connections for old db and new db. So it must be a |
Hi,
sqlite-configuration.service.ts
Error:
package.json
The above code works fine with 3+ versions. But now it gives the above error with 4+ versions. Please let me know the issue.
I have tried with 4.2.2 too. Same error.
Ionic/Angular native app.
Is this "@capacitor/core": "^4.3.0", issue? i.e. I use that version.
I didn't add any new code with the 4+ version. Do I need to do that?
Thanks!
The text was updated successfully, but these errors were encountered: