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

Cryptic deserialization error after accepting invite #364

Closed
achou11 opened this issue May 16, 2024 · 2 comments
Closed

Cryptic deserialization error after accepting invite #364

achou11 opened this issue May 16, 2024 · 2 comments
Labels
bug Something isn't working dev experience

Comments

@achou11
Copy link
Member

achou11 commented May 16, 2024

Have very little idea of the cause of this. Guess is that some API call is returning an error instance, which RPC reflector (or React Native) can't deserialize?

only tried this in development

image
@achou11 achou11 added bug Something isn't working dev experience labels May 16, 2024
@achou11
Copy link
Member Author

achou11 commented May 20, 2024

Context from Gregor:

The error is coming from RPC reflector, so you are not able to see the actual error. If you look at the earlier thread in the SWM I explain to SWM why this is happening because of the metro config. There is a setting in metro config that tells it to not resolve dependencies correctly, so deps are resolved with incorrect versions. I think they have done this because the bundled was maybe trying to bundle the backend code. I would think the solution is to blocklist the backend folder in metro config - see Mapeo-mobile for the config options. The current metro config in comapeo will cause weird bugs if it’s not changed.

Will fix the deserialization part, but not the underlying error

@achou11
Copy link
Member Author

achou11 commented May 20, 2024

Closing this for now since the PR to fix tge deserialization error has been merged. there might be an error at the app level that needs fixing, but will create a separate issue if needed

@achou11 achou11 closed this as completed May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dev experience
Projects
None yet
Development

No branches or pull requests

1 participant