Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PubNubException: 400 error: No UUID specified #109

Open
YashSavsani opened this issue Mar 9, 2023 · 6 comments
Open

PubNubException: 400 error: No UUID specified #109

YashSavsani opened this issue Mar 9, 2023 · 6 comments

Comments

@YashSavsani
Copy link

YashSavsani commented Mar 9, 2023

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)

@YashSavsani YashSavsani changed the title PubNubException PubNubException: 400 error: No UUID specified PubNubException: 400 error: No UUID specified Mar 9, 2023
@mohitpubnub
Copy link
Contributor

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
Copy link
Author

YashSavsani commented Mar 9, 2023

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
Copy link
Contributor

are commented Mar 9, 2023

Do you know which operation resulted in this error?

@YashSavsani
Copy link
Author

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

@are
Copy link
Contributor

are commented Mar 10, 2023

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
Copy link
Author

Sure, will do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants