{"action":"created","issue":{"url":"https://api.github.com/repos/ParsePlatform/parse-server-example/issues/228","repository_url":"https://api.github.com/repos/ParsePlatform/parse-server-example","labels_url":"https://api.github.com/repos/ParsePlatform/parse-server-example/issues/228/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/parse-server-example/issues/228/comments","events_url":"https://api.github.com/repos/ParsePlatform/parse-server-example/issues/228/events","html_url":"https://github.com/ParsePlatform/parse-server-example/issues/228","id":162732198,"number":228,"title":"Uploading files to Google cloud storage with FileAdapter","user":{"login":"notentered","id":1017032,"avatar_url":"https://avatars.githubusercontent.com/u/1017032?v=3","gravatar_id":"","url":"https://api.github.com/users/notentered","html_url":"https://github.com/notentered","followers_url":"https://api.github.com/users/notentered/followers","following_url":"https://api.github.com/users/notentered/following{/other_user}","gists_url":"https://api.github.com/users/notentered/gists{/gist_id}","starred_url":"https://api.github.com/users/notentered/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notentered/subscriptions","organizations_url":"https://api.github.com/users/notentered/orgs","repos_url":"https://api.github.com/users/notentered/repos","events_url":"https://api.github.com/users/notentered/events{/privacy}","received_events_url":"https://api.github.com/users/notentered/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-28T16:42:26Z","updated_at":"2016-06-29T10:09:16Z","closed_at":null,"body":"Hello,\r\n\r\nI'm trying to setup the gcs file adapter for parse (parse-server-gcs-adapter).\r\n\r\nMy config is:\r\n```\r\nvar GCSAdapter = require('parse-server-gcs-adapter');\r\nvar gcsOptions = {\r\n  \"projectId\": \"MY_PROJECTID\",\r\n  \"keyFilename\": \"MY_CERT_FILE.json\",\r\n  \"bucket\": \"MY_BUCKET\"\r\n};\r\n\r\nvar gcsAdapter = new GCSAdapter(gcsOptions);\r\n\r\nvar psConfig = {\r\n    \"serverURL\": \"SERVER_URL\",\r\n    \"verbose\": true,\r\n    \"masterKey\": \"MASTER_KEY\",\r\n    \"filesAdapter\": gcsAdapter\r\n}\r\nnew ParseServer( psConfig );\r\n```\r\n\r\nNow. Trying to upload file i got error:\r\n`{code: 130, error: \"Could not store file.\"}``\r\n\r\nDebugging a little bit, I found that in FilesRouter.js we have:\r\n```\r\n      filesController.createFile(config, filename, req.body, contentType).then(function (result) {\r\n        res.status(201);\r\n        res.set('Location', result.url);\r\n        res.json(result);\r\n      }).catch(function (err) {\r\n        next(new Parse.Error(Parse.Error.FILE_SAVE_ERROR, 'Could not store file.'));\r\n      });\r\n```\r\n\r\nThe error in `catch(function (err)...` is: __\"Cannot assign to read only property 'authClient' of [object Object]\"__\r\n\r\nThe exact configurations for the adapter is not important, because this error happens no matter of the values.\r\n\r\n...and I really don't know what to do next. :)"},"comment":{"url":"https://api.github.com/repos/ParsePlatform/parse-server-example/issues/comments/229314899","html_url":"https://github.com/ParsePlatform/parse-server-example/issues/228#issuecomment-229314899","issue_url":"https://api.github.com/repos/ParsePlatform/parse-server-example/issues/228","id":229314899,"user":{"login":"notentered","id":1017032,"avatar_url":"https://avatars.githubusercontent.com/u/1017032?v=3","gravatar_id":"","url":"https://api.github.com/users/notentered","html_url":"https://github.com/notentered","followers_url":"https://api.github.com/users/notentered/followers","following_url":"https://api.github.com/users/notentered/following{/other_user}","gists_url":"https://api.github.com/users/notentered/gists{/gist_id}","starred_url":"https://api.github.com/users/notentered/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notentered/subscriptions","organizations_url":"https://api.github.com/users/notentered/orgs","repos_url":"https://api.github.com/users/notentered/repos","events_url":"https://api.github.com/users/notentered/events{/privacy}","received_events_url":"https://api.github.com/users/notentered/received_events","type":"User","site_admin":false},"created_at":"2016-06-29T10:09:16Z","updated_at":"2016-06-29T10:09:16Z","body":"After some more digging, it seems this is coming from google-auto-auth: https://github.com/stephenplusplus/google-auto-auth/issues/4"}}
{"actor":{"display_login":"notentered"}}