Having trouble with QuickBlox video calling feature on the web?

I have encountered an issue while trying to integrate video chat into my Java web application using QuickBlox. I am utilizing Angular/JavaScript on the frontend.

The problem arises when attempting to create a session for a user that I have created in QuickBlox through the API. Strangely, I can successfully create a session for the Admin user, which is the account under which I originally set up QuickBlox.

Upon retrieving the user from QuickBlox on the Java side, the result looks like this:

HTTP/1.1 200 OK

{"user":"id":24837946,"owner_id":63610,"full_name":"lakshay","email":"[email protected]","login":"[email protected]","phone":null,"website":null,"created_at":"2017-03-04T05:36:43Z","updated_at":"2017-03-04T05:36:43Z","last_request_at":null,"external_user_id":null,"facebook_id":null,"twitter_id":null,"blob_id":null,"custom_data":null,"twitter_digits_id":null,"user_tags":null}}

HTTP/1.1 200 OK

{"user":"id":24837064,"owner_id":63610,"full_name":"lakshay","email":"[email protected]","login":"[email protected]","phone":null,"website":null,"created_at":"2017-03-04T04:53:35Z","updated_at":"2017-03-04T04:53:35Z","last_request_at":null,"external_user_id":null,"facebook_id":null,"twitter_id":null,"blob_id":null,"custom_data":null,"twitter_digits_id":null,"user_tags":null}}

Even though these users exist in QuickBlox, I am unable to create a session for them.

On the JavaScript side, when sending data in the create session method, it looks like this:

{
    application_id: 50623,
    auth_key: "2Z77VTuccR3XzLf",
    nonce: 439,
    signature: "8648eaeaf2922f4b58e7847159267d60f45dbd04",
    timestamp: 1488626331,
    user: {
        login:"[email protected]",
        password:"xyz"
    }
}

However, I encounter the following error in the JS side during the create session method:

object {code: 401, status: "error", message: "Unauthorized", detail: "{"errors":["Unauthorized"]}"}

It's worth noting that I am currently using the Starter Plan offered by QuickBlox.

Answer №1

My problem was resolved by implementing the following modifications.

During session creation, it was crucial for me to include the Admin User ID and password that I utilize to access the Quickblox Admin Panel.

Upon successfully generating the session, I received a session token that I then utilized in the connectChat method along with the user's UserID to log them into the chat system.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Popup window displaying website content upon DOM loading, ensuring compatibility across various browsers

I am facing a challenge with my HTML popup window where I need to add text after opening the window using a specific function: var win = window.open('private.php', data.sender_id , 'width=300,height=400'); win.win ...

Issue with the usage of section helpers in express-handlebars

I'm having trouble getting the section helper to function correctly. The content of login.hbs was parsed properly, but the js section was not parsed at all. I attempted using helpers within res.render() and directly including section() in engine(), bu ...

Assigning a value to a cell depending on a specific condition

Currently, I have a column connected to a field known as state. The possible values for this field are either S or L. My objective is to map these values as follows: S => Short, L => Long The binding is structured in the following way: $scope.grid ...

In my Node.js/Express.js application, I have a directory that holds various images. Whenever I attempt to view these images via their URL, I encounter a 404 error message

In my Node.js/Express js project, I have the following folder structure: root ----bin ----controllers ----middleware ----models ----node_modules ----public --------images ------------test.png ----routes ----views I am currently trying to determine the cor ...

A step-by-step guide to setting up Selenium on Eclipse for Java with Chrome WebDriver on Windows 10

How can I successfully install Selenium on Windows 10 with WebDriver for Chrome? I have been encountering an error and am unable to find a comprehensive tutorial to guide me through the process. I keep receiving this Exception in Eclipse: Exception in thr ...

The selection feature is not supported for the type of input element in jQuery

I'm currently attempting to utilize AJAX to send a form with jQuery. However, upon clicking the submit button (which is technically a link), I encountered an error. The error displayed in the console is as follows: Failed to read the 'selection ...

