Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java rest client doesn't work #3146

Closed
haifengl opened this issue May 5, 2016 · 1 comment
Closed

Java rest client doesn't work #3146

haifengl opened this issue May 5, 2016 · 1 comment

Comments

@haifengl
Copy link

haifengl commented May 5, 2016

Your Rocket.Chat version: latest

When sending a message using the Java client (https://github.com/baloise/rocket-chat-rest-client), the following exception thrown:

com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source:

<script type="text/javascript">__meteor_runtime_config__ = JSON.parse(decodeURIComponent("%7B%22meteorRelease%22%3A%22METEOR%401.2.1%22%2C%22PUBLIC_SETTINGS%22%3A%7B%7D%2C%22ROOT_URL%22%3A%22https%3A%2F%2Fchat.adp.ai%22%2C%22ROOT_URL_PATH_PREFIX%22%3A%22%22%2C%22accountsConfigCalled%22%3Atrue%2C%22autoupdateVersion%22%3A%22d1e6d236d362037d427d08654dc1406f90c39127%22%2C%22autoupdateVersionRefreshable%22%3A%22f321a8ffd2f78c5b2c01a84ce48d74750bee65bb%22%2C%22autoupdateVersionCordova%22%3A%228359a273589a90f39a16cdb64a00bb022b27cecc%22%7D"));</script> <script type="text/javascript" src="/d60d4f39bf3e4f8c15004ea56d0bb2d26a0b27ab.js?meteor_js_resource=true"></script> <title>Rocket.Chat</title>
<div id="initial-page-loading" class="page-loading">
    <div class="spinner">
        <div class="rect1"></div>
        <div class="rect2"></div>
        <div class="rect3"></div>
        <div class="rect4"></div>
        <div class="rect5"></div>
    </div>
</div>
; line: 1, column: 2] at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1586) at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:521) at com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:450) at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._handleOddValue(ReaderBasedJsonParser.java:1823) at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:708) at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:3828) at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3773) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2779) at com.github.baloise.rocketchatrestclient.RocketChatClient.authenticatedGet(RocketChatClient.java:62) at com.github.baloise.rocketchatrestclient.RocketChatClient.getPublicRooms(RocketChatClient.java:41) at com.github.baloise.rocketchatrestclient.RocketChatClient.getRoom(RocketChatClient.java:149) at com.github.baloise.rocketchatrestclient.RocketChatClient.send(RocketChatClient.java:137)
@Sing-Li
Copy link
Member

Sing-Li commented May 6, 2016

Please post the issue at the https://github.com/baloise/rocket-chat-rest-client repository. We have no access to that code. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants