Title: TypeError: list indices must be integers or slices, not str · Issue #281 · python-consul/python-consul · GitHub
Open Graph Title: TypeError: list indices must be integers or slices, not str · Issue #281 · python-consul/python-consul
X Title: TypeError: list indices must be integers or slices, not str · Issue #281 · python-consul/python-consul
Description: With 1.1.0, calling catalog.node results in: index, node_data = self.consul_api.catalog.node(node, dc=datacenter) File "/nix/store/syk8xm6qgz0hqxb3gnazx9gvw70sh9ny-python3-3.8.6-env/lib/python3.8/site-packages/consul/base.py", line 1390,...
Open Graph Description: With 1.1.0, calling catalog.node results in: index, node_data = self.consul_api.catalog.node(node, dc=datacenter) File "/nix/store/syk8xm6qgz0hqxb3gnazx9gvw70sh9ny-python3-3.8.6-env/lib/python3.8/s...
X Description: With 1.1.0, calling catalog.node results in: index, node_data = self.consul_api.catalog.node(node, dc=datacenter) File "/nix/store/syk8xm6qgz0hqxb3gnazx9gvw70sh9ny-python3-3.8.6-env/lib/python...
Opengraph URL: https://github.com/python-consul/python-consul/issues/281
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TypeError: list indices must be integers or slices, not str","articleBody":"\r\nWith 1.1.0, calling catalog.node results in:\r\n```\r\n index, node_data = self.consul_api.catalog.node(node, dc=datacenter)\r\n File \"/nix/store/syk8xm6qgz0hqxb3gnazx9gvw70sh9ny-python3-3.8.6-env/lib/python3.8/site-packages/consul/base.py\", line 1390, in node\r\n params['token'] = token\r\nTypeError: list indices must be integers or slices, not str\r\n```\r\n\r\nIt seems this line was missed in bb2647b271a28680c313cec015f1c09d63a803ca - editing to use `.append` instead fixes the issue:\r\n```diff\r\n1390c1390\r\n\u003c params['token'] = token\r\n---\r\n\u003e params.append(('token', token))\r\n```","author":{"url":"https://github.com/dramaturg","@type":"Person","name":"dramaturg"},"datePublished":"2020-12-17T08:47:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/281/python-consul/issues/281"}
| 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:0af63edd-8249-5dad-0abc-898ea8de260c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EAD0:1168A1:1D6BD04:28BCF64:69778C23 |
| html-safe-nonce | 56ca55863c353f0ff12bf8d46ed25043acc081b6c18a127b93eecf242e66227b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQUQwOjExNjhBMToxRDZCRDA0OjI4QkNGNjQ6Njk3NzhDMjMiLCJ2aXNpdG9yX2lkIjoiNjgyMjA5Mjk5MjA3NzU5NzczMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b2ac6c84c62b562810da7132013ddd6bd39354af0593077f2960e5f2632ddbcb |
| hovercard-subject-tag | issue:769709961 |
| 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/python-consul/python-consul/281/issue_layout |
| twitter:image | https://opengraph.githubassets.com/73730df7befd3cfcba81534d04d9977bd12d954d29a8bd229296a0ad8842ff2f/python-consul/python-consul/issues/281 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/73730df7befd3cfcba81534d04d9977bd12d954d29a8bd229296a0ad8842ff2f/python-consul/python-consul/issues/281 |
| og:image:alt | With 1.1.0, calling catalog.node results in: index, node_data = self.consul_api.catalog.node(node, dc=datacenter) File "/nix/store/syk8xm6qgz0hqxb3gnazx9gvw70sh9ny-python3-3.8.6-env/lib/python3.8/s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dramaturg |
| hostname | github.com |
| expected-hostname | github.com |
| None | fd37f8e74ecc49b700617ea694fa6d7b395b6c9a4b79c59b3014da220462ac69 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-consul/python-consul git https://github.com/python-consul/python-consul.git |
| octolytics-dimension-user_id | 143416393 |
| octolytics-dimension-user_login | python-consul |
| octolytics-dimension-repository_id | 24473148 |
| octolytics-dimension-repository_nwo | python-consul/python-consul |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24473148 |
| octolytics-dimension-repository_network_root_nwo | python-consul/python-consul |
| 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 | acb9f387e67b45e2eeb6a57ef561ec67eb21d805 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width