Title: Authentication issue in latest versions · Issue #75 · square/connect-python-sdk · GitHub
Open Graph Title: Authentication issue in latest versions · Issue #75 · square/connect-python-sdk
X Title: Authentication issue in latest versions · Issue #75 · square/connect-python-sdk
Description: Using the latest version I get the following error when trying to submit a checkout. The calling code hasn't changed recently, and if I pin my dependency at squareconnect==2.20180712.1 then it works normally. This appears to be related t...
Open Graph Description: Using the latest version I get the following error when trying to submit a checkout. The calling code hasn't changed recently, and if I pin my dependency at squareconnect==2.20180712.1 then it work...
X Description: Using the latest version I get the following error when trying to submit a checkout. The calling code hasn't changed recently, and if I pin my dependency at squareconnect==2.20180712.1 then it ...
Opengraph URL: https://github.com/square/connect-python-sdk/issues/75
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Authentication issue in latest versions","articleBody":"Using the latest version I get the following error when trying to submit a checkout. The calling code hasn't changed recently, and if I pin my dependency at `squareconnect==2.20180712.1` then it works normally.\r\n\r\nThis appears to be related to the changes in: https://github.com/square/connect-python-sdk/pull/70 \r\n\r\n```\r\nHTTP response body: {\"errors\":[{\"category\":\"AUTHENTICATION_ERROR\",\"code\":\"UNAUTHORIZED\",\"detail\":\"The `Authorization` http header of your request was malformed. The header value is expected to be of the format \\\"Bearer TOKEN\\\" (without quotation marks), where TOKEN is to be replaced with your access token (e.g. \\\"Bearer ABC123def456GHI789jkl0\\\"). For more information, see https://docs.connect.squareup.com/api/connect/v2/#requestandresponseheaders. If you are seeing this error message while using one of our officially supported SDKs, please report this to developers@squareup.com.\"}]}\r\n```\r\n\r\ncalling code:\r\n\r\n``` SQUARE_LOCATION_ID = 'XXXXX'\r\nsquareconnect.configuration.access_token = 'XXXXX'\r\nsquare = CheckoutApi()\r\nch_response = square.create_checkout(SQUARE_LOCATION_ID, ch_request)\r\n```","author":{"url":"https://github.com/harry947782","@type":"Person","name":"harry947782"},"datePublished":"2018-09-01T03:36:07Z","url":"https://github.com/square/connect-python-sdk/issues/75"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:c3e2123d-0b3d-9f91-1b9b-c549c112ab52 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E262:1DC414:441E91:5ACF46:6B05E377 |
| html-safe-nonce | 837d289f6e904aee972ccae9d1e16f1af6c8c65a9eb3678eada2cbc93873a4ba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjYyOjFEQzQxNDo0NDFFOTE6NUFDRjQ2OjZCMDVFMzc3IiwidmlzaXRvcl9pZCI6Ijg3NjAwODQ2MDIzMDk0MzYyNzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1ac14f70a6339ef563ad5a0de318fb74b0872a633b482c39b6750befba475fbd |
| hovercard-subject-tag | issue:356167787 |
| 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/square/connect-python-sdk/75/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f8526339ca4c46d0997979e3cd9c426b4d1cacdde6307a6c555832d19613ff67/square/connect-python-sdk/issues/75 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f8526339ca4c46d0997979e3cd9c426b4d1cacdde6307a6c555832d19613ff67/square/connect-python-sdk/issues/75 |
| og:image:alt | Using the latest version I get the following error when trying to submit a checkout. The calling code hasn't changed recently, and if I pin my dependency at squareconnect==2.20180712.1 then it work... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | harry947782 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9e6b0e6e5a9a8e0ddb968297ede4e2eac72d30ea174a0970eb8f22d6958e91e3 |
| turbo-cache-control | no-preview |
| go-import | github.com/square/connect-python-sdk git https://github.com/square/connect-python-sdk.git |
| octolytics-dimension-user_id | 82592 |
| octolytics-dimension-user_login | square |
| octolytics-dimension-repository_id | 64772029 |
| octolytics-dimension-repository_nwo | square/connect-python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 64772029 |
| octolytics-dimension-repository_network_root_nwo | square/connect-python-sdk |
| 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 | 023691d14ad20c90d3ee61b0a0977b17dc6b6361 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width