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/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:7d835716-72b4-d489-4116-65883bdb1d29 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | BBA8:3634E6:3D6F1:526D0:6972FDFD |
| html-safe-nonce | 66110b8474942b05da7553718a30a01d0fa903ccc7a4a8e76dbc5c1ad4bc557c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkE4OjM2MzRFNjozRDZGMTo1MjZEMDo2OTcyRkRGRCIsInZpc2l0b3JfaWQiOiI2ODczMDI3NDczMDk3MDMxMTY1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b8a3cc89ced131078a2742ab439c077ce0f97193ef13d2f79b59b7e62960dd5d |
| hovercard-subject-tag | pull_request:1373518507 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/checks |
| 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 | 9946c12a4847916f32068429cb2ad536f7d8450fc8b70730d0e9aa7861057db8 |
| turbo-cache-control | no-preview |
| 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 full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f92f1208f12997e73ccb28d2f389b2adab0c98a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width