Title: Fix TypeError returned when insufficient Authorization by middaugh · Pull Request #9 · IntuitDeveloper/SampleOAuth2_UsingPythonClient · GitHub
Open Graph Title: Fix TypeError returned when insufficient Authorization by middaugh · Pull Request #9 · IntuitDeveloper/SampleOAuth2_UsingPythonClient
X Title: Fix TypeError returned when insufficient Authorization by middaugh · Pull Request #9 · IntuitDeveloper/SampleOAuth2_UsingPythonClient
Description: If app doesn't have authentication rights, then the code sends a type error. Fixed by wrapping casting response.content to string. User can then see the authorization error message in the app. Example error that was previously returned: Error: SampleOAuth2_UsingPythonClient\app\views.py", line 122, in qbo_request return HttpResponse(b' '.join([response.content, str(response.status_code)])) TypeError: sequence item 1: expected a bytes-like object, str found
Open Graph Description: If app doesn't have authentication rights, then the code sends a type error. Fixed by wrapping casting response.content to string. User can then see the authorization error message in the app. ...
X Description: If app doesn't have authentication rights, then the code sends a type error. Fixed by wrapping casting response.content to string. User can then see the authorization error message in the a...
Opengraph URL: https://github.com/IntuitDeveloper/SampleOAuth2_UsingPythonClient/pull/9
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:db2c67b5-fa76-1af1-5bd3-d63b1940efad |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BA82:327374:3E2BF4D:54DD764:6972E50A |
| html-safe-nonce | c2875f8390103019df55520f4f66f859c383b2208db345c4aa9a4fc9e0f20e8a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTgyOjMyNzM3NDozRTJCRjREOjU0REQ3NjQ6Njk3MkU1MEEiLCJ2aXNpdG9yX2lkIjoiMjY3MjYyOTUzMTcyMTY1ODk4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 16c68cf23145b8fdb3b1dfffa61c8bfdac8a631ac2322118d031dc716c8cb818 |
| hovercard-subject-tag | pull_request:1373518507 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/IntuitDeveloper/SampleOAuth2_UsingPythonClient/pull/9/files |
| twitter:image | https://avatars.githubusercontent.com/u/37889895?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/37889895?s=400&v=4 |
| og:image:alt | If app doesn't have authentication rights, then the code sends a type error. Fixed by wrapping casting response.content to string. User can then see the authorization error message in the app. ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 824b30a290fe1f3775d1c3b755ace6ec71165752363f95d9255c1b87220040e4 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/IntuitDeveloper/SampleOAuth2_UsingPythonClient git https://github.com/IntuitDeveloper/SampleOAuth2_UsingPythonClient.git |
| octolytics-dimension-user_id | 9217998 |
| octolytics-dimension-user_login | IntuitDeveloper |
| octolytics-dimension-repository_id | 151657857 |
| octolytics-dimension-repository_nwo | IntuitDeveloper/SampleOAuth2_UsingPythonClient |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 151657857 |
| octolytics-dimension-repository_network_root_nwo | IntuitDeveloper/SampleOAuth2_UsingPythonClient |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7ef892904a22cef6ce15e4347cbf70e4cbfdc883 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width