{"action":"created","issue":{"url":"https://api.github.com/repos/OpenIDC/pyoidc/issues/339","repository_url":"https://api.github.com/repos/OpenIDC/pyoidc","labels_url":"https://api.github.com/repos/OpenIDC/pyoidc/issues/339/labels{/name}","comments_url":"https://api.github.com/repos/OpenIDC/pyoidc/issues/339/comments","events_url":"https://api.github.com/repos/OpenIDC/pyoidc/issues/339/events","html_url":"https://github.com/OpenIDC/pyoidc/issues/339","id":225886745,"number":339,"title":"GrantError: No grant found for state:'p3bL1PzBmKBI94GR'","user":{"login":"rajeceind","id":26249341,"avatar_url":"https://avatars2.githubusercontent.com/u/26249341?v=3","gravatar_id":"","url":"https://api.github.com/users/rajeceind","html_url":"https://github.com/rajeceind","followers_url":"https://api.github.com/users/rajeceind/followers","following_url":"https://api.github.com/users/rajeceind/following{/other_user}","gists_url":"https://api.github.com/users/rajeceind/gists{/gist_id}","starred_url":"https://api.github.com/users/rajeceind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajeceind/subscriptions","organizations_url":"https://api.github.com/users/rajeceind/orgs","repos_url":"https://api.github.com/users/rajeceind/repos","events_url":"https://api.github.com/users/rajeceind/events{/privacy}","received_events_url":"https://api.github.com/users/rajeceind/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-03T05:22:18Z","updated_at":"2017-05-04T05:06:14Z","closed_at":null,"body":"Hi,\r\nI am using OP2 provider and RP3. When running the same getting error after authorization as \r\n\r\n> 'error_description': u'Failed to verify client due to: String or Integer object expected for key, unicode found', 'error': u'unauthorized_client'\r\n\r\nIf i am writing my own RP and sending access_token_request getting error like\r\n> GrantError(\"No grant found for state:'%s'\" % state)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/OpenIDC/pyoidc/issues/comments/299097781","html_url":"https://github.com/OpenIDC/pyoidc/issues/339#issuecomment-299097781","issue_url":"https://api.github.com/repos/OpenIDC/pyoidc/issues/339","id":299097781,"user":{"login":"VJalili","id":9027482,"avatar_url":"https://avatars0.githubusercontent.com/u/9027482?v=3","gravatar_id":"","url":"https://api.github.com/users/VJalili","html_url":"https://github.com/VJalili","followers_url":"https://api.github.com/users/VJalili/followers","following_url":"https://api.github.com/users/VJalili/following{/other_user}","gists_url":"https://api.github.com/users/VJalili/gists{/gist_id}","starred_url":"https://api.github.com/users/VJalili/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VJalili/subscriptions","organizations_url":"https://api.github.com/users/VJalili/orgs","repos_url":"https://api.github.com/users/VJalili/repos","events_url":"https://api.github.com/users/VJalili/events{/privacy}","received_events_url":"https://api.github.com/users/VJalili/received_events","type":"User","site_admin":false},"created_at":"2017-05-04T05:06:14Z","updated_at":"2017-05-04T05:06:14Z","body":"String objects in python 2.x are ascii, while all strings in python 3.x are unicode. \r\nThe issue you have here is that you're sending \"some value\" in unicode to a string object, which under python 2.x is expected to be ascii. \r\n\r\nIt would be great to have pyoidc python 2.x compatible; its a lot of work. However, I'm using RP3 and OP3 (not OP2) everyday in python 2.7 with \"less\" issues :) \r\nSo, you should be able to run these examples. Few suggestions: \r\n- make sure all the info you're using in OP2/RP3 are ascii.\r\n- make sure domain addresses (e.g., RP or OP addresses) are ascii. \r\n- upgrade to python 3.x, if feasible in your application scenario. \r\n\r\n"}}
{"actor":{"display_login":"VJalili"}}