- 
                Notifications
    You must be signed in to change notification settings 
- Fork 21
Troubleshooting
When you switch between production and dogfood on the same device. When you initially start the app, it connects to the server and "registers" which creates that token. So if you do that on production and then run the app against dogfood, it can sometime throw this error:
- Error:
ParseHelperProxy, propKey: fetchBlockHeights, error.code: 209, error.message:  Invalid session token
saga.js:381 initLiveQueryTransactionsRequest.fetchBlockHeights, error: Error: Invalid session token
    at handleError (RESTController.js:352)
    at tryCallOne (core.js:37)
    at core.js:123
    at JSTimers.js:298
    at _callTimer (JSTimers.js:152)
    at _callImmediatesPass (JSTimers.js:200)
    at Object.callImmediates (JSTimers.js:473)
    at MessageQueue.__callImmediates (MessageQueue.js:337)
    at MessageQueue.js:135
    at MessageQueue.__guard (MessageQueue.js:314)
- Solution: To fix that particular error, you have to uninstall the app from the device/simulator and reinstall. Go through the setup process, which should create a new session token.
When changing some files, probably eslint will complain about Prop type 'object' is forbidden  react/forbid-prop-types. That's due to the deprecation of Prop.object.
- Error:
✖ eslint --fix:
/Users/patricio/workspace/rws/rwallet/src/pages/wallet/transfer.js
  1218:5  error  Prop type `object` is forbidden  react/forbid-prop-types
- Solution:
We need to change Prop.object for Prop.shape({}). After that, we could get some more warnings regarding internal shape of the object, in that case we need to pay attention to the warning/error message, and which properties we need to add.
I.E.:
- Error code:
    state: PropTypes.object.isRequired,
- 
Error message when git commit:
/Users/patricio/workspace/rws/rwallet/src/pages/wallet/transfer.js
  272:36  error  'navigation.state.params' is missing in props validation            react/prop-types
  272:46  error  'navigation.state.params.coin' is missing in props validation       react/prop-types
  272:52  error  'navigation.state.params.toAddress' is missing in props validation  react/prop-types
- New code / Solution:
    state: PropTypes.shape({
      params: PropTypes.shape({
        coin: PropTypes.string.isRequired,
        toAddress: PropTypes.string.isRequired,
      }).isRequired,
    }).isRequired,
There is a known issue with macs with M1 and Cocoapods.
LoadError - dlopen(/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/ffi-1.15.0/lib/ffi_c.bundle, 0x0009): missing compatible arch in ...
- To solve it, follow this solution: https://stackoverflow.com/questions/67282416/load-error-while-trying-to-install-cocoapods-in-macbook-air-running-osx-11-2-2-w