Error when exporting template

Please fill in the questionnaire below.

Technical Help Questionnaire

Have you read and followed the instructions at: *READ ME FIRST* Technical Help FAQs - #2 by nigel ?

Answer: Yes

Self-Hosted Installation and Setup Questions

How have you self-hosted Baserow.

Azure VM

What are the specs of the service or server you are using to host Baserow.

4 GB RAM, should be fine.

Which version of Baserow are you using.

1.23.2

How have you configured your self-hosted installation?

docker run \
>   -d \
>   --name baserow \
>   -e BASEROW_PUBLIC_URL=https://XXX \
>   -e BASEROW_CADDY_ADDRESSES=:443 \
>   -v baserow_data:/baserow/data \
>   -p 80:80 \
>   -p 443:443 \
>   --restart unless-stopped \
>   baserow/baserow:1.23.2

What commands if any did you use to start your Baserow server?

see above

Describe the problem

Describe, step by step, how to reproduce the error or problem you are encountering.

Tried to export a rather complex template via docker exec baserow ./baserow.sh backend-cmd manage export_workspace_applications 156 --indent

Provide screenshots or include share links showing:

docker exec baserow ./baserow.sh backend-cmd manage export_workspace_applications 156 --indent
 [STARTUP][2024-10-31 22:38:08] No DATABASE_HOST or DATABASE_URL provided, using embedded postgres.  
 [STARTUP][2024-10-31 22:38:08] Using embedded baserow redis as no REDIS_HOST or REDIS_URL provided.   
 [STARTUP][2024-10-31 22:38:08] Importing REDIS_PASSWORD secret from /baserow/data/.redispass  
 [STARTUP][2024-10-31 22:38:08] Importing SECRET_KEY secret from /baserow/data/.secret  
 [STARTUP][2024-10-31 22:38:08] Importing BASEROW_JWT_SIGNING_KEY secret from /baserow/data/.jwt_signing_key  
 [STARTUP][2024-10-31 22:38:08] Importing DATABASE_PASSWORD secret from /baserow/data/.pgpass  
OTEL_RESOURCE_ATTRIBUTES=service.namespace=Baserow,service.version=1.23.2,deployment.environment=unknown
Traceback (most recent call last):
  File "/baserow/backend/src/baserow/manage.py", line 41, in <module>
    main()
  File "/baserow/backend/src/baserow/manage.py", line 37, in main
    execute_from_command_line(sys.argv)
  File "/baserow/venv/lib/python3.9/site-packages/django/core/management/__init__.py", line 446, in execute_from_command_line
    utility.execute()
  File "/baserow/venv/lib/python3.9/site-packages/django/core/management/__init__.py", line 440, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/baserow/venv/lib/python3.9/site-packages/django/core/management/base.py", line 402, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/baserow/venv/lib/python3.9/site-packages/django/core/management/base.py", line 448, in execute
    output = self.handle(*args, **options)
  File "/baserow/backend/src/baserow/core/management/commands/export_workspace_applications.py", line 74, in handle
    json.dump(
  File "/usr/lib/python3.9/json/__init__.py", line 179, in dump
    for chunk in iterable:
  File "/usr/lib/python3.9/json/encoder.py", line 429, in _iterencode
    yield from _iterencode_list(o, _current_indent_level)
  File "/usr/lib/python3.9/json/encoder.py", line 325, in _iterencode_list
    yield from chunks
  File "/usr/lib/python3.9/json/encoder.py", line 405, in _iterencode_dict
    yield from chunks
  File "/usr/lib/python3.9/json/encoder.py", line 325, in _iterencode_list
    yield from chunks
  File "/usr/lib/python3.9/json/encoder.py", line 405, in _iterencode_dict
    yield from chunks
  File "/usr/lib/python3.9/json/encoder.py", line 325, in _iterencode_list
    yield from chunks
  File "/usr/lib/python3.9/json/encoder.py", line 405, in _iterencode_dict
    yield from chunks
  File "/usr/lib/python3.9/json/encoder.py", line 438, in _iterencode
    o = _default(o)
  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 timedelta is not JSON serializable

How many rows in total do you have in your Baserow tables?

I don’t know, where can I access this data?

Please attach full logs from all of Baserow’s services

/

Good morning @dranaway.

This was fixed ~6 months in #2507. If you upgrade your instance of Baserow to >=1.24 you should be able to export once again.

Cheers,
Peter Evans