Last active
August 29, 2015 14:23
-
-
Save wf9a5m75/49d0f12b279e4f5ec102 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ errors: [], | |
code: 503, | |
message: 'Backend Error', | |
response: | |
{ _readableState: | |
{ highWaterMark: 16384, | |
buffer: [], | |
length: 0, | |
pipes: null, | |
pipesCount: 0, | |
flowing: false, | |
ended: true, | |
endEmitted: true, | |
reading: false, | |
calledRead: true, | |
sync: false, | |
needReadable: true, | |
emittedReadable: false, | |
readableListening: false, | |
objectMode: false, | |
defaultEncoding: 'utf8', | |
ranOut: false, | |
awaitDrain: 0, | |
readingMore: false, | |
decoder: null, | |
encoding: null }, | |
readable: false, | |
domain: null, | |
_events: | |
{ end: [Object], | |
close: [Object], | |
data: [Object], | |
readable: [Function], | |
error: [Function] }, | |
_maxListeners: 10, | |
socket: | |
{ _readableState: [Object], | |
readable: true, | |
domain: null, | |
_events: [Object], | |
_maxListeners: 0, | |
_writableState: [Object], | |
writable: true, | |
allowHalfOpen: true, | |
pair: [Object], | |
_pending: null, | |
_pendingEncoding: '', | |
_pendingCallback: null, | |
_doneFlag: false, | |
_retryAfterPartial: false, | |
_halfRead: false, | |
_sslOutCb: null, | |
_resumingSession: false, | |
_reading: true, | |
_destroyed: false, | |
_ended: false, | |
_finished: false, | |
_opposite: [Object], | |
_buffer: [Object], | |
_handle: [Object], | |
socket: [Object], | |
encrypted: [Object], | |
authorized: true, | |
_controlReleased: true, | |
parser: null, | |
_httpMessage: [Object], | |
ondata: null, | |
onend: null, | |
npnProtocol: false }, | |
connection: | |
{ _readableState: [Object], | |
readable: true, | |
domain: null, | |
_events: [Object], | |
_maxListeners: 0, | |
_writableState: [Object], | |
writable: true, | |
allowHalfOpen: true, | |
pair: [Object], | |
_pending: null, | |
_pendingEncoding: '', | |
_pendingCallback: null, | |
_doneFlag: false, | |
_retryAfterPartial: false, | |
_halfRead: false, | |
_sslOutCb: null, | |
_resumingSession: false, | |
_reading: true, | |
_destroyed: false, | |
_ended: false, | |
_finished: false, | |
_opposite: [Object], | |
_buffer: [Object], | |
_handle: [Object], | |
socket: [Object], | |
encrypted: [Object], | |
authorized: true, | |
_controlReleased: true, | |
parser: null, | |
_httpMessage: [Object], | |
ondata: null, | |
onend: null, | |
npnProtocol: false }, | |
httpVersion: '1.1', | |
complete: true, | |
headers: | |
{ vary: 'X-Origin', | |
'content-type': 'text/html; charset=UTF-8', | |
date: 'Mon, 15 Jun 2015 23:26:04 GMT', | |
expires: 'Mon, 15 Jun 2015 23:26:04 GMT', | |
'cache-control': 'private, max-age=0', | |
'x-content-type-options': 'nosniff', | |
'x-frame-options': 'SAMEORIGIN', | |
'x-xss-protection': '1; mode=block', | |
server: 'GSE', | |
'alternate-protocol': '443:quic,p=1', | |
'accept-ranges': 'none', | |
'transfer-encoding': 'chunked' }, | |
trailers: {}, | |
_pendings: [], | |
_pendingIndex: 0, | |
url: '', | |
method: null, | |
statusCode: 503, | |
client: | |
{ _readableState: [Object], | |
readable: true, | |
domain: null, | |
_events: [Object], | |
_maxListeners: 0, | |
_writableState: [Object], | |
writable: true, | |
allowHalfOpen: true, | |
pair: [Object], | |
_pending: null, | |
_pendingEncoding: '', | |
_pendingCallback: null, | |
_doneFlag: false, | |
_retryAfterPartial: false, | |
_halfRead: false, | |
_sslOutCb: null, | |
_resumingSession: false, | |
_reading: true, | |
_destroyed: false, | |
_ended: false, | |
_finished: false, | |
_opposite: [Object], | |
_buffer: [Object], | |
_handle: [Object], | |
socket: [Object], | |
encrypted: [Object], | |
authorized: true, | |
_controlReleased: true, | |
parser: null, | |
_httpMessage: [Object], | |
ondata: null, | |
onend: null, | |
npnProtocol: false }, | |
_consuming: true, | |
_dumped: false, | |
httpVersionMajor: 1, | |
httpVersionMinor: 1, | |
upgrade: false, | |
req: | |
{ domain: null, | |
_events: [Object], | |
_maxListeners: 10, | |
output: [], | |
outputEncodings: [], | |
writable: true, | |
_last: false, | |
chunkedEncoding: false, | |
shouldKeepAlive: true, | |
useChunkedEncodingByDefault: true, | |
sendDate: false, | |
_headerSent: true, | |
_header: 'POST /datastore/v1beta2/datasets/vital-axiom-796/commit HTTP/1.1\r\nContent-Type: application/x-protobuf\r\nAuthorization: Bearer *********************************************************\r\nContent-Length: 30\r\nhost: www.googleapis.com\r\nConnection: keep-alive\r\n\r\n', | |
_hasBody: true, | |
_trailer: '', | |
finished: true, | |
_hangupClose: false, | |
socket: [Object], | |
connection: [Object], | |
agent: [Object], | |
socketPath: undefined, | |
method: 'POST', | |
path: '/datastore/v1beta2/datasets/vital-axiom-796/commit', | |
_headers: [Object], | |
_headerNames: [Object], | |
parser: null, | |
res: [Circular] }, | |
request: | |
{ domain: null, | |
_events: [Object], | |
_maxListeners: 10, | |
pool: [Object], | |
callback: undefined, | |
method: 'POST', | |
uri: [Object], | |
headers: [Object], | |
readable: true, | |
writable: true, | |
explicitMethod: true, | |
_qs: [Object], | |
_auth: [Object], | |
_oauth: [Object], | |
_multipart: [Object], | |
_redirect: [Object], | |
setHeader: [Function], | |
hasHeader: [Function], | |
getHeader: [Function], | |
removeHeader: [Function], | |
localAddress: undefined, | |
dests: [], | |
__isRequestRequest: true, | |
proxy: null, | |
tunnel: true, | |
setHost: true, | |
originalCookieHeader: undefined, | |
_disableCookies: true, | |
_jar: undefined, | |
port: 443, | |
host: 'www.googleapis.com', | |
path: '/datastore/v1beta2/datasets/vital-axiom-796/commit', | |
httpModule: [Object], | |
agentClass: [Object], | |
agent: [Object], | |
_started: true, | |
href: 'https://www.googleapis.com/datastore/v1beta2/datasets/vital-axiom-796/commit', | |
req: [Object], | |
ntick: true, | |
response: [Circular], | |
originalHost: 'www.googleapis.com', | |
originalHostHeaderName: 'host', | |
responseContent: [Circular], | |
_destdata: true, | |
_ended: true }, | |
toJSON: [Function: responseToJSON], | |
caseless: { dict: [Object] }, | |
pipe: [Function], | |
addListener: [Function], | |
on: [Function], | |
pause: [Function], | |
resume: [Function], | |
read: [Function] } } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gcloud = require('gcloud'); | |
var dataset = gcloud.datastore.dataset({ | |
projectId: "vital-axiom-796", | |
keyFilename: "dev-cert.json" | |
}); | |
var key = dataset.key('Test'); | |
dataset.save({ | |
key : key, | |
data : { | |
rating : 10 | |
} | |
}, function(err) { | |
console.log(err || "done"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment