You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "Jeffrey (JIRA)" <ji...@apache.org> on 2015/09/22 23:17:04 UTC

[jira] [Commented] (USERGRID-249) Can't post on connection

    [ https://issues.apache.org/jira/browse/USERGRID-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14903449#comment-14903449 ] 

Jeffrey  commented on USERGRID-249:
-----------------------------------

This needs to be tested and confirmed with 1.0 and 2.1.  Separate tickets should be created for each.

> Can't post on connection
> ------------------------
>
>                 Key: USERGRID-249
>                 URL: https://issues.apache.org/jira/browse/USERGRID-249
>             Project: Usergrid
>          Issue Type: Bug
>          Components: Stack
>            Reporter: Rod Simpson
>
> After setting up my roles as prescribed, I receive this error in the terminal when trying
> to create a connection:
> WARNING: Exception occurred during body skip
> java.lang.IllegalStateException: Can not skip more bytes than available
> 	at org.glassfish.grizzly.http.server.io.InputBuffer.skip(InputBuffer.java:600)
> 	…
> I tried issuing this command from the shell in the portal:
> post /users/2760f03a-22ef-11e4-8ffd-f3f0018b3726/mynotes { "data": "Learn Usergrid” }
> and
> post /users/2760f03a-22ef-11e4-8ffd-f3f0018b3726/mynotes [{ "data": "Learn Usergrid"}]
> Either command returns:
> /users/2760f03a-22ef-11e4-8ffd-f3f0018b3726/mynotes
>  
> {
>   "action": "post",
>   "application": "f2b952fa-22ee-11e4-9b4b-e9ea3d610fab",
>   "params": {
>     "access_token": [
>       "YWMtmZWU0iQUEeScLt1PgUhfegAAAUf7J0uW32RkTiYpwSNVOHBVAtmkMnjFT3s"
>     ]
>   },
>   "path": "/users/2760f03a-22ef-11e4-8ffd-f3f0018b3726/mynotes",
>   "uri": "http://localhost:8080/test.2/note-pad/users/2760f03a-22ef-11e4-8ffd-f3f0018b3726/mynotes",
>   "entities": [],
>   "timestamp": 1408063432982,
>   "duration": 6,
>   "organization": "test.2",
>   "applicationName": “note-pad"
> }
> However, no entities are being created. I’ve also tried using curl with the same results:
> curl -H "Authorization: Bearer YWMt2j3JaCQLEeSr1fvx65wFRAAAAUf67ffU8cqvWOyiAVXXIOea177UF05Noa8"
> -X POST -d '[ {"data":"Lear Usergrid"}]' http://localhost:8080/test.2/note-pad/users/me/mynotes
> I did execute a post /users/2760f03a-22ef-11e4-8ffd-f3f0018b3726/mynotes by itself as well,
> which made no difference.
> -charles



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)