You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "Rod Simpson (JIRA)" <ji...@apache.org> on 2014/11/14 21:23:33 UTC

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

Rod Simpson created USERGRID-249:
------------------------------------

             Summary: 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)