Error ORA-00923 is commonly encountered when using SeleniumWebDriver due to the absence of the "FROM

In my Java project, I have created a class named ValidarStatusOsPage that connects to the database and retrieves query results for a test class called ValidateStatusOsTest. However, when running the test class, an error message appears in the Eclipse cons ...

Outputting a series of exceptions from a invoked function

Currently, I am developing a Java compiler type checker. The typeChecking class is equipped with methods that throw RuntimeExceptions in case of semantic errors found in the input file (program). As of now, whenever an error is detected, the exception is ...

The re-rendering of a functional component utilizing React.useCallback and React.memo() is occurring

I was delving into React concepts and eager to experiment with some new things. Here are a few questions that crossed my mind: Does every functional child component re-render when the parent state changes, even if it doesn't have any props? It seems ...

Sending the complete data from an HTML table to a web method

Is there a way to pass the data from a dynamically generated HTML table grid to a web method using jQuery AJAX? The table grid creates multiple rows on button click at runtime, and I need to send the entire table data. Please refer to the following snaps ...

Is there a way to return two separate functions within a single function that can be rendered as two distinct components in a React application without one function overriding the other?

I'm currently working on a react header that uses conditional rendering to show different elements based on the URL or user login status. However, I'm facing an issue where only one button is being rendered instead of two side by side in my defau ...

What should I do if the JFrame library/class is missing?

NetBeans (v8.2) appears to be having trouble recognizing JFrame when extended, as shown in screenshot 1. Interestingly, this same code worked perfectly fine on another computer, highlighting the issue's specificity. Additionally, JFrame is missing fro ...

Tips for Formatting Dates as ISO-8601 in Java

I am attempting to convert the standard ISO 8601 format 2014-09-11T21:28:29.429209Z into a more readable MMM d yyyy hh:mm z format, but unfortunately my current code is not producing the desired result. public void setCreatedAt( String dateTime ) { L ...

Error: Conditional formatting not compatible with JavaScript detected

I have a jQuery DataTable that is populated with data from a JSON file. Everything works smoothly, but I'm encountering an issue with conditional formatting. The script I'm using assigns a 'positive' class to all cells in column 2, even ...

Why is the code able to execute following the setState hook without any listener declared in the useEffect hook?

Recently, I came across an expo barcode scanner example where a function is executed after a setState hook. This puzzled me as I thought that calling the setState hook would trigger a re-render of the component. Can anyone explain why the function runs aft ...

unable to apply angular measurement inside quotation marks

What is the reason for this issue: <ul class="dropdown-menu"> <li ng-repeat="choice in dropDownItems"> <a class="btn" ng-click="mnuClick('{{choice}}')">{{choice}}</a> </li> </ul> However, this code wo ...

Unusual shift in the modal's behavior occurs when the parent component's style.transform is applied

I have encountered an unusual issue with a modal's appearance and functionality. The modal is designed to enlarge images sent in a chat, with the chat upload preview div serving as the parent element and the modal as the child element. This strange be ...

Issue: ENOENT - The specified file or directory cannot be found while scanning in a discord bot

Recently, I decided to try my hand at creating discord bots even though I am new to it. After watching a tutorial and copying the code, I encountered an error that has me stumped: node:internal/fs/utils:347 throw err; ^ Error: ENOENT: no such ...

Having trouble with the Vaadin application on Heroku, receiving errors that npm install has either not been executed or has failed

After successfully deploying my Vaadin application, I encountered a build success message but also found an error in the log stating: "Couldn't start dev server because '/app/node_modules/webpack-dev-server/bin/webpack-dev-server.js' doesn&a ...

Learn how to change the input source in Ratchet's chat app to come from a text box on the webpage instead of the console

I followed the guidelines on to create a chat app. However, I now want to input data from a text box instead of using conn.send() in the console. How can I achieve this using php? I was successful in redirecting the sent message to an html element like ...