Open GoogleCodeExporter opened 8 years ago
Sorry we dropped this on the floor. Are you still experiencing this?
I can't reproduce in any of the projects I've tried; I can take a look at your
project to help debug if you'd like. Shoot me an email at zjn@... and I'll let
you know how to grant me access.
Original comment by z...@google.com
on 4 Jan 2016 at 4:59
Hi!
I just checked, and I still have the same problem. I might also have some new
clues on what's going on.
TL;DR: A non-ascii character in the description breaks parsing of the http-json
response.
It seems that the error message has changed (I've done "gcloud components
update" a couple times since I reported this). Tried on two separate machines,
first my Mac laptop, and then on a Linux box. On the latter, I did the gcloud
components update and it switched from "old" to "new" error message after the
update.
"Old" message (traceback):
Traceback (most recent call last):
File "/home/john/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 228, in main
_cli.Execute()
File "/home/john/google-cloud-sdk/./lib/googlecloudsdk/calliope/cli.py", line 580, in Execute
result = args.cmd_func(cli=self, args=args)
File "/home/john/google-cloud-sdk/./lib/googlecloudsdk/calliope/backend.py", line 1131, in Run
output_formatter(result)
File "/home/john/google-cloud-sdk/./lib/googlecloudsdk/calliope/backend.py", line 1125, in <lambda>
output_formatter = lambda obj: command_instance.Display(args, obj)
File "/home/john/google-cloud-sdk/./lib/googlecloudsdk/dns/lib/util.py", line 46, in CatchHTTPErrorRaiseHTTPException
return func(*args, **kwargs)
File "/home/john/google-cloud-sdk/./lib/googlecloudsdk/dns/commands/managed_zones/list.py", line 63, in Display
list_printer.PrintResourceList('dns.managedZones', items)
File "/home/john/google-cloud-sdk/./lib/googlecloudsdk/core/util/list_printer.py", line 18, in PrintResourceList
console_io.PrintExtendedList(items, COLLECTION_COLUMNS[collection])
File "/home/john/google-cloud-sdk/./lib/googlecloudsdk/core/console/console_io.py", line 578, in PrintExtendedList
max_col_widths[col] = max(max_col_widths[col], len(str(row[col]))+2)
"New" error message:
ERROR: gcloud crashed (UnicodeEncodeError): 'ascii' codec can't encode
character u'\xe4' in position 2: ordinal not in range(128)
Looks like a typical python unicode bug. And 0xE4 would be 'ä', a character I
have in the description field in at least one of my domains (xn--stck-moa.se,
which translates to 'stäck.se'). A fair guess is that is what is causing the
problem, and why is not present elsewhere.
I also did try with --log-http added to the command (gcloud --project helgo-1
dns managed-zones list --log-http), and I do see the complete JSON HTTP
response, including the result with the exotic character in it.
I can reproduce the same thing on another project (used a test project at
work). Created one "nice" dns zone which worked fine, and one with an 'ä' in
it that broke things.
I can't find an obvious way to change the description of a zone without
deleting and recreating it (which would be problematic since the authoritative
nameservers might change), or I would try that too.
I can add you as a project member to helgo-1 if that is still of use, but I
guess it should be reproducable with the right (wrong) description.
/John
Original comment by john.st...@gmail.com
on 4 Jan 2016 at 8:11
Excellent, thanks for the details. Looks like that should be enough to repro on
our end.
Original comment by z...@google.com
on 4 Jan 2016 at 8:36
Should be fixed in the next Cloud SDK release (92.0.0).
Original comment by z...@google.com
on 5 Jan 2016 at 8:57
Original issue reported on code.google.com by
john.st...@gmail.com
on 13 Aug 2015 at 6:47