New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ansible 2.6 / python3: CallError: builtins.TypeError: the JSON object must be str, not 'bytes' #374
Comments
please try to show the content of the json-value as well |
It was my mistake, I should have used With the following sticking plaster it works:
However, I imagine that really it's the responsibility of the caller of this function to pass json_args as as a string, not bytes. FWIW, I did also log json_args. The value was:
|
Thanks for reporting this. I'll add something to CI, because that change needs tested in both directions. |
The problem is specific to Python>2,<3.6:
This is a minor pain, I need to add another CI target to cover 3.5. There is an annoying balance between speedy but inaccurate or dog-slow (and thus forgotten/ignored) CI |
Sorry for the crazy delay - discovered a can of worms around Python 3.x in the process! You may wish to consider subscribing to #426 in the meantime. The fix for this was committed in 16911c9. This is now on the master branch and will make it into the next release. To be updated when a new release is made, subscribe to https://networkgenomics.com/mail/mitogen-announce/ Thanks for reporting this! |
d2eb01f tests: pin idna to last supporting 2.6-compat version. b90889c tests: pin idna to last supporting 2.6-compat version. 9da6e6a tests: don't call Router.shutdown() twice. b2b7e7b tests: file_service_test fixes 04755c3 issue #426: tighten up PushFileService types. 8fa3c74 issue #426: RouterMonitor format incorrect for 3->2 forward. d8b9634 issue #426: PushFileService missing to_text() call. 1e9f344 issue #426: big hack so reset_connection has task_var access 18bfde5 issue #444: update Changelog. 835bead tests: allow running scripts from any subdir. 81c93e1 ci: remove duplicate /usr/bin/time call ca9ae45 issue #426: TemporaryEnvironment must coerce to Unicode. 4bc0d0e issue #426: apply_mode_spec() must handle bytes. a8921bb tests: fix scaling in fork_histogram 374a361 docs: try to fix CSS difference between local and rtfd 861be2e docs: wrap text around logos b084d83 docs: fit SVG viewbox to ansible logo 98d06e2 docs: delete shame.rst to make room for new chapters. 5f3244a docs: import pcaps (using LFS) to regenerate charts. 6936b93 tests: import fork_histogram.py. 5a96d13 issue #426: fix all.yml sorting, one more delegate_to bd82fa1 issue #426: fix low_level_execute_command.yml breakage. a6e6bc4 issue #426: to_text filter. d15f533 Turn on Travis build notifcations, but send them to IRC. 9d87f03 issue #426: disable Ansible smart transport. 49d37bf issue #426: remove LANG and LC_ALL during tests. a6e6fd1 issue #426: more 2->3 test fixes. 67f710f issue #426: use delegate_to in fixup_perms2 and copy.yml a67a436 docs: add #374 to Changelog. 2b229a6 docs: add thanks entry.
…lan_changes Added missing dialplan for the manual dial ivr traversal handling
lxc exec --mode=noninteractive
which is more widely compatible #372 patchTest case:
gold-master
is an ubuntu 16.04 lxd container.Works with mitogen commented out. With mitogen enabled, I get:
With
-vvv
there is an exception traceback shown:Looks like a bytes to str conversion is missing somewhere.
I tried a band-aid ofUPDATE: see below.json.loads(str(json_args))
, but this then gives a different errorThe text was updated successfully, but these errors were encountered: