pubnub / dart

PubNub Dart SDK
Other
28 stars 15 forks source link

PubNubException: 400 error: No UUID specified #109

Open YashSavsani opened 1 year ago

YashSavsani commented 1 year ago
PubNubException: PubNubException: 400 error: No UUID specified
#0      new PubNubException (package:pubnub/src/core/exceptions.dart:9)
#1      getExceptionFromDefaultResult (package:pubnub/src/dx/_utils/exceptions.dart:44)
#2      getExceptionFromAny (package:pubnub/src/dx/_utils/exceptions.dart:7)
#3      _defaultFlow (package:pubnub/src/dx/_utils/default_flow.dart:97)
<asynchronous suspension>
#4      Fiber.run (package:pubnub/src/core/supervisor/fiber.dart:36)
<asynchronous suspension>
#5      defaultFlow (package:pubnub/src/dx/_utils/default_flow.dart:26)
<asynchronous suspension>
Screenshot 2023-03-09 at 11 24 58 AM

PubNub Version: ^4.2.1 Dart SDK version: 2.19.2 (stable) Flutter version: 3.7.5 (stable)

mohitpubnub commented 1 year ago

Please make sure that userId at pubnub instance's keyset OR a uuid value at method parameter is provided. When uuid is not provided at method level then it uses keyset's value.

YashSavsani commented 1 year ago

I am passing userId at pubnub instance's keyset.

PubNub(
      networking: NetworkingModule(retryPolicy: RetryPolicy.exponential()),
      defaultKeyset: Keyset(
        subscribeKey: 'PUBNUB_SUBSCRIBE_KEY',
        publishKey: 'PUBNUB_PUBLISH_KEY',
        userId: UserId(pubnubUuid),
      ),
    );
are commented 1 year ago

Do you know which operation resulted in this error?

YashSavsani commented 1 year ago

No we don't know about that. Our error logging mechanism is not giving us that information.

are commented 1 year ago

Could you enable PubNub logging for this? Here is a guide on how to do that: https://www.pubnub.com/docs/sdks/dart/troubleshooting

YashSavsani commented 1 year ago

Sure, will do that.