From 277f9ffda55192b3a7b6f38a0971003436337878 Mon Sep 17 00:00:00 2001 From: Andrey Shovkoplyas Date: Mon, 9 Sep 2019 13:13:00 +0200 Subject: [PATCH] fixed fx macro on ios added troubleshooting.md Signed-off-by: Andrey Shovkoplyas --- TROUBLESHOOTING.md | 26 ++++++++++++++++++++++++++ src/status_im/signing/core.cljs | 4 +++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 TROUBLESHOOTING.md diff --git a/TROUBLESHOOTING.md b/TROUBLESHOOTING.md new file mode 100644 index 0000000000..994c2bf126 --- /dev/null +++ b/TROUBLESHOOTING.md @@ -0,0 +1,26 @@ + +Stacktrace: +``` +13:25:22, Requiring: hi-base32 +13:25:23, Possible Unhandled Promise Rejection (id: 0): +TypeError: undefined is not an object (evaluating 'status_im.utils.handlers.register_handler_fx') +eval code +eval@[native code] +asyncImportScripts$@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:200728:21 +tryCatch@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:26567:23 +invoke@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:26742:32 +tryCatch@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:26567:23 +invoke@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:26643:30 +http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:26653:21 +tryCallOne@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:3725:16 +http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:3826:27 +_callTimer@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:28405:17 +_callImmediatesPass@http://localhost:8081/index.bundle?pla<…> +``` + +Cause: +- stacktrace mentions `register_handler_fx`, +- common cause is when requires have been cleaned up and a require of `status-im.utils.handlers` namespace was removed because it looked like it was unused but was actually used through a fx/defn macro + +Solution: +go through known faulty commit looking for deleted requires diff --git a/src/status_im/signing/core.cljs b/src/status_im/signing/core.cljs index 418c108119..e73abbf0b2 100644 --- a/src/status_im/signing/core.cljs +++ b/src/status_im/signing/core.cljs @@ -13,7 +13,9 @@ [status-im.utils.money :as money] [status-im.utils.security :as security] [status-im.utils.types :as types] - [status-im.utils.utils :as utils])) + [status-im.utils.utils :as utils] + ;;don't remove, used in fx macro + [status-im.utils.handlers :as handlers])) (re-frame/reg-fx :signing/send-transaction-fx