pubnub / dart

PubNub Dart SDK
Other
27 stars 15 forks source link

pubnub error "Signature does not match" #50

Closed mahmoudsalah37 closed 2 years ago

mahmoudsalah37 commented 3 years ago

when i try code:

 PubNub pubNub = PubNub(
                  defaultKeyset: Keyset(
                    publishKey: 'myPublishKey',
                    subscribeKey: 'mySubscribeKey',
                    secretKey: 'mySecretKey',
                  ),
                );
final createUser = await pubNub.objects.setUUIDMetadata(
                    UuidMetadataInput(
                      name: 'userName',
                      email: 'email@gmail.com',
                    ),
                    uuid: 'uuild');

error:

`Exception has occurred. PubNubException (PubNubException: 403 error: Signature does not match

0 new PubNubException (package:pubnub/src/core/exceptions.dart:9:29)

1 getExceptionFromDefaultResult (package:pubnub/src/dx/_utils/exceptions.dart:41:10)

2 getExceptionFromAny (package:pubnub/src/dx/_utils/exceptions.dart:7:12)

3 _defaultFlow (package:pubnub/src/dx/_utils/default_flow.dart:82:11)

#4 Fiber.run (package:pubnub/src/core/supervisor/fiber.dart:37:20) #5 defaultFlow (package:pubnub/src/dx/_utils/default_flow.dart:27:3) #6 _MyHomePageState.build. (package:flutter_pubnub_chat/main.dart:116:36) )`
alqamahAhmedNasser commented 3 years ago

i have same issue but can't solve it till now

github-actions[bot] commented 2 years ago

@mahmoudsalah37 this issue is addressed in v4.0.0