{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/geobuf/issues/61","repository_url":"https://api.github.com/repos/mapbox/geobuf","labels_url":"https://api.github.com/repos/mapbox/geobuf/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/geobuf/issues/61/comments","events_url":"https://api.github.com/repos/mapbox/geobuf/issues/61/events","html_url":"https://github.com/mapbox/geobuf/issues/61","id":146986537,"number":61,"title":"Error: Unimplemented type: 3","user":{"login":"wboykinm","id":735463,"avatar_url":"https://avatars.githubusercontent.com/u/735463?v=3","gravatar_id":"","url":"https://api.github.com/users/wboykinm","html_url":"https://github.com/wboykinm","followers_url":"https://api.github.com/users/wboykinm/followers","following_url":"https://api.github.com/users/wboykinm/following{/other_user}","gists_url":"https://api.github.com/users/wboykinm/gists{/gist_id}","starred_url":"https://api.github.com/users/wboykinm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wboykinm/subscriptions","organizations_url":"https://api.github.com/users/wboykinm/orgs","repos_url":"https://api.github.com/users/wboykinm/repos","events_url":"https://api.github.com/users/wboykinm/events{/privacy}","received_events_url":"https://api.github.com/users/wboykinm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-04-08T17:15:02Z","updated_at":"2016-10-02T23:08:31Z","closed_at":"2016-04-09T18:08:17Z","body":"I'm making a fairly simple call to the Mapbox API in a node script, and it's failing to decode the response [given use of the geobuf example](https://github.com/wboykinm/tribes/blob/master/processing/water/get.js#L29). Logging the `body` shows a valid, still-encoded response has come back from the API, but attempting to decode throws this:\r\n\r\n```\r\n/Users/wboykinm/github/tribes/processing/water/node_modules/pbf/index.js:204\r\n        else throw new Error('Unimplemented type: ' + type);\r\n                   ^\r\nError: Unimplemented type: 3\r\n    at Object.Pbf.skip (/Users/wboykinm/github/tribes/processing/water/node_modules/pbf/index.js:204:20)\r\n    at Object.Pbf.readFields (/Users/wboykinm/github/tribes/processing/water/node_modules/pbf/index.js:40:45)\r\n    at Object.decode (/Users/wboykinm/github/tribes/processing/water/node_modules/geobuf/decode.js:17:19)\r\n    at Request._callback (/Users/wboykinm/github/tribes/processing/water/get.js:29:26)\r\n    at Request.self.callback (/Users/wboykinm/github/tribes/processing/water/node_modules/request/request.js:199:22)\r\n    at Request.emit (events.js:110:17)\r\n    at Request.<anonymous> (/Users/wboykinm/github/tribes/processing/water/node_modules/request/request.js:1036:10)\r\n    at Request.emit (events.js:129:20)\r\n    at IncomingMessage.<anonymous> (/Users/wboykinm/github/tribes/processing/water/node_modules/request/request.js:963:12)\r\n    at IncomingMessage.emit (events.js:129:20)\r\n```\r\n\r\nAm I missing some basic preprocessing of the API response?"},"comment":{"url":"https://api.github.com/repos/mapbox/geobuf/issues/comments/251002653","html_url":"https://github.com/mapbox/geobuf/issues/61#issuecomment-251002653","issue_url":"https://api.github.com/repos/mapbox/geobuf/issues/61","id":251002653,"user":{"login":"DenisCarriere","id":550895,"avatar_url":"https://avatars.githubusercontent.com/u/550895?v=3","gravatar_id":"","url":"https://api.github.com/users/DenisCarriere","html_url":"https://github.com/DenisCarriere","followers_url":"https://api.github.com/users/DenisCarriere/followers","following_url":"https://api.github.com/users/DenisCarriere/following{/other_user}","gists_url":"https://api.github.com/users/DenisCarriere/gists{/gist_id}","starred_url":"https://api.github.com/users/DenisCarriere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DenisCarriere/subscriptions","organizations_url":"https://api.github.com/users/DenisCarriere/orgs","repos_url":"https://api.github.com/users/DenisCarriere/repos","events_url":"https://api.github.com/users/DenisCarriere/events{/privacy}","received_events_url":"https://api.github.com/users/DenisCarriere/received_events","type":"User","site_admin":false},"created_at":"2016-10-02T23:08:31Z","updated_at":"2016-10-02T23:08:31Z","body":"Found the issue, the buffer data wasn't unziped.\r\n\r\nFound some code that helped out.\r\n```javascript\r\nvar zlib = require('zlib');\r\n\r\nzlib.gunzip(data, function(err, buffer) {\r\n    var tile = new VectorTile(new Protobuf(buffer));\r\n});\r\n```"}}
{"actor":{"display_login":"DenisCarriere"}}