Quickblox.sdk GetBaseSession() method throws "nonce is required" error

84 Views Asked by At

I have used quickblox chat sdk in my old xamarin.forms project. I know that quickblox is not supporting xamarin now, but old sdk was working fine till now, but from last week I am getting this error.

Code:

var baseSesionResult = await Provider.QbProvider.GetBaseSession();

When I am calling QbProvider.GetBaseSession() it throws below error:

CONTENT: {"errors":{"base":["nonce is required"]}}

I have tried different methods available in sdk but none is working. Any one know how to fix this error?

1

There are 1 best solutions below

4
Nikolay Zolotarov On

This is Nikolay from QuickBlox support.

Please add "" symbols around nonce and timestamp values and check if the issue is resolved. The same information is mentioned in our documentation: https://docs.quickblox.com/reference/authentication#create-session

We released a patch for authentication that improves validation according to our documentation. Hence, the issue is caused by incorrect implementation in the application that is why the server has started showing errors for submitted requests.