{"action":"created","issue":{"url":"https://api.github.com/repos/dherault/serverless-offline/issues/265","repository_url":"https://api.github.com/repos/dherault/serverless-offline","labels_url":"https://api.github.com/repos/dherault/serverless-offline/issues/265/labels{/name}","comments_url":"https://api.github.com/repos/dherault/serverless-offline/issues/265/comments","events_url":"https://api.github.com/repos/dherault/serverless-offline/issues/265/events","html_url":"https://github.com/dherault/serverless-offline/issues/265","id":242039570,"number":265,"title":"Discrepancy between how serverless offline and AWS handles encoding in path params","user":{"login":"electrikdevelopment","id":14976795,"avatar_url":"https://avatars3.githubusercontent.com/u/14976795?v=4","gravatar_id":"","url":"https://api.github.com/users/electrikdevelopment","html_url":"https://github.com/electrikdevelopment","followers_url":"https://api.github.com/users/electrikdevelopment/followers","following_url":"https://api.github.com/users/electrikdevelopment/following{/other_user}","gists_url":"https://api.github.com/users/electrikdevelopment/gists{/gist_id}","starred_url":"https://api.github.com/users/electrikdevelopment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/electrikdevelopment/subscriptions","organizations_url":"https://api.github.com/users/electrikdevelopment/orgs","repos_url":"https://api.github.com/users/electrikdevelopment/repos","events_url":"https://api.github.com/users/electrikdevelopment/events{/privacy}","received_events_url":"https://api.github.com/users/electrikdevelopment/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-07-11T13:03:26Z","updated_at":"2018-02-27T22:52:37Z","closed_at":"2017-07-26T17:22:24Z","author_association":"CONTRIBUTOR","body":"Serverless offline auto decodes path parameters where as AWS doesn't. (AWS does auto decode query params though)\r\n\r\nE.g. you have an endpoint like \"/blogposts/{id}\" and an id of \"test%7Cid\".\r\nIn AWS event.pathParameters.id is \"test%7Cid\" and in serverless offline its \"test|id\""},"comment":{"url":"https://api.github.com/repos/dherault/serverless-offline/issues/comments/369056270","html_url":"https://github.com/dherault/serverless-offline/issues/265#issuecomment-369056270","issue_url":"https://api.github.com/repos/dherault/serverless-offline/issues/265","id":369056270,"user":{"login":"fwang","id":83515,"avatar_url":"https://avatars3.githubusercontent.com/u/83515?v=4","gravatar_id":"","url":"https://api.github.com/users/fwang","html_url":"https://github.com/fwang","followers_url":"https://api.github.com/users/fwang/followers","following_url":"https://api.github.com/users/fwang/following{/other_user}","gists_url":"https://api.github.com/users/fwang/gists{/gist_id}","starred_url":"https://api.github.com/users/fwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fwang/subscriptions","organizations_url":"https://api.github.com/users/fwang/orgs","repos_url":"https://api.github.com/users/fwang/repos","events_url":"https://api.github.com/users/fwang/events{/privacy}","received_events_url":"https://api.github.com/users/fwang/received_events","type":"User","site_admin":false},"created_at":"2018-02-27T22:52:37Z","updated_at":"2018-02-27T22:52:37Z","author_association":"NONE","body":"Another observation:\r\n\r\nrequesting to \"/users/us-east-1%3Aaf33425f\" in offline, the console shows this (2nd line is from console.log of id)\r\n\r\n`\r\nServerless: GET /users/us-east-1:af33425f (λ: user_get)\r\nus-east-1%3Aaf33425f\r\n`\r\n\r\nIt seems the browser decoded it, and offline encoded back again?"}}
{"actor":{"display_login":"fwang"}}