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
Uncaught (in promise) Error: Instance of 'ClientNotReadyException'
at Object.throw_ [as throw] (errors.dart:288:49)
at wordpress_client_base.WordpressClient.new.getInterface (wordpress_client_base.dart:422:7)
at get posts [as posts] (wordpress_client_base.dart:160:31)
at blog_section.dart:69:39
at Generator.next ()
at runBody (async_patch.dart:84:54)
at Object._async [as async] (async_patch.dart:123:5)
at blog_section.dart:62:32
at ink_well._InkResponseState.new.handleTap (ink_well.dart:1154:21)
at tap.TapGestureRecognizer.new.invokeCallback (recognizer.dart:275:24)
at tap.TapGestureRecognizer.new.handleTapUp (tap.dart:654:11)
at [_checkUp] (tap.dart:311:5)
at tap.TapGestureRecognizer.new.handlePrimaryPointer (tap.dart:244:7)
at tap.TapGestureRecognizer.new.handleEvent (recognizer.dart:630:9)
at [_dispatch] (pointer_router.dart:98:12)
at pointer_router.dart:143:9
at LinkedMap.new.forEach (linked_hash_map.dart:21:13)
at [_dispatchEventToRoutes] (pointer_router.dart:141:17)
at pointer_router.PointerRouter.new.route (pointer_router.dart:127:7)
at binding$5.WidgetsFlutterBinding.new.handleEvent (binding.dart:465:19)
at binding$5.WidgetsFlutterBinding.new.dispatchEvent (binding.dart:445:14)
at binding$5.WidgetsFlutterBinding.new.dispatchEvent (binding.dart:331:11)
at [_handlePointerEventImmediately] (binding.dart:400:7)
at binding$5.WidgetsFlutterBinding.new.handlePointerEvent (binding.dart:363:5)
at [_flushPointerEventQueue] (binding.dart:320:7)
at [_handlePointerDataPacket] (binding.dart:293:9)
at Object.invoke1 (platform_dispatcher.dart:1251:13)
at _engine.EnginePlatformDispatcher.new.invokeOnPointerDataPacket (platform_dispatcher.dart:269:5)
at [_onPointerData] (pointer_binding.dart:168:39)
at pointer_binding.dart:791:20
at pointer_binding.dart:720:14
at loggedHandler (pointer_binding.dart:317:16)
at Object._checkAndCall (operations.dart:367:37)
at Object.dcall (operations.dart:372:39)
at ret (js_allow_interop_patch.dart:17:11)
The text was updated successfully, but these errors were encountered:
Hi,
have you called the initialize() method after creating the WordpressClient instance?
Alternatively, you could try the WordpressClient.initialize(...) factory constructor for the same purpose.
If this is still not solved, even after the above solution, could you please share the initialize code snippet?
EDIT: I just came to realize that the documentation missed out the initialization part! I have updated the docs. Could you please check?
And thanks a lot for bringing this into my attention!
Uncaught (in promise) Error: Instance of 'ClientNotReadyException'
at Object.throw_ [as throw] (errors.dart:288:49)
at wordpress_client_base.WordpressClient.new.getInterface (wordpress_client_base.dart:422:7)
at get posts [as posts] (wordpress_client_base.dart:160:31)
at blog_section.dart:69:39
at Generator.next ()
at runBody (async_patch.dart:84:54)
at Object._async [as async] (async_patch.dart:123:5)
at blog_section.dart:62:32
at ink_well._InkResponseState.new.handleTap (ink_well.dart:1154:21)
at tap.TapGestureRecognizer.new.invokeCallback (recognizer.dart:275:24)
at tap.TapGestureRecognizer.new.handleTapUp (tap.dart:654:11)
at [_checkUp] (tap.dart:311:5)
at tap.TapGestureRecognizer.new.handlePrimaryPointer (tap.dart:244:7)
at tap.TapGestureRecognizer.new.handleEvent (recognizer.dart:630:9)
at [_dispatch] (pointer_router.dart:98:12)
at pointer_router.dart:143:9
at LinkedMap.new.forEach (linked_hash_map.dart:21:13)
at [_dispatchEventToRoutes] (pointer_router.dart:141:17)
at pointer_router.PointerRouter.new.route (pointer_router.dart:127:7)
at binding$5.WidgetsFlutterBinding.new.handleEvent (binding.dart:465:19)
at binding$5.WidgetsFlutterBinding.new.dispatchEvent (binding.dart:445:14)
at binding$5.WidgetsFlutterBinding.new.dispatchEvent (binding.dart:331:11)
at [_handlePointerEventImmediately] (binding.dart:400:7)
at binding$5.WidgetsFlutterBinding.new.handlePointerEvent (binding.dart:363:5)
at [_flushPointerEventQueue] (binding.dart:320:7)
at [_handlePointerDataPacket] (binding.dart:293:9)
at Object.invoke1 (platform_dispatcher.dart:1251:13)
at _engine.EnginePlatformDispatcher.new.invokeOnPointerDataPacket (platform_dispatcher.dart:269:5)
at [_onPointerData] (pointer_binding.dart:168:39)
at pointer_binding.dart:791:20
at pointer_binding.dart:720:14
at loggedHandler (pointer_binding.dart:317:16)
at Object._checkAndCall (operations.dart:367:37)
at Object.dcall (operations.dart:372:39)
at ret (js_allow_interop_patch.dart:17:11)
The text was updated successfully, but these errors were encountered: