Title: Invalid scope error on saveconfig · Issue #22 · orcasgit/python-nokia · GitHub
Open Graph Title: Invalid scope error on saveconfig · Issue #22 · orcasgit/python-nokia
X Title: Invalid scope error on saveconfig · Issue #22 · orcasgit/python-nokia
Description: Am I doing something wrong? I'm having trouble saving my app's credentials. macOS 10.13.6 Python 2.7.15 (venv)$ pip freeze arrow==0.12.1 backports.functools-lru-cache==1.5 certifi==2018.8.24 chardet==3.0.4 cheroot==6.5.2 CherryPy==17.3.0...
Open Graph Description: Am I doing something wrong? I'm having trouble saving my app's credentials. macOS 10.13.6 Python 2.7.15 (venv)$ pip freeze arrow==0.12.1 backports.functools-lru-cache==1.5 certifi==2018.8.24 charde...
X Description: Am I doing something wrong? I'm having trouble saving my app's credentials. macOS 10.13.6 Python 2.7.15 (venv)$ pip freeze arrow==0.12.1 backports.functools-lru-cache==1.5 certifi==2018.8.2...
Opengraph URL: https://github.com/orcasgit/python-nokia/issues/22
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Invalid scope error on saveconfig","articleBody":"Am I doing something wrong? I'm having trouble saving my app's credentials.\r\n\r\nmacOS 10.13.6\r\nPython 2.7.15\r\n\r\n```\r\n(venv)$ pip freeze\r\narrow==0.12.1\r\nbackports.functools-lru-cache==1.5\r\ncertifi==2018.8.24\r\nchardet==3.0.4\r\ncheroot==6.5.2\r\nCherryPy==17.3.0\r\ncontextlib2==0.5.5\r\nidna==2.7\r\njaraco.functools==1.20\r\nmore-itertools==4.3.0\r\nnokia==1.0.0\r\noauthlib==2.1.0\r\nportend==2.3\r\npython-dateutil==2.7.3\r\npytz==2018.5\r\nrequests==2.19.1\r\nrequests-oauth==0.4.1\r\nrequests-oauthlib==1.0.0\r\nsix==1.11.0\r\ntempora==1.13\r\nurllib3==1.23\r\nzc.lockfile==1.3.0\r\n```\r\n```\r\n(venv)$ nokia saveconfig --client-id=XXX --consumer-secret=YYY --userid=ZZZ --callback-uri=http://localhost:7071 --config=nokia.cfg\r\nMissing authentification information!\r\nStarting authentification process...\r\nTraceback (most recent call last):\r\n File \"/Users/Arie/.pyenv/versions/2.7.15/bin/nokia\", line 6, in \u003cmodule\u003e\r\n exec(compile(open(__file__).read(), __file__, 'exec'))\r\n File \"/Users/Arie/aluttik/python-nokia/bin/nokia\", line 143, in \u003cmodule\u003e\r\n server.browser_authorize()\r\n File \"/Users/Arie/aluttik/python-nokia/bin/nokia\", line 46, in browser_authorize\r\n url = self.auth.get_authorize_url()\r\n File \"/Users/Arie/aluttik/python-nokia/nokia/__init__.py\", line 79, in get_authorize_url\r\n '%s/oauth2_user/authorize2'%self.URL\r\n File \"/Users/Arie/.pyenv/versions/2.7.15/lib/python2.7/site-packages/requests_oauthlib/oauth2_session.py\", line 153, in authorization_url\r\n **kwargs), state\r\n File \"/Users/Arie/.pyenv/versions/2.7.15/lib/python2.7/site-packages/oauthlib/oauth2/rfc6749/clients/web_application.py\", line 86, in prepare_request_uri\r\n redirect_uri=redirect_uri, scope=scope, state=state, **kwargs)\r\n File \"/Users/Arie/.pyenv/versions/2.7.15/lib/python2.7/site-packages/oauthlib/oauth2/rfc6749/parameters.py\", line 79, in prepare_grant_uri\r\n params.append(('scope', list_to_scope(scope)))\r\n File \"/Users/Arie/.pyenv/versions/2.7.15/lib/python2.7/site-packages/oauthlib/oauth2/rfc6749/utils.py\", line 32, in list_to_scope\r\n raise ValueError(\"Invalid scope (%s), must be string, tuple, set, or list.\" % scope)\r\nValueError: Invalid scope (user.info,user.metrics,user.activity), must be string, tuple, set, or list.\r\n```","author":{"url":"https://github.com/aluttik","@type":"Person","name":"aluttik"},"datePublished":"2018-09-17T18:10:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/22/python-nokia/issues/22"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a84482b3-8a83-13a9-bcc6-94a485178c78 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B190:9445B:EE0E70:149CD58:696A9257 |
| html-safe-nonce | cb560c55afd42c3bfb33d8aa4899e6dabec238ec08318955c33bfc840d88d16f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTkwOjk0NDVCOkVFMEU3MDoxNDlDRDU4OjY5NkE5MjU3IiwidmlzaXRvcl9pZCI6Ijg1NDcyOTY4MzcyNTA5NTUxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5da52425b27f0f504fdecfcee84644c1bbdec3e8293d6c9addbbe62d3d28f785 |
| hovercard-subject-tag | issue:360982707 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/orcasgit/python-nokia/22/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e0b21301756db7739a96e61c909da641b761460c81e61bd2c69d46fb01971197/orcasgit/python-nokia/issues/22 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e0b21301756db7739a96e61c909da641b761460c81e61bd2c69d46fb01971197/orcasgit/python-nokia/issues/22 |
| og:image:alt | Am I doing something wrong? I'm having trouble saving my app's credentials. macOS 10.13.6 Python 2.7.15 (venv)$ pip freeze arrow==0.12.1 backports.functools-lru-cache==1.5 certifi==2018.8.24 charde... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aluttik |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4dd496afc954da9c207b2d9fbe86e3074619f565754aa1d9274aec30d9e5b8d7 |
| turbo-cache-control | no-preview |
| go-import | github.com/orcasgit/python-nokia git https://github.com/orcasgit/python-nokia.git |
| octolytics-dimension-user_id | 9833 |
| octolytics-dimension-user_login | orcasgit |
| octolytics-dimension-repository_id | 23479987 |
| octolytics-dimension-repository_nwo | orcasgit/python-nokia |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 6910558 |
| octolytics-dimension-repository_parent_nwo | maximebf/python-withings |
| octolytics-dimension-repository_network_root_id | 6910558 |
| octolytics-dimension-repository_network_root_nwo | maximebf/python-withings |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 31496a13b80a2f6ad77d6c617ee2255a3545b539 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width