Skip to content
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

TypeId is not consistent and how to safely remove adapter #1275

Open
Lzyct opened this issue Feb 16, 2024 · 0 comments
Open

TypeId is not consistent and how to safely remove adapter #1275

Lzyct opened this issue Feb 16, 2024 · 0 comments

Comments

@Lzyct
Copy link

Lzyct commented Feb 16, 2024

In our previous app version we registered adapter with typeId = 132. In the new version we completely remove that adapter but we are facing an issue when the user updates the app with the error message Cannot read, unknown typeId: 132. . To fix that we ignore that typeId because there is no function to remove registered adapter. But the new issue comes, if we ignore that typeId we get the error message HiveError: Cannot read, unknown typeId: 132. Did you forget to register an adapter? and when checking the log is directed to this adapter.

image

if you see that typeId is 131 but why Hive detect that adapter as 132

The steps to replicate that issue:

  1. Create an adapter with typeId = 132 called AdapterA
  2. Create an adapter with typeId = 131 called AdapterB
  3. Install the app and use that adapter
  4. Remove the AdapterA
  5. Ignore the typeId 132
  6. Run the project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant