0

我收到错误,因为OktaOidc 客户端未配置检查您是否使用 createConfig 创建了配置,在描述中我看到错误为:-

WARN     Possible Unhandled Promise Rejection (id: 2):
TypeError: undefined is not an object (evaluating 'window.location.protocol')
p@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:333439:53
http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:349118:73
t@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:349122:12
createConfig$@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:332337:50
tryCatch@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:47881:23
invoke@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:48054:32
tryCatch@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:47881:23
invoke@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:47954:30
http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:47984:19
tryCallTwo@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:49970:9
doResolve@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:50134:25
Promise@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:49993:14
callInvokeWithMethodAndArg@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:47983:33
enqueue@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:47988:157
http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:48005:69
createConfig@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:332316:38
configCreator$@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:468909:85
tryCatch@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:47881:23
invoke@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:48054:32
tryCatch@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:47881:23
invoke@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:47954:30
http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:47984:19
tryCallTwo@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:49970:9
doResolve@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:50134:25
Promise@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:49993:14
callInvokeWithMethodAndArg@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:47983:33
enqueue@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:47988:157
http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:48005:69
configCreator@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:468904:42
http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:468933:20
commitHookEffectListMount@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:42535:38
commitPassiveHookEffects@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:42570:44
invokeGuardedCallbackImpl@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:32091:21
invokeGuardedCallback@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:32185:42
flushPassiveEffectsImpl@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:44914:36
unstable_runWithPriority@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:69422:30
http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:44782:36
workLoop@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:69367:48
flushWork@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:69325:30
_flushCallback@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:68865:24
_callTimer@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:53501:17
callTimers@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:53709:19
__callFunction@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:25771:36
http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:25503:31
__guard@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:25725:15
callFunctionReturnFlushedQueue@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:25502:21

但是,当我使用 Chrome 启用调试器时,不会出现此错误,IOS 和 Android 都会发生此错误。

我已经尝试使用具有相同配置的示例应用程序,并且它运行良好。

对于逐步指导的过程,我点击了这个链接

4

0 回答 0