Uploaded image for project: 'FreeNAS / TrueNAS'
  1. FreeNAS / TrueNAS
  2. NAS-109198

traceback in CLI system->boot->get_state

    XMLWordPrintable

    Details

      Description

      [sc01]> system boot get_state                                                                                                                                                                                                                                                                                        [2/1530]Traceback (most recent call last):
        File "/usr/bin/cli", line 12, in <module>
          sys.exit(main())
        File "/usr/lib/python3/dist-packages/midcli/__main__.py", line 106, in main
          cli.run()
        File "/usr/lib/python3/dist-packages/midcli/__main__.py", line 92, in run
          self.context.process_input(text)
        File "/usr/lib/python3/dist-packages/midcli/context.py", line 202, in process_input
          namespace = self.current_namespace.process_input(text)
        File "/usr/lib/python3/dist-packages/midcli/context.py", line 66, in process_input
          return i.process_input(rest)
        File "/usr/lib/python3/dist-packages/midcli/context.py", line 66, in process_input
          return i.process_input(rest)
        File "/usr/lib/python3/dist-packages/midcli/context.py", line 69, in process_input
          i.process_input(rest)
        File "/usr/lib/python3/dist-packages/midcli/command/common_syntax/command.py", line 25, in process_input
          self.run(args, kwargs)
        File "/usr/lib/python3/dist-packages/midcli/command/generic_call/__init__.py", line 84, in run
          self._run_noninteractive(args, kwargs)
        File "/usr/lib/python3/dist-packages/midcli/command/generic_call/__init__.py", line 129, in _run_noninteractive
          self.call(self.method["name"], *call_args, job=self.method["job"])
        File "/usr/lib/python3/dist-packages/midcli/command/call_mixin/__init__.py", line 36, in call
          print(self.context.display_mode_manager.mode.display(rv))
        File "/usr/lib/python3/dist-packages/midcli/display_mode/mode/polymorphic.py", line 17, in display
          return self.display_object(value)
        File "/usr/lib/python3/dist-packages/midcli/display_mode/mode/table.py", line 22, in display_object
          table = [[k, self.value_to_text(v)] for k, v in object.items()]
        File "/usr/lib/python3/dist-packages/midcli/display_mode/mode/table.py", line 22, in <listcomp>
          table = [[k, self.value_to_text(v)] for k, v in object.items()]
        File "/usr/lib/python3/dist-packages/midcli/display_mode/mode/text_mixin.py", line 27, in value_to_text
          return json.dumps(value)
        File "/usr/lib/python3.9/json/__init__.py", line 231, in dumps
          return _default_encoder.encode(obj)
        File "/usr/lib/python3.9/json/encoder.py", line 199, in encode
          chunks = self.iterencode(o, _one_shot=True)
        File "/usr/lib/python3.9/json/encoder.py", line 257, in iterencode
          return _iterencode(o, 0)
        File "/usr/lib/python3.9/json/encoder.py", line 179, in default
          raise TypeError(f'Object of type {o.__class__.__name__} '
      TypeError: Object of type datetime is not JSON serializable

       

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                vladimirv Vladimir Vinogradenko
                Reporter:
                caleb Caleb St. John
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated: