8000 Object of type FVal is not JSON serializable · Issue #9777 · rotki/rotki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Object of type FVal is not JSON serializable #9777
Closed
@vongrad

Description

@vongrad

Problem Definition

After I import data from Bitstamp and click on "Profit and Loss Report" -> "Generate", I get the error:

Profit and Loss Report Generation 
The report generation was not possible due to an error

An unexpected response was received while generating the profit and loss report. This might indicate an issue with the generation mechanism. Please check the logs for any error messages (you might have to enable debug logging first) and create an issue.
          
The backend query task died unexpectedly: Object of type FVal is not JSON serializable

Logs

[11/04/2025 23:31:53 CEST] DEBUG rotkehlchen.exchanges.bitstamp Greenlet-7: Bitstamp API request request_url=https://www.bitstamp.net/api/v2/crypto-transactions/, options={'limit': 1000, 'offset': 15000, 'include_ious': False}
[11/04/2025 23:31:53 CEST] DEBUG rotkehlchen.exchanges.bitstamp Greenlet-7: Remaining Bitstamp unmatched crypto_asset_movements=[]
[11/04/2025 23:31:53 CEST] ERROR rotkehlchen.api.rest Greenlet with id 5463821568: Greenlet for task 12 dies with exception: Object of type FVal is not JSON serializable.
Exception Name: <class 'TypeError'>
qException Info: Object of type FVal is not JSON serializable
Traceback:
   File "src/gevent/greenlet.py", line 900, in gevent._gevent_cgreenlet.Greenlet.run
  File "rotkehlchen/api/rest.py", line 461, in _do_query_async
  File "rotkehlchen/api/rest.py", line 1698, in process_history
  File "rotkehlchen/rotkehlchen.py", line 962, in process_history
  File "rotkehlchen/history/manager.py", line 265, in get_history
  File "rotkehlchen/exchanges/exchange.py", line 422, in query_history_with_callbacks
  File "rotkehlchen/utils/mixins/lockable.py", line 48, in wrapper
  File "rotkehlchen/exchanges/exchange.py", line 382, in query_history_events
  File "rotkehlchen/db/history_events.py", line 147, in add_history_events
  File "rotkehlchen/db/history_events.py", line 119, in add_history_event
  File "rotkehlchen/history/events/structures/asset_movement.py", line 154, in serialize_for_db
  File "rotkehlchen/history/events/structures/base.py", line 208, in _serialize_base_tuple_for_db
  File "json/__init__.py", line 231, in dumps
  File "json/encoder.py", line 200, in encode
  File "json/encoder.py", line 258, in iterencode
  File "json/encoder.py", line 180, in default

System Description

Operating system: MacOS Sonoma 14.6
Rotki version:1.38.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0