Title: Allow non-JSON payloads · Issue #16 · msgflo/msgflo-python · GitHub
Open Graph Title: Allow non-JSON payloads · Issue #16 · msgflo/msgflo-python
X Title: Allow non-JSON payloads · Issue #16 · msgflo/msgflo-python
Description: Currently msgflo-python fails if payloads can't be serialized as JSON: Traceback (most recent call last): File "/home/bergie/.local/lib/python2.7/site-packages/gevent/greenlet.py", line 536, in run result = self._run(*self.args, **self.k...
Open Graph Description: Currently msgflo-python fails if payloads can't be serialized as JSON: Traceback (most recent call last): File "/home/bergie/.local/lib/python2.7/site-packages/gevent/greenlet.py", line 536, in run...
X Description: Currently msgflo-python fails if payloads can't be serialized as JSON: Traceback (most recent call last): File "/home/bergie/.local/lib/python2.7/site-packages/gevent/greenlet.py", li...
Opengraph URL: https://github.com/msgflo/msgflo-python/issues/16
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow non-JSON payloads","articleBody":"Currently msgflo-python fails if payloads can't be serialized as JSON:\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"/home/bergie/.local/lib/python2.7/site-packages/gevent/greenlet.py\", line 536, in run\r\n result = self._run(*self.args, **self.kwargs)\r\n File \"/home/bergie/Projects/c-base/farbgeber/farbgeber.py\", line 107, in loop\r\n self.send_palette(palette)\r\n File \"/home/bergie/Projects/c-base/farbgeber/farbgeber.py\", line 128, in send_palette\r\n self.send('palette', palette)\r\n File \"/home/bergie/.local/lib/python2.7/site-packages/msgflo/msgflo.py\", line 54, in send\r\n self._engine._send(outport, outdata)\r\n File \"/home/bergie/.local/lib/python2.7/site-packages/msgflo/msgflo.py\", line 234, in _send\r\n serialized = json.dumps(data)\r\n File \"/usr/lib/python2.7/json/__init__.py\", line 243, in dumps\r\n return _default_encoder.encode(obj)\r\n File \"/usr/lib/python2.7/json/encoder.py\", line 207, in encode\r\n chunks = self.iterencode(o, _one_shot=True)\r\n File \"/usr/lib/python2.7/json/encoder.py\", line 270, in iterencode\r\n return _iterencode(o, 0)\r\n File \"/usr/lib/python2.7/json/encoder.py\", line 184, in default\r\n raise TypeError(repr(o) + \" is not JSON serializable\")\r\nTypeError: \u003cColor #cc5d00\u003e is not JSON serializable\r\n```","author":{"url":"https://github.com/bergie","@type":"Person","name":"bergie"},"datePublished":"2017-05-05T23:10:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/16/msgflo-python/issues/16"}
| 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:6606188c-6ca1-faad-8748-120bfa1744fc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA4E:313CEF:3FA3EE2:5689AEA:6972EAA5 |
| html-safe-nonce | ed7f0ee7cf351375451c35113005b4f66bea56a4bd23c1e0f30035c86cedc341 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTRFOjMxM0NFRjozRkEzRUUyOjU2ODlBRUE6Njk3MkVBQTUiLCJ2aXNpdG9yX2lkIjoiODk0MTc2MDI3NTc5NDgxNTY1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e51f02aceedc99493aa09b3b33e7539693f0afe8be7a067068d6abac3a6ca217 |
| hovercard-subject-tag | issue:226713698 |
| 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/msgflo/msgflo-python/16/issue_layout |
| twitter:image | https://opengraph.githubassets.com/931ee9fc3a2922d10cdd24f9d17a262e09f9ee0fcd69467f48f698312ccdc0e0/msgflo/msgflo-python/issues/16 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/931ee9fc3a2922d10cdd24f9d17a262e09f9ee0fcd69467f48f698312ccdc0e0/msgflo/msgflo-python/issues/16 |
| og:image:alt | Currently msgflo-python fails if payloads can't be serialized as JSON: Traceback (most recent call last): File "/home/bergie/.local/lib/python2.7/site-packages/gevent/greenlet.py", line 536, in run... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bergie |
| hostname | github.com |
| expected-hostname | github.com |
| None | 824b30a290fe1f3775d1c3b755ace6ec71165752363f95d9255c1b87220040e4 |
| turbo-cache-control | no-preview |
| go-import | github.com/msgflo/msgflo-python git https://github.com/msgflo/msgflo-python.git |
| octolytics-dimension-user_id | 12742589 |
| octolytics-dimension-user_login | msgflo |
| octolytics-dimension-repository_id | 36836658 |
| octolytics-dimension-repository_nwo | msgflo/msgflo-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36836658 |
| octolytics-dimension-repository_network_root_nwo | msgflo/msgflo-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 | 7ef892904a22cef6ce15e4347cbf70e4cbfdc883 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width