Title: Responses are stringified and cannot be parsed · Issue #12 · ClickSend/clicksend-python · GitHub
Open Graph Title: Responses are stringified and cannot be parsed · Issue #12 · ClickSend/clicksend-python
X Title: Responses are stringified and cannot be parsed · Issue #12 · ClickSend/clicksend-python
Description: I have no idea why, but for some reason every single API call has response_type set to 'str' instead of object like it should be. There are no ClickSend APIs that return anything other than a JSON object. However, since calling str on a ...
Open Graph Description: I have no idea why, but for some reason every single API call has response_type set to 'str' instead of object like it should be. There are no ClickSend APIs that return anything other than a JSON ...
X Description: I have no idea why, but for some reason every single API call has response_type set to 'str' instead of object like it should be. There are no ClickSend APIs that return anything other than...
Opengraph URL: https://github.com/ClickSend/clicksend-python/issues/12
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Responses are stringified and cannot be parsed","articleBody":"I have no idea why, but for some reason every single API call has `response_type` set to `'str'` instead of `object` like it should be. There are no ClickSend APIs that return anything other than a JSON object. However, since calling `str` on a dict actually causes it to be serialised in a way that is not necessarily parseable Python code (like calling `repr` should) you end up with a result that _might_ be able to passed to, say, `eval` (though obviously I'd prefer not to do that!) but might not.\n\nTo be clear, the code is **not returning the raw JSON response.** It's parsing the JSON, then calling `str` on that response, which makes it not valid JSON. It also might not be valid Python. It's just supposed to be a human-readable version of the thing.\n\n## Proposed solution\n\nReplace every instance of `response_type='str'` with `response_type=object`. As far as I can tell, there are zero instances where the ClickSend API returns an actual string - even if there were, `__deserialize_object` simply returns the original value unchanged, so any strings will be passed through correctly.","author":{"url":"https://github.com/gormster","@type":"Person","name":"gormster"},"datePublished":"2025-12-12T02:58:03Z","url":"https://github.com/ClickSend/clicksend-python/issues/12"}
| 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:dde72d9f-592e-1254-7ede-931265e0d1c7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8586:EE4AB:CD9019:11760A6:6B048B5B |
| html-safe-nonce | b8f580829d8d1e5eeda7fb849137d05c78595a789096b6cee71ce04af76c5d2d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTg2OkVFNEFCOkNEOTAxOToxMTc2MEE2OjZCMDQ4QjVCIiwidmlzaXRvcl9pZCI6IjQwMjM2MDMwOTA3MTE0MTU2NDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1b7e2c2b3aa8ddc72039b725d8d8b02514bbb9f44a52e97f1dc0aedcc3417b33 |
| hovercard-subject-tag | issue:3721742888 |
| 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/ClickSend/clicksend-python/12/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c923ad46377947f3791f5ae4444ab43ab888abf5b8905e12dcd3ea7013336c69/ClickSend/clicksend-python/issues/12 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c923ad46377947f3791f5ae4444ab43ab888abf5b8905e12dcd3ea7013336c69/ClickSend/clicksend-python/issues/12 |
| og:image:alt | I have no idea why, but for some reason every single API call has response_type set to 'str' instead of object like it should be. There are no ClickSend APIs that return anything other than a JSON ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gormster |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1d5c152376e38b7d2e37f3d5179be29a73bee93b85110da28a4eebe1159cdc70 |
| turbo-cache-control | no-preview |
| go-import | github.com/ClickSend/clicksend-python git https://github.com/ClickSend/clicksend-python.git |
| octolytics-dimension-user_id | 15273660 |
| octolytics-dimension-user_login | ClickSend |
| octolytics-dimension-repository_id | 144966837 |
| octolytics-dimension-repository_nwo | ClickSend/clicksend-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 144966837 |
| octolytics-dimension-repository_network_root_nwo | ClickSend/clicksend-python |
| 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 | f5017e8ff4ea25a8011fcf0f2a0e430c60dc86c8 |
| 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