This repository was archived by the owner on Oct 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
This repository was archived by the owner on Oct 23, 2019. It is now read-only.
issue with POST/PUT #39
Copy link
Copy link
Open
Description
Hello and thanks for the library,
Below is my issue with collectionAPI (OSX + last meteor)
gad$ curl -v -H "Content-Type: application/json" -H "X-Auth-Token: 97f0ad9e24ca5e0408a269748d7fe0a0" -X PUT -d "{"$set": {"description": "new description"}}" http://localhost:3000/rest/organizations/Dad29Np2nWA2SSt7J
- Adding handle: conn: 0x7fd01a804000
- Adding handle: send: 0
- Adding handle: recv: 0
- Curl_addHandleToPipeline: length: 1
- - Conn 0 (0x7fd01a804000) send_pipe: 1, recv_pipe: 0
- About to connect() to localhost port 3000 (#0)
- Trying 127.0.0.1...
- Connected to localhost (127.0.0.1) port 3000 (#0)
PUT /rest/organizations/Dad29Np2nWA2SSt7J HTTP/1.1
User-Agent: curl/7.30.0
Host: localhost:3000
Accept: /
Content-Type: application/json
X-Auth-Token: 97f0ad9e24ca5e0408a269748d7fe0a0
Content-Length: 44 - upload completely sent off: 44 out of 44 bytes
HANGS for about 30 sec - 1 minute, then it shows:
- Empty reply from server
- Connection #0 to host localhost left intact
curl: (52) Empty reply from server
Server code I've used for testing
if (Meteor.isServer) {
Meteor.startup(function(){
collectionApi = new CollectionAPI({
apiPath: 'rest'
});
collectionApi.addCollection(Organizations, 'organizations', {
authToken: '97f0ad9e24ca5e0408a269748d7fe0a0',
methods: ['POST','GET','PUT','DELETE'],
});
collectionApi.start();
});
}
Metadata
Metadata
Assignees
Labels
No labels