{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/issues/276","repository_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions","labels_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/issues/276/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/issues/276/events","html_url":"https://github.com/Microsoft/vscode-azurefunctions/issues/276","id":304596270,"number":276,"title":"Seeking binding.context failure information","user":{"login":"julielerman","id":5007120,"avatar_url":"https://avatars3.githubusercontent.com/u/5007120?v=4","gravatar_id":"","url":"https://api.github.com/users/julielerman","html_url":"https://github.com/julielerman","followers_url":"https://api.github.com/users/julielerman/followers","following_url":"https://api.github.com/users/julielerman/following{/other_user}","gists_url":"https://api.github.com/users/julielerman/gists{/gist_id}","starred_url":"https://api.github.com/users/julielerman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julielerman/subscriptions","organizations_url":"https://api.github.com/users/julielerman/orgs","repos_url":"https://api.github.com/users/julielerman/repos","events_url":"https://api.github.com/users/julielerman/events{/privacy}","received_events_url":"https://api.github.com/users/julielerman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-03-13T01:26:25Z","updated_at":"2018-03-13T20:48:18Z","closed_at":null,"author_association":"NONE","body":"Environment:\r\nmacOS\r\nVS Code 1.21\r\nlatest Azure CLI tools\r\nAzure Functions 0.7.0\r\n\r\nI'm not sure if this is related to the extension. But I've used it to create a function that has an output binding to a CosmosDB document db. I've deployed the function to the portal and when I test it from there, passing in a json document, the document does get stored into the db. But when I run it in vscode and then call it from postman and pass in the same doc, the document does not get stored.\r\n\r\nI can debug into the function and see the document coming in via req.body.\r\n\r\nThere are no errors. I have debugged into context when I'm at the closing brace and can't find any kind of error code. I've also tried using application insights and a few other ways to monitor the db to see if there's any indication of an attempt to create a document but am not seeing anything.\r\n\r\nIf I could see what is or isn't happening, then I might be able to fix the problem. Is there something more that the extension could be helping me with?\r\n\r\nHere is the function code:\r\n```\r\nmodule.exports = function (context, req) {\r\n    context.log('JavaScript HTTP trigger function processed a request.');\r\n   \r\n    try {\r\n        context.bindings.outputDocument=req.body;\r\n      }\r\n      catch(error) {\r\n        context.log(error);\r\n         }\r\n    context.done();\r\n};\r\n```\r\n\r\nHere is the function.json:\r\n\r\n```\r\n{\r\n  \"disabled\": false,\r\n  \"bindings\": [\r\n    {\r\n      \"authLevel\": \"anonymous\",\r\n      \"type\": \"httpTrigger\",\r\n      \"direction\": \"in\",\r\n      \"name\": \"req\"\r\n    },\r\n    {\r\n      \"type\": \"http\",\r\n      \"direction\": \"out\",\r\n      \"name\": \"res\"\r\n    },\r\n    {\r\n      \"type\": \"documentDB\",\r\n      \"name\": \"outputDocument\",\r\n      \"databaseName\": \"Ninjas\",\r\n      \"collectionName\": \"Ninjas\",\r\n      \"createIfNotExists\": true,\r\n       \"connection\": \"datapointscosmosdb\",\r\n       \"direction\": \"out\"\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\nlocalsettings.json:\r\n\r\n```\r\n{\r\n  \"IsEncrypted\": false,\r\n  \"Values\": {\r\n    \"AzureWebJobsStorage\": \"DefaultEndpointsProtocol=https;AccountName=functionsample;AccountKey=***\",\r\n    \"datapointscosmosdb\": \"AccountEndpoint=https://***.documents.azure.com:443/;AccountKey=***\"\r\n      }\r\n    }\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/issues/comments/372813145","html_url":"https://github.com/Microsoft/vscode-azurefunctions/issues/276#issuecomment-372813145","issue_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/issues/276","id":372813145,"user":{"login":"julielerman","id":5007120,"avatar_url":"https://avatars3.githubusercontent.com/u/5007120?v=4","gravatar_id":"","url":"https://api.github.com/users/julielerman","html_url":"https://github.com/julielerman","followers_url":"https://api.github.com/users/julielerman/followers","following_url":"https://api.github.com/users/julielerman/following{/other_user}","gists_url":"https://api.github.com/users/julielerman/gists{/gist_id}","starred_url":"https://api.github.com/users/julielerman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julielerman/subscriptions","organizations_url":"https://api.github.com/users/julielerman/orgs","repos_url":"https://api.github.com/users/julielerman/repos","events_url":"https://api.github.com/users/julielerman/events{/privacy}","received_events_url":"https://api.github.com/users/julielerman/received_events","type":"User","site_admin":false},"created_at":"2018-03-13T20:48:18Z","updated_at":"2018-03-13T20:48:18Z","author_association":"NONE","body":"aha! perhaps cosmosdb isn't supported yet. It's not here as an output ...\r\n![image](https://user-images.githubusercontent.com/5007120/37369021-44e3591c-26de-11e8-8fb4-64d4cb8fea5a.png)\r\n"}}
{"actor":{"display_login":"julielerman"}}