flipper icon indicating copy to clipboard operation
flipper copied to clipboard

Question: FS_ACCESS error when trying to exchange certificates with Pocophone F1 (and android emulators)

Open Vatousiadis opened this issue 4 months ago • 0 comments

Hello all and thanks for any help in advance,

The last few days I'm facing the following issue (connectivity log from flipper): Failed to exchange certificate,Error: Certificate request self-signature ok subject=C=US, ST=CA, L=Menlo Park, O=Flipper, CN=com.app.myapp Unable to load number from C:\path to....flipper\certs\server.srl 20200000:error:06800096:asn1 encoding routines:a2i_ASN1_INTEGER:short line:crypto\asn1\f_int.c:138:

This results in flipper being able to use react-native console and debugger but not other pluggins (like the very crucial Network pluggin in my case)

I have uninstalled and re-installed openssl and it is properly found in doctor image

I have downloaded and now using the latest flipper v0.239.0

OS: Windows 10 Device: Pocophone F1, but the same happens in any android emulator

I've looked into other/similar issues of the repo, but was not able to find a solution to my issue

Vatousiadis avatar Feb 15 '24 15:02 Vatousiadis

I'm getting an Uncaught TypeError: Promise rejection tracking hook was not registered from hermesInternalEnablePromiseRejectionTracker. I need to investigate a little, so I'm going to convert the PR to draft.

ecreeth avatar Oct 18 '23 17:10 ecreeth

This part of the code has a couple moving parts, so maybe I can help explain what's going on here:

The code in promise/index.js in Hermes are calling setPromiseRejectionTrackingHook, which performs a different operation from enablePromiseRejectionTracker.

  • setPromiseRejectionTrackingHook is entirely internal to Hermes - it's only got the one callsite in InternalBytecode. It doesn't actually enable promise rejection tracking; it only sets up a single pointer inside the Runtime to point to the enable closure (https://github.com/facebook/hermes/blob/main/lib/VM/JSLib/HermesInternal.cpp#L712)

  • enablePromiseRejectionTracker is called (in development mode) by RN or any other integrator with any options they choose.

The reason you're getting a TypeError is that Hermes expects the hook to be set, because it has no way of knowing whether a caller wants to enable it.

The doc-comments on those two functions here might also help: https://github.com/facebook/hermes/blob/main/lib/VM/JSLib/HermesInternal.cpp#L697

avp avatar Oct 18 '23 23:10 avp