You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! While running a detox test I'm getting this message when invoking a native module. The native module does a network fetch request. I'm wondering why this request is failing within the detox build why it runs perfectly fine within a regular build.
Exception 'Attempted to invoke method -[NativeModuleName myMethod:withResolver:withRejecter:] on a module of class NativeModuleName(__detox_sync_URLSessionDelegateProxy)' was thrown while invoking myMethod on target NativeModuleName with params (...
The callstack lists an issue with DetoxSync. What does that do and can I disable that?
@jeroen-van-dijk thanks for the report. It's hard to understand what happened here. It doesn't seems like a Detox error, DetoxSync is on the stack trace just as a wrapper for something else.
I can help to debug it to understand this issue better, if you'll help me with a minimal reproduction for this bug.
Thanks for the response! I guess it is a sync/timing issue while invoking our custom native module. I've created a workaround by just using JS fetch to get some data which works for now.
How can I detect inside the react native codebase if the app is running a detox test? Is there any kind of flag I can look at? I've found isTesting inside react-native Platform however it remains to false while running my detox test
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back.
Thank you for your contributions!
For more information on bots in this repository, read this discussion.
What happened?
Hi! While running a detox test I'm getting this message when invoking a native module. The native module does a network fetch request. I'm wondering why this request is failing within the detox build why it runs perfectly fine within a regular build.
The callstack lists an issue with DetoxSync. What does that do and can I disable that?
Was it tested on latest Detox?
Did your test throw out a timeout?
In what environment did this happen?
Detox version: 20.7.1
React Native version: 0.69.6
Has Fabric (React Native's new rendering system) enabled: (yes/no)
Node version:
Device model:
iOS version: 16.1
macOS version:
Xcode version:
Test-runner (select one): jest / other
The text was updated successfully, but these errors were encountered: