Comments (61)
You should do QBChatService.getInstance().destroy() when do logout
from quickblox-android-sdk.
Yes I have also same kind of problem. Though I am working 2.0 lib , but when I logout current user and also sign out chat service ,its successfully logout, but after that when I login through some other user then all is fine, but on chatactivity gives previous user id as a sender id and also wrong alignment. I cannot able to understand why this kind of problem occur ?
from quickblox-android-sdk.
Thanks , it's really works. Fantastic single line code .
from quickblox-android-sdk.
Ok, I have integrated 2.0 in my code. The login only succes with the users i created on website admin pannel but when i try to login with the users created within the app give "base Unexpected signature" error. no other explanation? what does this behavior means?
from quickblox-android-sdk.
Did you replace the app id, key and secret in a sample?
from quickblox-android-sdk.
yes, off-course. Ok I had to use extra signin call back before login with chat , but I wonder why then it was working for website created users from quickblox admin panel.
from quickblox-android-sdk.
Yes, it works
post your code how you sign up a new user and how you create a session with him
from quickblox-android-sdk.
from quickblox-android-sdk.
That's how i achieved.
from quickblox-android-sdk.
Hi,
I am using QuickBlox for chat in my mobile app. I Register a user in app, it also gets registered in quickblox but i am getting following exception while creating session:
Error : base Unexpected signature.
Surprisingly, for some cases it works perfectly, but more than 50% of the cases it give be Unexpected Signature.
This is flow:
- Initially we register user on quickblox on registration to our app.
- When i go to second activity i try to create a session and this is when i get the exception.
from quickblox-android-sdk.
can you post REST logs from the session creation request?
Open log cat - there should be request/response logs
from quickblox-android-sdk.
Ok. Give me 5 mins.
from quickblox-android-sdk.
This is the request for creating the first session. User is not registered yet.
=== REQUEST ==== 3b296308-4fb6-4e5a-ab0f-489191fe0e55 ===
REQUEST
POST https://api.quickblox.com/push_tokens.json
HEADERS
QuickBlox-REST-API-Version=0.1.1
QB-SDK=Android 0.0.0
PARAMETERS
push_token[environment]=development
push_token[client_identification_sequence]=APA91bFE1B3ZEp1tfPk-TgXYYnYVJJXvZUy_3STlGpxFVujhplkbGW5n9GtXrIIeRftjERdkPMWnAns04ytQhAdycneQuaHrRbXe5iTyjEgaPWHA9T0Y5g8otJTyvqNDi9OWCyHVql23DTQGbHYRKXr4H02oT6WQbA
device[platform]=android
device[udid]=353217051333576
INLINE
POST https://api.quickblox.com/push_tokens.json?push_token[environment]=development&push_token[client_identification_sequence]=APA91bFE1B3ZEp1tfPk-TgXYYnYVJJXvZUy_3STlGpxFVujhplkbGW5n9GtXrIIeRftjERdkPMWnAns04ytQhAdycneQuaHrRbXe5iTyjEgaPWHA9T0Y5g8otJTyvqNDi9OWCyHVql23DTQGbHYRKXr4H02oT6WQbA&device[platform]=android&device[udid]=353217051333576
RESPONSE 3b296308-4fb6-4e5a-ab0f-489191fe0e55 ***
STATUS : 401
HEADERS
Access-Control-Allow-Origin=*
Cache-Control=no-cache
Connection=keep-alive
Content-Type=application/json; charset=utf-8
Date=Fri, 28 Nov 2014 13:29:10 GMT
QuickBlox-REST-API-Version=0.1.1
Server=nginx/1.0.15
Status=401 Unauthorized
Transfer-Encoding=chunked
X-Rack-Cache=invalidate, pass
X-Request-Id=92516435683f23f80d633693de9275fd
X-Runtime=0.004102
X-UA-Compatible=IE=Edge,chrome=1
BODY
'{"errors":["Token is required"]}'
RESPONSE 41903e5a-ee1a-4d46-acde-755547cca34c ***
STATUS : 422
HEADERS
Access-Control-Allow-Origin=*
Cache-Control=no-cache
Connection=keep-alive
Content-Type=application/json; charset=utf-8
Date=Fri, 28 Nov 2014 13:35:55 GMT
QB-Token-ExpirationDate=2014-11-28 15:35:48 UTC
QuickBlox-REST-API-Version=0.1.1
Server=nginx/1.0.15
Status=422 Unprocessable Entity
Transfer-Encoding=chunked
X-Rack-Cache=invalidate, pass
X-Request-Id=4ee2030e8d1089ef9d7bbd26006d07b9
X-Runtime=0.101481
X-UA-Compatible=IE=Edge,chrome=1
BODY
'{"errors":{"base":["Forbidden. Need user."]}}'
RESPONSE 37e2bbd0-5ad0-4be2-9833-efc882c17046 ***
STATUS : 422
HEADERS
Access-Control-Allow-Origin=*
Cache-Control=no-cache
Connection=keep-alive
Content-Type=application/json; charset=utf-8
Date=Fri, 28 Nov 2014 13:35:56 GMT
QuickBlox-REST-API-Version=0.1.1
Server=nginx/1.0.15
Status=422 Unprocessable Entity
Transfer-Encoding=chunked
X-Rack-Cache=invalidate, pass
X-Request-Id=43b8f25da726dd23df8e6e823fd4168b
X-Runtime=0.007207
X-UA-Compatible=IE=Edge,chrome=1
BODY
'{"errors":{"base":["Unexpected signature"]}}'
from quickblox-android-sdk.
The 2nd and 3rd Response is what I am getting while getting a session from QuickBlox
from quickblox-android-sdk.
I don't see the create session request here - only something related to pushes
from quickblox-android-sdk.
Ok. Can you please check this ?
REQUEST
POST https://api.quickblox.com/session.json
HEADERS
QuickBlox-REST-API-Version=0.1.1
QB-SDK=Android 0.0.0
PARAMETERS
application_id=15282
auth_key=cP-XKhYMaLdv6ex
nonce=-735568607
timestamp=1417182145
user[login]=addaaa
user[password]=add@123vsvgshhd
signature=0e1d6d85dcab343623e0cba101c24f0230d0152f
INLINE
POST https://api.quickblox.com/session.json?application_id=15282&auth_key=cP-XKhYMaLdv6ex&nonce=-735568607×tamp=1417182145&user[login]=addaaa&user[password]=add%40123vsvgshhd&signature=0e1d6d85dcab343623e0cba101c24f0230d0152f
RESPONSE 19fc12a4-79d2-46f8-8831-e8a91043760b ***
STATUS : 422
HEADERS
Access-Control-Allow-Origin=*
Cache-Control=no-cache
Connection=keep-alive
Content-Type=application/json; charset=utf-8
Date=Fri, 28 Nov 2014 13:42:28 GMT
QuickBlox-REST-API-Version=0.1.1
Server=nginx/1.0.15
Status=422 Unprocessable Entity
Transfer-Encoding=chunked
X-Rack-Cache=invalidate, pass
X-Request-Id=238bca97fcb35aa7ef8253de0f7be7f0
X-Runtime=0.006811
X-UA-Compatible=IE=Edge,chrome=1
BODY
'{"errors":{"base":["Unexpected signature"]}}'
from quickblox-android-sdk.
Hello,
Can you please check the above logs ?
Thanks.
from quickblox-android-sdk.
The only one possible reason is that something wring with these data: user[login]=addaaa
user[password]=add@123vsvgshhd
Is it correct?
from quickblox-android-sdk.
@omamapk Apparently you can not use a persons email as login(Username). So if you have no other option then you can try removing the special characters in the user's email before signup
EXAMPLE:
final QBUser qbuser = new QBUser();
user.setLogin( (Global.UserInfo[Global_USER_EMAIL]).replace("@","").replace(".","") );
.....plus your other stuff
from quickblox-android-sdk.
@Knexis Highly appreciated :). That is the solution.
from quickblox-android-sdk.
Hi following is my code
QBChatService.setDebugEnabled(true);
QBSettings.getInstance().fastConfigInit(APP_ID, AUTH_KEY, AUTH_SECRET);
if (!QBChatService.isInitialized()) {
QBChatService.init(this);
}
chatService = QBChatService.getInstance();
// create QB user
//
final QBUser user = new QBUser();
user.setLogin(USER_LOGIN);
user.setPassword(USER_PASSWORD);
Log.d("running0","d");
QBAuth.createSession(user, new QBEntityCallbackImpl<QBSession>(){
@Override
public void onSuccess(QBSession session, Bundle args) {
// save current user
//
Log.d("running1","d");
user.setId(session.getUserId());
Log.d("running2","d");
((ApplicationSingleton)getApplication()).setCurrentUser(user);
Log.d("running3","d");
// login to Chat
//
loginToChat(user);
}
@Override
public void onError(List<String> errors) {
AlertDialog.Builder dialog = new AlertDialog.Builder(SplashActivity.this);
dialog.setMessage("create session errors: " + errors).create().show();
}
});
It always giving error (create session errors: [base Unexpected signature]).
That means it always going in onError method, and session is not creating.
Please Help to solve this.
Thanks
from quickblox-android-sdk.
Hi,
I am writing a very short code to sign up new user in quickblox.
but im always getting unauthorized error before even signing up.
these are the error logs im getting
07-28 03:37:08.199 26162-26162/com.example.prernasinghal.mychat D/dalvikvm﹕ GC_FOR_ALLOC freed 467K, 13% free 3766K/4308K, paused 51ms, total 53ms
07-28 03:37:08.379 26162-26162/com.example.prernasinghal.mychat D/QBASDK﹕ =========================================================
=== REQUEST ==== 7ed7a181-b73f-407f-bbc9-2b08218d1550 ===
REQUEST
POST https://api.quickblox.com/session.json
HEADERS
QuickBlox-REST-API-Version=0.1.1
QB-SDK=Android 2.2.6
PARAMETERS
application_id=26170
auth_key=z5vp2TRXNYwknbB
nonce=-954995324
timestamp=1438069028
user[login]=abc
user[password]=abcd1234
signature=f1fdb1127ed75dfb0f25735e8911e2b692bafe71
INLINE
POST https://api.quickblox.com/session.json?application_id=26170&auth_key=z5vp2TRXNYwknbB&nonce=-954995324×tamp=1438069028&user[login]=abc&user[password]=abcd1234&signature=f1fdb1127ed75dfb0f25735e8911e2b692bafe71
07-28 03:37:15.669 26162-27257/com.example.prernasinghal.mychat W/DefaultRequestDirector﹕ Authentication error: Unable to respond to any of these challenges: {}
07-28 03:37:15.699 26162-26162/com.example.prernasinghal.mychat D/QBASDK﹕ *********************************************************
*** RESPONSE ** 7ed7a181-b73f-407f-bbc9-2b08218d1550 ***
STATUS : 401
HEADERS
Access-Control-Allow-Origin=
Cache-Control=no-cache
Connection=keep-alive
Content-Type=application/json; charset=utf-8
Date=Tue, 28 Jul 2015 07:37:15 GMT
QuickBlox-REST-API-Version=0.1.1
Server=nginx/1.0.15
Status=401 Unauthorized
Transfer-Encoding=chunked
X-Rack-Cache=invalidate, pass
X-Request-Id=088421e61b01888ab53387454f95450a
X-Runtime=0.015606
X-UA-Compatible=IE=Edge,chrome=1
BODY
'{"errors":["Unauthorized"]}'
can anybody please check
from quickblox-android-sdk.
Unauthorized means that user login or password are wrong
from quickblox-android-sdk.
Unexpected signature - can you post your logs
from quickblox-android-sdk.
Getting this Unexpected Signature
=== REQUEST ==== 1044ce91-586d-4fc2-8408-f831d691c12c ===
REQUEST
POST https://api.quickblox.com/session.json
HEADERS
QuickBlox-REST-API-Version=0.1.1
QB-SDK=Android 2.2.6
QB-Token=558a9d0cfef7a0e9e5b3379e7b4a302be71c418b
PARAMETERS
application_id=26190
auth_key=UYt2dhFkrgUw5zc
nonce=917186932
timestamp=1439279316
user[login]=[email protected]
user[email]=[email protected]
signature=5f5eeb048ecab10b94096d479e71d1497f0038c9
INLINE
POST https://api.quickblox.com/session.json?application_id=26190&auth_key=UYt2dhFkrgUw5zc&nonce=917186932×tamp=1439279316&user[login]=anurag.basu%40gmail.com&user[email]=anurag.basu%40gmail.com&signature=5f5eeb048ecab10b94096d479e71d1497f0038c9
08-11 13:18:37.620 18157-18157/tutor.helloclass.com.tutorhelloclass D/QBASDK﹕ *********************************************************
*** RESPONSE ** 1044ce91-586d-4fc2-8408-f831d691c12c ***
STATUS : 422
HEADERS
Access-Control-Allow-Origin=
Cache-Control=no-cache
Connection=keep-alive
Content-Length=44
Content-Type=application/json; charset=utf-8
Date=Tue, 11 Aug 2015 07:48:57 GMT
QuickBlox-REST-API-Version=0.1.1
Server=nginx/1.0.15
Status=422 Unprocessable Entity
X-Rack-Cache=invalidate, pass
X-Request-Id=d659327a15cfa3d9add40b4dbc8075de
X-Runtime=0.007074
X-UA-Compatible=IE=Edge,chrome=1
BODY
'{"errors":{"base":["Unexpected signature"]}}'
from quickblox-android-sdk.
Hi I am also facing the same error "Unexpected Signature"
can u please help
Thanks
from quickblox-android-sdk.
Can some one explain the actual flow to use the API
I am following these steps
- QBSettings.getInstance().fastConfigInit(Consts.QB_APP_ID, Consts.QB_AUTH_KEY, Consts.QB_AUTH_SECRET);
- QBChatService.init(ctx);
- QBAuth.createSession(new QBEntityCallbackImpl() {});
- on success of creating session QBUsers.signIn(user, new QBEntityCallbackImpl() {})
- finall login in to chat QBAuth.createSession(qbUser, new QBEntityCallbackImpl() {});
everything happening fine except the final step its saying "Unexpected Signature" as response
are my steps are correct or am doing any mistake
can some one help.
Thanks
from quickblox-android-sdk.
Hi
I am using the quickblox for video calling and face the problem.
java.util.ConcurrentModificationException
E/AndroidRuntime: at java.util.HashMap$HashIterator.nextEntry(HashMap.java:787)
E/AndroidRuntime: at java.util.HashMap$KeyIterator.next(HashMap.java:814)
E/AndroidRuntime: at com.quickblox.videochat.webrtc.QBRTCSession$1.run(QBRTCSession.java:223)
E/AndroidRuntime: at com.quickblox.videochat.webrtc.LooperExecutor.execute(LooperExecutor.java:132)
E/AndroidRuntime: at com.quickblox.videochat.webrtc.QBRTCSession.closeSession(QBRTCSession.java:209)
E/AndroidRuntime: at com.quickblox.videochat.webrtc.QBRTCSession.closeSessionIfNeeded(QBRTCSession.java:187)
E/AndroidRuntime: at com.quickblox.videochat.webrtc.QBRTCSession.access$600(QBRTCSession.java:42)
E/AndroidRuntime: at com.quickblox.videochat.webrtc.QBRTCSession$16.run(QBRTCSession.java:988)
E/AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739)
E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
E/AndroidRuntime: at android.os.Looper.loop(Looper.java:145)
E/AndroidRuntime: at com.quickblox.videochat.webrtc.LooperExecutor.run(LooperExecutor.java:61)
can any body help me?
from quickblox-android-sdk.
Hi,
i am using the video call in android and face the problem with camera service :
and after one time successful call the camera service not available:
E/ExtMediaPlayer-JNI: QCMediaPlayer could not be located....
E/MediaPlayer-JNI: QCMediaPlayer mediaplayer NOT present
A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x550004 in tid 22633 (JDWP)
from quickblox-android-sdk.
Unexpected signature is fixed on our last releases
For other issues please open separate tickets
from quickblox-android-sdk.
Hi we are using the quickblox web rtc video calling and after two to three times of call the camera service is stuck, and we cannot share the video with our partner.
E/VideoCapturerAndroid: startCapture failed
E/VideoCapturerAndroid: java.lang.RuntimeException: Fail to connect to camera service
E/VideoCapturerAndroid: at android.hardware.Camera.(Camera.java:545)
E/VideoCapturerAndroid: at android.hardware.Camera.open(Camera.java:385)
E/VideoCapturerAndroid: at org.webrtc.VideoCapturerAndroid.startCaptureOnCameraThread(VideoCapturerAndroid.java:491)
E/VideoCapturerAndroid: at org.webrtc.VideoCapturerAndroid.access$800(VideoCapturerAndroid.java:75)
E/VideoCapturerAndroid: at org.webrtc.VideoCapturerAndroid$4.run(VideoCapturerAndroid.java:477)
E/VideoCapturerAndroid: at android.os.Handler.handleCallback(Handler.java:739)
E/VideoCapturerAndroid: at android.os.Handler.dispatchMessage(Handler.java:95)
E/VideoCapturerAndroid: at android.os.Looper.loop(Looper.java:145)
E/VideoCapturerAndroid: at org.webrtc.VideoCapturerAndroid$CameraThread.run(VideoCapturerAndroid.java:444)
from quickblox-android-sdk.
On more thing related to We have not implemented AppRTCAudioManager receiver in our activity and on Application close it raise the exception.
MainActivity has leaked IntentReceiver com.quickblox.videochat.webrtc.AppRTCAudioManager$1@a43b7df that was originally registered here. Are you missing a call to unregisterReceiver()?
E/ActivityThread: android.app.IntentReceiverLeaked: Activity MainActivity has leaked IntentReceiver com.quickblox.videochat.webrtc.AppRTCAudioManager$1@a43b7df that was originally registered here. Are you missing a call to unregisterReceiver()?
E/ActivityThread: at android.app.LoadedApk$ReceiverDispatcher.(LoadedApk.java:960)
E/ActivityThread: at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:761)
E/ActivityThread: at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:2015)
E/ActivityThread: at android.app.ContextImpl.registerReceiver(ContextImpl.java:1995)
E/ActivityThread: at android.app.ContextImpl.registerReceiver(ContextImpl.java:1989)
E/ActivityThread: at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:503)
E/ActivityThread: at com.quickblox.videochat.webrtc.AppRTCAudioManager.registerForWiredHeadsetIntentBroadcast(AppRTCAudioManager.java:260)
E/ActivityThread: at com.quickblox.videochat.webrtc.AppRTCAudioManager.init(AppRTCAudioManager.java:148)
E/ActivityThread: at com.quickblox.videochat.webrtc.QBMediaStreamManager.initAudioManager(QBMediaStreamManager.java:118)
E/ActivityThread: at com.quickblox.videochat.webrtc.QBMediaStreamManager.initLocalMediaStream(QBMediaStreamManager.java:104)
E/ActivityThread: at com.quickblox.videochat.webrtc.QBRTCSession.onLocalStreamNeedAdd(QBRTCSession.java:1017)
E/ActivityThread: at com.quickblox.videochat.webrtc.QBPeerChannel.setLocalMediaStream(QBPeerChannel.java:140)
E/ActivityThread: at com.quickblox.videochat.webrtc.QBPeerChannel.access$700(QBPeerChannel.java:44)
E/ActivityThread: at com.quickblox.videochat.webrtc.QBPeerChannel$1.run(QBPeerChannel.java:127)
E/ActivityThread: at android.os.Handler.handleCallback(Handler.java:739)
E/ActivityThread: at android.os.Handler.dispatchMessage(Handler.java:95)
E/ActivityThread: at android.os.Looper.loop(Looper.java:145)
E/ActivityThread: at com.quickblox.videochat.webrtc.LooperExecutor.run(LooperExecutor.java:61)
E/ActivityThread: Activity MainActivity has leaked IntentReceiver com.quickblox.videochat.webrtc.AppRTCAudioManager$1@cba6702 that was originally registered here. Are you missing a call to unregisterReceiver()?
Can anybody help us?
from quickblox-android-sdk.
{
errors: {
base: [1]
0: "Unexpected signature"
}-
}
facing this problem when running your session api on google rest client only for creating simple session
sending this in header
QuickBlox-REST-API-Version: 0.1.0
Content-Type: application/json
sending this in parameter
{"application_id": "xxxxx", "auth_key": "xxxxxxxxx", "timestamp": "1446184721", "nonce": "112234", "signature": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}
from quickblox-android-sdk.
I am getting an [Unauthorized] error while session create.Below is the code i am using for session creation.pls help resolve this. I have checked my login credentials many times and they are correct.Am I missing something in the code?
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
QBSettings.getInstance().fastConfigInit("33168", "rGyHMmJzDOAg7gX", "FA9BkmzzyxBn7EJ");
// QBSettings.getInstance().fastConfigInit("33183", "eyB-TXfKgGWQ-zm", "ZYgHNLWzm8sZGCw");
///new code for quickblox
if (!QBChatService.isInitialized()) {
QBChatService.init(getApplicationContext());
}
chatService = QBChatService.getInstance();
final QBUser user = new QBUser();
// user.setLogin("8141993");
// user.setPassword("quickblox_mgmt9");
user.setLogin("8139849");
user.setPassword("quickblox2016");
Log.d("running0", "d");
QBAuth.createSession(user, new QBEntityCallbackImpl<QBSession>() {
@Override
public void onSuccess(QBSession session, Bundle params) {
Log.d("running1", "d");
user.setId(session.getUserId());
Log.d("running2", "d");
//((ApplicationSingleton) getApplication()).setCurrentUser(user);
// login to Chat
//
loginToChat(user);
Log.d("running3", "d");
}
@Override
public void onError(List<String> errors) {
// errors
AlertDialog.Builder dialog = new AlertDialog.Builder(ContactActivity.this);
dialog.setMessage("create session errors: " + errors).create().show();
}
});
}
private void loginToChat(final QBUser user) {
chatService.login(user, new QBEntityCallbackImpl() {
@Override
public void onSuccess() {
// Start sending presences
//
try {
chatService.startAutoSendPresence(AUTO_PRESENCE_INTERVAL_IN_SECONDS);
} catch (SmackException.NotLoggedInException e) {
e.printStackTrace();
}
}
@Override
public void onError(List errors) {
AlertDialog.Builder dialog = new AlertDialog.Builder(ContactActivity.this);
dialog.setMessage("chat login errors: " + errors).create().show();
}
});
}
}
prerna88 , i could see that you faced same error..how did you resolve it.
soulfly, pls help ..my login credentials are all good.
Its very urgent...
from quickblox-android-sdk.
after adding user email the error is not coming but an new error - {"errors":{"base":["Unexpected signature"]}}' coming instead. i am using the latest version of the jar files.
Pls help.
from quickblox-android-sdk.
=== REQUEST ==== 8c95e2f5-c7ac-402f-8939-f575487ce017 ===
REQUEST
POST https://api.quickblox.com/session.json
HEADERS
QuickBlox-REST-API-Version=0.1.1
QB-SDK=Android 2.3.1
PARAMETERS
application_id=33365
auth_key=pOEx87ZHxMkU7kD
nonce=-577359397
timestamp=1452343257
user[login]=webrtc_user1
user[password]=x6Bt0VDy5
signature=683b3f8381a179967b5ffe21a1dc134661a87814
INLINE
POST https://api.quickblox.com/session.json?application_id=33365&auth_key=pOEx87ZHxMkU7kD&nonce=-577359397×tamp=1452343257&user[login]=webrtc_user1&user[password]=x6Bt0VDy5&signature=683b3f8381a179967b5ffe21a1dc134661a87814
01-09 18:10:59.281 12821-15398/com.quickblox.sample.videochatwebrtcnew W/DefaultRequestDirector﹕ Authentication error: Unable to respond to any of these challenges: {}
01-09 18:10:59.296 12821-12821/com.quickblox.sample.videochatwebrtcnew D/QBASDK﹕ *********************************************************
*** RESPONSE ** 8c95e2f5-c7ac-402f-8939-f575487ce017 ***
STATUS : 401
HEADERS
Access-Control-Allow-Origin=
Cache-Control=no-cache
Connection=keep-alive
Content-Length=27
Content-Type=application/json; charset=utf-8
Date=Sat, 09 Jan 2016 12:41:00 GMT
QB-Token-ExpirationDate=2016-01-09 14:41:00 UTC
QuickBlox-REST-API-Version=0.1.1
Server=nginx/1.6.2
Status=401 Unauthorized
X-Rack-Cache=invalidate, pass
X-Request-Id=732329c58d08a3230c5958f9f39f36b7
X-Runtime=0.025951
X-UA-Compatible=IE=Edge,chrome=1
BODY
'{"errors":["Unauthorized"]}'
Error when Login, check Test Users login and password
I am using the sample webrtc-new application.. Please Help
from quickblox-android-sdk.
@Vikreddevil can you mail me your app credentials, will check the user on our side
from quickblox-android-sdk.
02-08 14:45:22.557 20839-20839/com.chat D/QBASDK: =========================================================
02-08 14:45:22.557 20839-20839/com.chat D/QBASDK: === REQUEST ==== 78fd3551-4371-486b-a4ab-65ce25b2c49b ===
02-08 14:45:22.557 20839-20839/com.chat D/QBASDK: REQUEST
02-08 14:45:22.557 20839-20839/com.chat D/QBASDK: POST https://api.quickblox.com/login.json
02-08 14:45:22.557 20839-20839/com.chat D/QBASDK: HEADERS
02-08 14:45:22.557 20839-20839/com.chat D/QBASDK: QuickBlox-REST-API-Version=0.1.1
02-08 14:45:22.557 20839-20839/com.chat D/QBASDK: QB-SDK=Android 2.4
02-08 14:45:22.557 20839-20839/com.chat D/QBASDK: QB-Token=87c1076becd0b44d7e74afb325afcc26b86e5a43
02-08 14:45:22.557 20839-20839/com.chat D/QBASDK: PARAMETERS
02-08 14:45:22.557 20839-20839/com.chat D/QBASDK: login=arfat07
02-08 14:45:22.557 20839-20839/com.chat D/QBASDK: password=12345678
02-08 14:45:22.557 20839-20839/com.chat D/QBASDK: INLINE
02-08 14:45:22.557 20839-20839/com.chat D/QBASDK: POST https://api.quickblox.com/login.json?login=arfat07&password=12345678
02-08 14:45:23.467 20839-20839/com.chat D/QBASDK: *********************************************************
02-08 14:45:23.467 20839-20839/com.chat D/QBASDK: *** RESPONSE ** 78fd3551-4371-486b-a4ab-65ce25b2c49b ***
02-08 14:45:23.467 20839-20839/com.chat D/QBASDK: STATUS : 202
02-08 14:45:23.467 20839-20839/com.chat D/QBASDK: HEADERS
02-08 14:45:23.467 20839-20839/com.chat D/QBASDK: Access-Control-Allow-Origin=
02-08 14:45:23.467 20839-20839/com.chat D/QBASDK: Cache-Control=no-cache
02-08 14:45:23.467 20839-20839/com.chat D/QBASDK: Connection=keep-alive
02-08 14:45:23.467 20839-20839/com.chat D/QBASDK: Content-Length=386
02-08 14:45:23.467 20839-20839/com.chat D/QBASDK: Content-Type=application/json; charset=utf-8
02-08 14:45:23.467 20839-20839/com.chat D/QBASDK: Date=Mon, 08 Feb 2016 09:44:55 GMT
02-08 14:45:23.467 20839-20839/com.chat D/QBASDK: QB-Token-ExpirationDate=2016-02-08 11:43:59 UTC
02-08 14:45:23.467 20839-20839/com.chat D/QBASDK: QuickBlox-REST-API-Version=0.1.1
02-08 14:45:23.467 20839-20839/com.chat D/QBASDK: Server=nginx/1.6.2
02-08 14:45:23.467 20839-20839/com.chat D/QBASDK: Status=202 Accepted
02-08 14:45:23.467 20839-20839/com.chat D/QBASDK: X-Rack-Cache=invalidate, pass
02-08 14:45:23.467 20839-20839/com.chat D/QBASDK: X-Request-Id=31919627c7702f0d5ddaba24a0e0d92d
02-08 14:45:23.467 20839-20839/com.chat D/QBASDK: X-Runtime=0.021897
02-08 14:45:23.467 20839-20839/com.chat D/QBASDK: X-UA-Compatible=IE=Edge,chrome=1
02-08 14:45:23.467 20839-20839/com.chat D/QBASDK: BODY
02-08 14:45:23.467 20839-20839/com.chat D/QBASDK: '{"user":{"id":8676974,"owner_id":40056,"full_name":null,"email":"[email protected]","login":"arfat07","phone":null,"website":null,"created_at":"2016-01-26T05:23:10Z","updated_at":"2016-01-26T05:23:10Z","last_request_at":"2016-02-08T09:44:55Z","external_user_id":null,"facebook_id":null,"twitter_id":null,"blob_id":null,"custom_data":null,"twitter_digits_id":null,"user_tags":null}}'
02-08 14:45:23.537 20839-20839/com.chat I/Timeline: Timeline: Activity_launch_request id:com.chat time:845133072
02-08 14:45:23.617 20839-20839/com.chat I/dalvikvm: Could not find method android.app.Notification$Builder.setLocalOnly, referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zza
02-08 14:45:23.617 20839-20839/com.chat W/dalvikvm: VFY: unable to resolve virtual method 203: Landroid/app/Notification$Builder;.setLocalOnly (Z)Landroid/app/Notification$Builder;
02-08 14:45:23.617 20839-20839/com.chat D/dalvikvm: VFY: replacing opcode 0x6e at 0x00c2
02-08 14:45:23.617 20839-20839/com.chat I/dalvikvm: Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zzh
02-08 14:45:23.627 20839-20839/com.chat W/dalvikvm: VFY: unable to resolve virtual method 461: Landroid/content/pm/PackageManager;.getPackageInstaller ()Landroid/content/pm/PackageInstaller;
02-08 14:45:23.627 20839-20839/com.chat D/dalvikvm: VFY: replacing opcode 0x6e at 0x000b
02-08 14:45:23.647 20839-20839/com.chat D/QBASDK: =========================================================
02-08 14:45:23.647 20839-20839/com.chat D/QBASDK: === REQUEST ==== 50a32e84-63f2-4403-8efe-ccc21d11cc56 ===
02-08 14:45:23.647 20839-20839/com.chat D/QBASDK: REQUEST
02-08 14:45:23.647 20839-20839/com.chat D/QBASDK: GET https://api.quickblox.com/chat/Dialog.json
02-08 14:45:23.647 20839-20839/com.chat D/QBASDK: HEADERS
02-08 14:45:23.647 20839-20839/com.chat D/QBASDK: QuickBlox-REST-API-Version=0.1.1
02-08 14:45:23.647 20839-20839/com.chat D/QBASDK: QB-SDK=Android 2.4
02-08 14:45:23.647 20839-20839/com.chat D/QBASDK: QB-Token=87c1076becd0b44d7e74afb325afcc26b86e5a43
02-08 14:45:23.647 20839-20839/com.chat D/QBASDK: PARAMETERS
02-08 14:45:23.647 20839-20839/com.chat D/QBASDK: limit=100
02-08 14:45:23.647 20839-20839/com.chat D/QBASDK: INLINE
02-08 14:45:23.647 20839-20839/com.chat D/QBASDK: GET https://api.quickblox.com/chat/Dialog.json?limit=100
02-08 14:45:23.727 20839-20839/com.chat I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@41cc5208 time:845133262
02-08 14:45:24.757 20839-20839/com.chat D/QBASDK: *********************************************************
02-08 14:45:24.757 20839-20839/com.chat D/QBASDK: *** RESPONSE ** 50a32e84-63f2-4403-8efe-ccc21d11cc56 ***
02-08 14:45:24.757 20839-20839/com.chat D/QBASDK: STATUS : 200
02-08 14:45:24.757 20839-20839/com.chat D/QBASDK: HEADERS
02-08 14:45:24.757 20839-20839/com.chat D/QBASDK: Access-Control-Allow-Origin=
02-08 14:45:24.757 20839-20839/com.chat D/QBASDK: Cache-Control=max-age=0, private, must-revalidate
02-08 14:45:24.757 20839-20839/com.chat D/QBASDK: Connection=keep-alive
02-08 14:45:24.757 20839-20839/com.chat D/QBASDK: Content-Length=2018
02-08 14:45:24.757 20839-20839/com.chat D/QBASDK: Content-Type=application/json; charset=utf-8
02-08 14:45:24.757 20839-20839/com.chat D/QBASDK: Date=Mon, 08 Feb 2016 09:44:56 GMT
02-08 14:45:24.757 20839-20839/com.chat D/QBASDK: ETag="ca91b88556b0a35f62aee76518067c7c"
02-08 14:45:24.757 20839-20839/com.chat D/QBASDK: QB-Token-ExpirationDate=2016-02-08 11:44:55 UTC
02-08 14:45:24.757 20839-20839/com.chat D/QBASDK: QuickBlox-REST-API-Version=0.1.1
02-08 14:45:24.757 20839-20839/com.chat D/QBASDK: Server=nginx/1.6.2
02-08 14:45:24.757 20839-20839/com.chat D/QBASDK: Status=200 OK
02-08 14:45:24.757 20839-20839/com.chat D/QBASDK: Strict-Transport-Security=max-age=15768000;
02-08 14:45:24.757 20839-20839/com.chat D/QBASDK: X-Rack-Cache=miss
02-08 14:45:24.757 20839-20839/com.chat D/QBASDK: X-Request-Id=fb0eaf9150fdd74a9a948f4565b3c4ba
02-08 14:45:24.757 20839-20839/com.chat D/QBASDK: X-Runtime=0.032371
02-08 14:45:24.757 20839-20839/com.chat D/QBASDK: X-UA-Compatible=IE=Edge,chrome=1
02-08 14:45:24.757 20839-20839/com.chat D/QBASDK: BODY
02-08 14:45:24.757 20839-20839/com.chat D/QBASDK: '{"total_entries":5,"skip":0,"limit":100,"items":[{"_id":"56b70c25a28f9a5cd9000097","created_at":"2016-02-07T09:19:33Z","last_message":"hiii��","last_message_date_sent":1454850625,"last_message_user_id":8676974,"name":"usman93, ayoub63","occupants_ids":[7527679,7639109,8676974],"photo":null,"silent_ids":[],"type":2,"updated_at":"2016-02-07T13:10:25Z","user_id":8676974,"xmpp_room_jid":"[email protected]","unread_messages_count":0},{"_id":"56b70b3ca0eb47854d000100","created_at":"2016-02-07T09:15:40Z","last_message":"hi","last_message_date_sent":1454836546,"last_message_user_id":8676974,"name":"usman93, ayoub63, arfat07","occupants_ids":[7527679,7639109,8676974],"photo":null,"silent_ids":[],"type":2,"updated_at":"2016-02-07T09:15:46Z","user_id":8676974,"xmpp_room_jid":"[email protected]","unread_messages_count":0},{"_id":"56b58ac3a28f9aa1b3000080","created_at":"2016-02-06T05:55:15Z","last_message":"hi","last_message_date_sent":1454738119,"last_message_user_id":8676974,"name":"basit91","occupants_ids":[8676974,8912406],"photo":null,"silent_ids":[],"type":3,"updated_at":"2016-02-06T05:55:19Z","user_id":8676974,"xmpp_room_jid":null,"unread_messages_count":0},{"_id":"56b07e94a28f9ac12a0008be","created_at":"2016-02-02T10:01:57Z","last_message":"hi","last_message_date_sent":1454738069,"last_message_user_id":8676974,"name":"usman93, ayoub63, arfat07","occupants_ids":[7527679,7639109,8676974],"photo":null,"silent_ids":[],"type":2,"updated_at":"2016-02-06T05:54:29Z","user_id":7527679,"xmpp_room_jid":"[email protected]","unread_messages_count":0},{"_id":"56b306fba28f9a25e0000129","created_at":"2016-02-04T08:08:27Z","last_message":"hi","last_message_date_sent":1454723966,"last_message_user_id":7639109,"name":"ayoub63","occupants_ids":[7639109,8676974],"photo":null,"silent_ids":[],"type":3,"updated_at":"2016-02-06T01:59:26Z","user_id":7639109,"xmpp_room_jid":null,"unread_messages_count":0}]}'
02-08 14:45:24.837 20839-20839/com.chat D/QBASDK: =========================================================
02-08 14:45:24.837 20839-20839/com.chat D/QBASDK: === REQUEST ==== 9a29d59f-86ee-4de0-8239-6e2aa79bd0ea ===
02-08 14:45:24.837 20839-20839/com.chat D/QBASDK: REQUEST
02-08 14:45:24.837 20839-20839/com.chat D/QBASDK: GET https://api.quickblox.com/users.json
02-08 14:45:24.837 20839-20839/com.chat D/QBASDK: HEADERS
02-08 14:45:24.837 20839-20839/com.chat D/QBASDK: QuickBlox-REST-API-Version=0.1.1
02-08 14:45:24.837 20839-20839/com.chat D/QBASDK: QB-SDK=Android 2.4
02-08 14:45:24.837 20839-20839/com.chat D/QBASDK: QB-Token=87c1076becd0b44d7e74afb325afcc26b86e5a43
02-08 14:45:24.837 20839-20839/com.chat D/QBASDK: PARAMETERS
02-08 14:45:24.837 20839-20839/com.chat D/QBASDK: page=1
02-08 14:45:24.837 20839-20839/com.chat D/QBASDK: per_page=13
02-08 14:45:24.837 20839-20839/com.chat D/QBASDK: filter[]=number id in 7527679,7639109,8676974,7527679,7639109,8676974,8676974,8912406,7527679,7639109,8676974,7639109,8676974
02-08 14:45:24.837 20839-20839/com.chat D/QBASDK: INLINE
02-08 14:45:24.837 20839-20839/com.chat D/QBASDK: GET https://api.quickblox.com/users.json?page=1&per_page=13&filter[]=number+id+in+7527679%2C7639109%2C8676974%2C7527679%2C7639109%2C8676974%2C8676974%2C8912406%2C7527679%2C7639109%2C8676974%2C7639109%2C8676974
02-08 14:45:26.037 20839-20839/com.chat D/QBASDK: *********************************************************
02-08 14:45:26.037 20839-20839/com.chat D/QBASDK: *** RESPONSE ** 9a29d59f-86ee-4de0-8239-6e2aa79bd0ea ***
02-08 14:45:26.037 20839-20839/com.chat D/QBASDK: STATUS : 200
02-08 14:45:26.037 20839-20839/com.chat D/QBASDK: HEADERS
02-08 14:45:26.037 20839-20839/com.chat D/QBASDK: Access-Control-Allow-Origin=
02-08 14:45:26.037 20839-20839/com.chat D/QBASDK: Cache-Control=max-age=0, private, must-revalidate
02-08 14:45:26.037 20839-20839/com.chat D/QBASDK: Connection=keep-alive
02-08 14:45:26.037 20839-20839/com.chat D/QBASDK: Content-Length=1604
02-08 14:45:26.037 20839-20839/com.chat D/QBASDK: Content-Type=application/json; charset=utf-8
02-08 14:45:26.037 20839-20839/com.chat D/QBASDK: Date=Mon, 08 Feb 2016 09:44:58 GMT
02-08 14:45:26.037 20839-20839/com.chat D/QBASDK: ETag="60b0ad273b0d945eea7fb6843841acf4"
02-08 14:45:26.037 20839-20839/com.chat D/QBASDK: QB-Token-ExpirationDate=2016-02-08 11:44:55 UTC
02-08 14:45:26.037 20839-20839/com.chat D/QBASDK: QuickBlox-REST-API-Version=0.1.1
02-08 14:45:26.037 20839-20839/com.chat D/QBASDK: Server=nginx/1.6.2
02-08 14:45:26.037 20839-20839/com.chat D/QBASDK: Status=200 OK
02-08 14:45:26.037 20839-20839/com.chat D/QBASDK: Strict-Transport-Security=max-age=15768000;
02-08 14:45:26.037 20839-20839/com.chat D/QBASDK: X-Rack-Cache=miss
02-08 14:45:26.037 20839-20839/com.chat D/QBASDK: X-Request-Id=6c147c30ffdbec6d40e5258e6ec290fd
02-08 14:45:26.037 20839-20839/com.chat D/QBASDK: X-Runtime=0.065002
02-08 14:45:26.037 20839-20839/com.chat D/QBASDK: X-UA-Compatible=IE=Edge,chrome=1
02-08 14:45:26.037 20839-20839/com.chat D/QBASDK: BODY
02-08 14:45:26.037 20839-20839/com.chat D/QBASDK: '{"current_page":1,"per_page":13,"total_entries":4,"items":[{"user":{"id":7527679,"owner_id":40056,"full_name":"Usman","email":"[email protected]","login":"usman93","phone":null,"website":null,"created_at":"2015-12-11T15:53:39Z","updated_at":"2015-12-11T15:53:39Z","last_request_at":"2016-02-06T00:52:41Z","external_user_id":null,"facebook_id":null,"twitter_id":null,"blob_id":null,"custom_data":null,"twitter_digits_id":null,"user_tags":null}},{"user":{"id":7639109,"owner_id":40056,"full_name":null,"email":"[email protected]","login":"ayoub63","phone":null,"website":null,"created_at":"2015-12-16T06:13:37Z","updated_at":"2015-12-16T06:13:37Z","last_request_at":"2016-02-06T02:01:04Z","external_user_id":null,"facebook_id":null,"twitter_id":null,"blob_id":null,"custom_data":null,"twitter_digits_id":null,"user_tags":null}},{"user":{"id":8676974,"owner_id":40056,"full_name":null,"email":"[email protected]","login":"arfat07","phone":null,"website":null,"created_at":"2016-01-26T05:23:10Z","updated_at":"2016-01-26T05:23:10Z","last_request_at":"2016-02-08T09:44:55Z","external_user_id":null,"facebook_id":null,"twitter_id":null,"blob_id":null,"custom_data":null,"twitter_digits_id":null,"user_tags":null}},{"user":{"id":8912406,"owner_id":40056,"full_name":null,"email":"[email protected]","login":"basit91","phone":null,"website":null,"created_at":"2016-02-04T18:59:20Z","updated_at":"2016-02-04T18:59:20Z","last_request_at":"2016-02-08T09:21:03Z","external_user_id":null,"facebook_id":null,"twitter_id":null,"blob_id":null,"custom_data":null,"twitter_digits_id":null,"user_tags":null}}]}'
02-08 14:46:54.967 20839-20839/com.chat I/Timeline: Timeline: Activity_launch_request id:com.chat time:845224509
02-08 14:46:55.037 20839-20839/com.chat D/QBASDK: =========================================================
02-08 14:46:55.037 20839-20839/com.chat D/QBASDK: === REQUEST ==== bc074d67-65ba-4725-b4e7-9c0194f81ed7 ===
02-08 14:46:55.037 20839-20839/com.chat D/QBASDK: REQUEST
02-08 14:46:55.037 20839-20839/com.chat D/QBASDK: GET https://api.quickblox.com/users.json
02-08 14:46:55.037 20839-20839/com.chat D/QBASDK: HEADERS
02-08 14:46:55.037 20839-20839/com.chat D/QBASDK: QuickBlox-REST-API-Version=0.1.1
02-08 14:46:55.037 20839-20839/com.chat D/QBASDK: QB-SDK=Android 2.4
02-08 14:46:55.037 20839-20839/com.chat D/QBASDK: QB-Token=87c1076becd0b44d7e74afb325afcc26b86e5a43
02-08 14:46:55.037 20839-20839/com.chat D/QBASDK: PARAMETERS
02-08 14:46:55.037 20839-20839/com.chat D/QBASDK: page=1
02-08 14:46:55.037 20839-20839/com.chat D/QBASDK: per_page=10
02-08 14:46:55.037 20839-20839/com.chat D/QBASDK: INLINE
02-08 14:46:55.037 20839-20839/com.chat D/QBASDK: GET https://api.quickblox.com/users.json?page=1&per_page=10
02-08 14:46:55.117 20839-20839/com.chat I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@41fe38d0 time:845224659
02-08 14:46:55.987 20839-23459/com.chat D/dalvikvm: GC_FOR_ALLOC freed 1331K, 15% free 14404K/16876K, paused 34ms, total 36ms
02-08 14:46:56.587 20839-20839/com.chat D/QBASDK: *********************************************************
02-08 14:46:56.587 20839-20839/com.chat D/QBASDK: *** RESPONSE ** bc074d67-65ba-4725-b4e7-9c0194f81ed7 ***
02-08 14:46:56.587 20839-20839/com.chat D/QBASDK: STATUS : 200
02-08 14:46:56.587 20839-20839/com.chat D/QBASDK: HEADERS
02-08 14:46:56.587 20839-20839/com.chat D/QBASDK: Access-Control-Allow-Origin=
02-08 14:46:56.587 20839-20839/com.chat D/QBASDK: Cache-Control=max-age=0, private, must-revalidate
02-08 14:46:56.587 20839-20839/com.chat D/QBASDK: Connection=keep-alive
02-08 14:46:56.587 20839-20839/com.chat D/QBASDK: Content-Length=3945
02-08 14:46:56.587 20839-20839/com.chat D/QBASDK: Content-Type=application/json; charset=utf-8
02-08 14:46:56.587 20839-20839/com.chat D/QBASDK: Date=Mon, 08 Feb 2016 09:46:28 GMT
02-08 14:46:56.587 20839-20839/com.chat D/QBASDK: ETag="d40460089655fd19c0334dcc1a2224ef"
02-08 14:46:56.587 20839-20839/com.chat D/QBASDK: QB-Token-ExpirationDate=2016-02-08 11:44:55 UTC
02-08 14:46:56.587 20839-20839/com.chat D/QBASDK: QuickBlox-REST-API-Version=0.1.1
02-08 14:46:56.587 20839-20839/com.chat D/QBASDK: Server=nginx/1.6.2
02-08 14:46:56.587 20839-20839/com.chat D/QBASDK: Status=200 OK
02-08 14:46:56.587 20839-20839/com.chat D/QBASDK: Strict-Transport-Security=max-age=15768000;
02-08 14:46:56.587 20839-20839/com.chat D/QBASDK: X-Rack-Cache=miss
02-08 14:46:56.587 20839-20839/com.chat D/QBASDK: X-Request-Id=c209665e368ea36c05daef413f75424a
02-08 14:46:56.587 20839-20839/com.chat D/QBASDK: X-Runtime=0.074707
02-08 14:46:56.587 20839-20839/com.chat D/QBASDK: X-UA-Compatible=IE=Edge,chrome=1
02-08 14:46:56.587 20839-20839/com.chat D/QBASDK: BODY
02-08 14:46:56.587 20839-20839/com.chat D/QBASDK: '{"current_page":1,"per_page":10,"total_entries":20,"items":[{"user":{"id":7140820,"owner_id":40056,"full_name":"Usman Ayoub Baig","email":"[email protected]","login":"110422518200322184591_17781","phone":null,"website":null,"created_at":"2015-11-27T09:34:03Z","updated_at":"2016-02-07T09:18:05Z","last_request_at":"2016-02-07T09:18:05Z","external_user_id":null,"facebook_id":null,"twitter_id":null,"blob_id":null,"custom_data":null,"twitter_digits_id":null,"user_tags":null}},{"user":{"id":7527679,"owner_id":40056,"full_name":"Usman","email":"[email protected]","login":"usman93","phone":null,"website":null,"created_at":"2015-12-11T15:53:39Z","updated_at":"2015-12-11T15:53:39Z","last_request_at":"2016-02-06T00:52:41Z","external_user_id":null,"facebook_id":null,"twitter_id":null,"blob_id":null,"custom_data":null,"twitter_digits_id":null,"user_tags":null}},{"user":{"id":7639109,"owner_id":40056,"full_name":null,"email":"[email protected]","login":"ayoub63","phone":null,"website":null,"created_at":"2015-12-16T06:13:37Z","updated_at":"2015-12-16T06:13:37Z","last_request_at":"2016-02-06T02:01:04Z","external_user_id":null,"facebook_id":null,"twitter_id":null,"blob_id":null,"custom_data":null,"twitter_digits_id":null,"user_tags":null}},{"user":{"id":8676974,"owner_id":40056,"full_name":null,"email":"[email protected]","login":"arfat07","phone":null,"website":null,"created_at":"2016-01-26T05:23:10Z","updated_at":"2016-01-26T05:23:10Z","last_request_at":"2016-02-08T09:44:55Z","external_user_id":null,"facebook_id":null,"twitter_id":null,"blob_id":null,"custom_data":null,"twitter_digits_id":null,"user_tags":null}},{"user":{"id":8891464,"owner_id":40056,"full_name":"Usman Ayoub","email":"[email protected]","login":null,"phone":null,"website":null,"created_at":"2016-02-03T21:40:33Z","updated_at":"2016-02-03T21:40:33Z","last_request_at":"2016-02-03T21:40:34Z","external_user_id":null,"facebook_id":null,"twitter_id":null,"blob_id":null,"custom_data":null,"twitter_digits_id":null,"user_tags":null}},{"user":{"id":8894340,"owner_id":40056,"full_name":"usman","email":"[email protected]","login":null,"phone":null,"website":null,"created_at":"2016-02-04T00:52:03Z","updated_at":"2016-02-04T00:52:03Z","last_request_at":"2016-02-04T00:52:04Z","external_user_id":null,"facebook_id":null,"twitter_id":null,"blob_id":null,"custom_data":null,"twitter_digits_id":null,"user_tags":null}},{"user":{"id":8894676,"owner_id":40056,"full_name":"usman","email":"[email protected]","login":null,"phone":null,"website":null,"created_at":"2016-02-04T01:16:32Z","updated_at":"2016-02-04T01:16:32Z","last_request_at":"2016-02-04T01:16:33Z","external_user_id":null,"facebook_id":null,"twitter_id":null,"blob_id":null,"custom_data":null,"twitter_digits_id":null,"user_tags":null}},{"user":{"id":8895680,"owner_id":40056,"full_name":"usman04","email":"[email protected]","login":null,"phone":null,"website":null,"created_at":"2016-02-04T02:32:28Z","updated_at":"2016-02-04T02:32:28Z","last_request_at":"2016-02-04T02:32:29Z","external_user_id":null,"facebook_id":null,"twitter_id":null,"blob_id":null,"custom_data":null,"twitter_digits_id":null,"user_tags":null}},{"user":{"id":8896528,"owner_id":40056,"full_name":"ahsan03","email":"[email protected]","login":null,"phone":null,"website":null,"created_at":"2016-02-04T03:3
02-08 14:47:40.887 20839-20839/com.chat D/AndroidRuntime: Shutting down VM
02-08 14:47:40.887 20839-20839/com.chat W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x415f1d58)
02-08 14:47:40.897 20839-20839/com.chat E/AndroidRuntime: FATAL EXCEPTION: main
02-08 14:47:40.897 20839-20839/com.chat E/AndroidRuntime: Process: com.chat, PID: 20839
02-08 14:47:40.897 20839-20839/com.chat E/AndroidRuntime: java.lang.NullPointerException
02-08 14:47:40.897 20839-20839/com.chat E/AndroidRuntime: at com.chat.ui.views.activities.NewDialogActivity$1.onClick(NewDialogActivity.java:72)
02-08 14:47:40.897 20839-20839/com.chat E/AndroidRuntime: at android.view.View.performClick(View.java:4438)
02-08 14:47:40.897 20839-20839/com.chat E/AndroidRuntime: at android.view.View$PerformClick.run(View.java:18439)
02-08 14:47:40.897 20839-20839/com.chat E/AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:733)
02-08 14:47:40.897 20839-20839/com.chat E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
02-08 14:47:40.897 20839-20839/com.chat E/AndroidRuntime: at android.os.Looper.loop(Looper.java:136)
02-08 14:47:40.897 20839-20839/com.chat E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5095)
02-08 14:47:40.897 20839-20839/com.chat E/AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method)
02-08 14:47:40.897 20839-20839/com.chat E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:515)
02-08 14:47:40.897 20839-20839/com.chat E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
02-08 14:47:40.897 20839-20839/com.chat E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
02-08 14:47:40.897 20839-20839/com.chat E/AndroidRuntime: at dalvik.system.NativeStart.main(Native Method)
from quickblox-android-sdk.
Whenever i click on create chat button m getting this exception , how to resolve it ??? help me
n when i sign up it shows '{"errors":{"base":["Forbidden. Need user."]}}'
from quickblox-android-sdk.
I have answer for the Forbidden error.
After around 8 hrs struggle got the corrent answer and work like charm.
Here is the link.
http://stackoverflow.com/questions/33947701/trying-to-create-a-quickblox-group-chat-dialog-get-error-when-using-rest-api-to?answertab=active#tab-top
from quickblox-android-sdk.
I am getting No response exception while joining room
from quickblox-android-sdk.
For tag query with users i cannot get the union result with multiple tags.
For example if user1 have three tags like p1,p2,p3, and user2 have p1,p2 tags and user3 have one p1 tag
I want to search query:
Performer<ArrayList> useListPerformer = QBUsers.getUsersByTags(userTags,pagedRequestBuilder);
useListPerformer.performAsync(mQbUsersCallBack);
usertags contains p1,p2,p3
and expected results user1,user2,user3: but in list only return the one user
from quickblox-android-sdk.
hi i am stuck badly need some help after logout when i re login i get body response unauthorized plz need some help i checked my user info through log all given data is ok user name password double check
from quickblox-android-sdk.
Hello @usmanghani6. Unauthorized means - authorization missing or incorrect. Possible causes: a user tries to authorize with wrong login and password; a user uses invalid session token. So check this carefully.
from quickblox-android-sdk.
i am following sample code just changed the tags to my desired tag if user does not exist its ok working but once i log out user then i get this error
from quickblox-android-sdk.
Hi,
I am getting following error can any one help me.
"Users retrieving forbidden in admin panel, application settings. Setup it here https://admin.quickblox.com/apps/58964/settings"
from quickblox-android-sdk.
@prashil7590 you have to move to admin panel (Home -> app name -> Settings) and tick mark on item 'Allow to retrieve other user's info'.
P.S. Guys, do not write comments in closed issues, instead of this create a new issue for receive a faster reply.
from quickblox-android-sdk.
qumincate global search dont work in android
from quickblox-android-sdk.
@devloper64 did you read my last comment and try use my solution? If yes, please, create new issue and attach logs with errors.
from quickblox-android-sdk.
no option in admin panel . like (Home -> app name -> Settings)..please help me
from quickblox-android-sdk.
no option in admin panel . like (Home -> app name -> Settings)..please help me
from quickblox-android-sdk.
Sorry, it is my mistake, you need path Home -> app name -> Users -> Users Settings (see screenshot)
from quickblox-android-sdk.
Thank you..
from quickblox-android-sdk.
Hi,
I'm currently using a different approach in integrating to QB, I have an API gateway to control the sequence of all of my request, currently I was able to create a session token with the following the example:
HMAC-SHA
application_id=22&auth_key=wJHd4cQSxpQGWx5&nonce=33432×tamp=1326966962
As for the user token, I followed the format
application_id=22&auth_key=wJHd4cQSxpQGWx5&nonce=33432×tamp=1326966962&user[login]=amigo30&user[password]=amigo30pass
And I keep on getting the unexpected signature. I'm using java
here is the sequence I made:
User endpoint : https://[url]/session.json
application_id=X&auth_key=XXXXXXXX&nonce=70513×tamp=1509694081&user[login]=User1&user[password]=pass1&signature=530d1bc856dc436482cc90ece7309cde4678e1ea
{Content-Type=[application/json], QuickBlox-REST-API-Version=[0.1.1]}
{"application_id":"X","auth_key":"XXXXXXXX","timestamp":"1509694081","nonce":"57475","signature":"530d1bc856dc436482cc90ece7309cde4678e1ea","user":{"login":"User1","password":"pass1"}}
{"errors":{"base":["Unexpected signature"]}}
Do I have to encode the parameters for user and password?
from quickblox-android-sdk.
Getting below error.Help would be appriciated
D/Request build:: application_id=65665&auth_key=EeRgCNntPjqEyWD&nonce=828652578×tamp=1520329519
03-06 15:15:19.216 22049-24229/com.quickblox.q_municate D/QBASDK: =========================================================
=== REQUEST ==== 92051121-5e66-43b9-947b-fc11979901e3 ===
REQUEST
POST https://api.quickblox.com/session.json
HEADERS
QuickBlox-REST-API-Version=0.1.1
QB-SDK=Android 3.5.2
PARAMETERS
application_id=65665
auth_key=EeRgCNntPjqEyWD
nonce=828652578
timestamp=1520329519
signature=f61a2e60f8cba32a753df431c9b6c3c3c145ff57
INLINE
POST https://api.quickblox.com/session.json?application_id=65665&auth_key=EeRgCNntPjqEyWD&nonce=828652578×tamp=1520329519&signature=f61a2e60f8cba32a753df431c9b6c3c3c145ff57
03-06 15:15:19.217 22049-22049/com.quickblox.q_municate D/BaseActivity: onAttachFragment
03-06 15:15:20.513 22049-24229/com.quickblox.q_municate D/QBASDK: *********************************************************
*** RESPONSE *** 92051121-5e66-43b9-947b-fc11979901e3 ***
STATUS : 422
HEADERS
X-Runtime=0.007544
Cache-Control=no-cache
QuickBlox-REST-API-Version=0.1.1
X-Android-Selected-Protocol=http/1.1
Set-Cookie=_mkra_ctxt=021a3e545e6107adcc006d62de27e8ad--422; path=/; max-age=5; HttpOnly; secure
Status=422 Unprocessable Entity
X-Request-Id=bc89dd8a-b51d-4aa2-9fd8-63a5fadf9a78
X-Android-Response-Source=NETWORK 422
Connection=Close
X-Android-Sent-Millis=1520329519834
Content-Type=application/json; charset=utf-8
Date=Tue, 06 Mar 2018 09:45:21 GMT
X-Content-Type-Options=nosniff
Server=openresty/1.9.15.1
Content-Length=44
Strict-Transport-Security=max-age=31536000
X-XSS-Protection=1; mode=block
X-Frame-Options=SAMEORIGIN
X-Android-Received-Millis=1520329520511
Access-Control-Allow-Origin=*
BODY
'{"errors":{"base":["Unexpected signature"]}}'
03-06 15:15:20.514 22049-24229/com.quickblox.q_municate D/QBASDK: base Unexpected signature
from quickblox-android-sdk.
@sinhavicky4, please check time settings on your device, they should be set to Automatic
from quickblox-android-sdk.
from quickblox-android-sdk.
please specify there time zone of your devise and check in your code auth_key and auth_secret
from quickblox-android-sdk.
from quickblox-android-sdk.
from quickblox-android-sdk.
09-04 14:50:00.676 2762-2762/com.miream.miream W/System.err: com.quickblox.core.exception.QBResponseException: base Unexpected signature
09-04 14:50:00.676 2762-2762/com.miream.miream W/System.err: at com.quickblox.core.parser.QBJsonParser.parse(Unknown Source)
09-04 14:50:00.677 2762-2762/com.miream.miream W/System.err: at com.quickblox.auth.session.Query$VersionEntityCallback.completedWithResponse(Unknown Source)
09-04 14:50:00.677 2762-2762/com.miream.miream W/System.err: at com.quickblox.auth.session.Query.completedWithResponse(Unknown Source)
09-04 14:50:00.677 2762-2762/com.miream.miream W/System.err: at com.quickblox.core.server.HttpRequestRunnable$1.handleMessage(Unknown Source)
09-04 14:50:00.677 2762-2762/com.miream.miream W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
09-04 14:50:00.677 2762-2762/com.miream.miream W/System.err: at android.os.Looper.loop(Looper.java:163)
09-04 14:50:00.677 2762-2762/com.miream.miream W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6239)
09-04 14:50:00.677 2762-2762/com.miream.miream W/System.err: at java.lang.reflect.Method.invoke(Native Method)
09-04 14:50:00.677 2762-2762/com.miream.miream W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
09-04 14:50:00.677 2762-2762/com.miream.miream W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
please help me to solve this
from quickblox-android-sdk.
Related Issues (20)
- Not Working push notifications with Latest Firebase bom HOT 3
- Unexpected signature in session api HOT 2
- Message send issue if use same device for two different login HOT 1
- Audio/Video call connection issue (Not calling onReceiveNewSession method when call coming) HOT 1
- Corner Radius in QBRTCSurfaceView HOT 1
- Private chat Notification receiving for all the users HOT 3
- How to assign admin ownership to the second participant in the group HOT 1
- Automatic push subscription doesn't work. HOT 2
- Cannot create push subscriptions for two applications on one device HOT 5
- Crash on call service in android 12 HOT 2
- Cannot upload document files on Quickblox android HOT 6
- Issue with calling when login on multiple devices HOT 9
- Push subscription HOT 12
- Failed to resolve: HOT 1
- App is crashing internally due to the error in the SDK HOT 2
- Send Location and Contacts in Chat HOT 5
- Push Notification not working for call HOT 1
- Dialog Name As my Contact Name HOT 3
- Could not download chat-message-adapter-2.0.aar HOT 5
- QuickBlox CallService Compatibility Issue on Android 14 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quickblox-android-sdk.