-
Notifications
You must be signed in to change notification settings - Fork 135
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
Foreign key mismatch issue in createAgent #386
Comments
We haven't done any testing specifically on Ionic/Cordova. However, there does appear to be some older issues relating to TypeOrm + Ionic. Keep us posted if you find anything relevant. https://stackoverflow.com/questions/46708441/how-do-i-use-typeorm-with-ionic |
The production build process does extra optimizations and code checking, so something is tripping it up. The debug and release builds work, so I'm still able to test. I looked at the link, but all the compiler options were set correctly. Based on the insert statement that typeorm was executing, it appears to be associated with the presentation_verifier_identifier table, maybe how the foreign keys were defined. If someone that knows more about that section could take a look, that would be great. |
I hit this as well (when running with react-native on Android via the APK, even though running on the device with I may have found a solution. (I say "may" because my fix may not be complete because there are other problems that I'm investigating.) I intend to submit some PRs because at least this needs to change:
Random note in my related debugging: the documentation has the connection config with |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I believe this is handled with this PR: #480 |
Closed by #480 |
Bug severity
4
Describe the bug
After performing a production build on an Ionic/Agular app, and then executing createAgent in the app, I receive the following:
query failed: INSERT INTO "temporary_l_verifier_d"("lHash", "dDid") SELECT "lHash", "dDid" FROM "l_verifier_d"
sqlite3_prepare_v2 failure: foreign key mismatch - "temporary_l_verifier_d" referencing "l""
To Reproduce
Steps to reproduce the behaviour:
Observed behaviour
The error is logged to the console, then the database is automatically closed
Expected behaviour
Production build should behave the same as a debug/development build
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: