Skip to content

[15.0] Call fastapi and get bug after restart odoo services #502

Open
@vinhnguyen11

Description

@vinhnguyen11

Module

[15.0] Call api first time from postman after restart odoo services

Describe the bug

functools.partial(<bound method FastApiDispatcher.dispatch of <odoo.addons.fastapi.fastapi_dispatcher.FastApiDispatcher object at 0x7f5dd05370a0>>), /fastapi/api/v1/get_after_sale_policy_by_partner: Function declared as capable of handling request of type 'fastapi' but called with a request of type 'json'

To Reproduce

Affected versions: 15.0

Steps to reproduce the behavior:

  1. Restart odoo services
  2. Call api from postman
  3. get bug
  4. Call after two or three time, api work perfect again

Expected behavior
Run perfect after restart odoo sevices

Additional context
Python 3.10, MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions