Comments (8)
Thank you @grchis , I will surely take a look at it and will fix it as soon as possible, bug will get fixed in next update. Let me know if there are any other errors in the code.
from rocket.chat.java.sdk.
Ohk will fix it 👍 , I will upload new version tomorrow (Beta one), let me know if I forget to do it :p
from rocket.chat.java.sdk.
Hey, is this really creating problem in the code. Actually my test executed without any problem. I think it's taking room as null automatically without throwing exception. Might be due to variation in Json Libraries.
Because the data returned has value null, so it should return null. Which SDK version you are using right now? Can you log the LiveChatConfiguration Object return by server in here. The SS is quite not helping me.
from rocket.chat.java.sdk.
I think error is due to different data type of a room returned by a server. Can you please log here the data.
from rocket.chat.java.sdk.
This is the value that gets passed in the LiveChatConfigObject:
{"color":"#C1272D","offlineMessage":"We are not online right now. Please leave us a message:","language":"","title":"Everything HelpDesk","triggers":[],"displayOfflineForm":false,"enabled":true,"room":null,"offlineColor":"#C1272D","offlineTitle":"Leave a message","transcriptMessage":"Would you like a copy of this chat emailed?","offlineSuccessMessage":"","videoCall":false,"offlineUnavailableMessage":"","transcript":false,"online":true,"departments":[{"showOnRegistration":true,"name":"Click here to chat with a technician","description":"You can chat in real time with a technician","numAgents":2,"_id":"BgGqRRSgvMXrbXNFC","_updatedAt":{"$date":1502632040867},"enabled":true},{"showOnRegistration":true,"name":"Technicians","description":"This is the technicians department","numAgents":2,"_id":"KijZPJaknF9NpR9BB","_updatedAt":{"$date":1502631876519},"enabled":true},{"showOnRegistration":true,"name":"Test Department","description":"","numAgents":2,"_id":"jHqtgH9uggfhz9udz","_updatedAt":{"$date":1502632552669},"enabled":true}],"allowSwitchingDepartments":true,"registrationForm":false}
from rocket.chat.java.sdk.
The issue is that the "room" attribute is null, and when this line room=object.getString("room");
i executed the exception is throwned
from rocket.chat.java.sdk.
Hey there,
I have fixed the bug, fix currently available in beta version
Add this to build.gradle
compile 'io.rocketchat:rocketchatjavasdk:0.6.3'
Let me know if there is anything else I can do for you 👍
from rocket.chat.java.sdk.
It works now. Thanks!
from rocket.chat.java.sdk.
Related Issues (20)
- [REFACTOR] Add annotation to all methods that needs to be moved from RealTime to REST
- [DOCS] Add Javadocs to the RealTime public methods
- News user Not possible Subscriptions or join room. HOT 1
- [NEW] Get user subscriptions. HOT 1
- [NEW] Send message
- [NEW] Get user group list
- [NEW] Get user cannel list.
- [NEW] Get user DM list.
- Room.Type is not accessible
- File upload HOT 2
- Register for Push Notification
- Can I use both core SDK and livechat in the same project? HOT 4
- [QUESTION] Unable to connect server using realtime api HOT 1
- [Rocket chat] Set user presence (online, offline)
- livechatsdk initialize error 404
- Doc, Source and Binary is not matching
- Java with older version of ide HOT 1
- how to build this sdk into a library file
- Register Guest Token Issue
- Vimeo interactivity tool
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 rocket.chat.java.sdk.