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: github.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:dd94b759-88b0-2261-8796-220064049332 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D8CA:3F5237:17612D6:2004C86:697341DA |
| html-safe-nonce | 2087efc86f55e950cb231e2ebdc3da4339c1f4d4fed1226a689def942751fd67 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOENBOjNGNTIzNzoxNzYxMkQ2OjIwMDRDODY6Njk3MzQxREEiLCJ2aXNpdG9yX2lkIjoiMzMwNzAxMTI4NjUyMzY1ODcxNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2b9da7ce87d9ed8d006eceda284eca874fa4ebb4fecf3a75cb42eb8ce38d61d2 |
| 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 | 574266c5e0389fb19fcea86ddb6d5b0008f148ada57d7a37ec4c90a19caee8f6 |
| 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 | 3c64ddf9c1ec6ebf99c7b6faf0c61676d36f64c0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width