Skip to content

[BUG]: CrudApiPlugin returns response with invalid encoding #518

@waldekmastykarz

Description

@waldekmastykarz

Description

CrudApiPlugin returns response with invalid encoding

Expected behaviour

  {
    "OrderID": 10424,
    "CustomerID": "MEREP",
    "EmployeeID": 7,
    "OrderDate": "1997-01-23T00:00:00",
    "RequiredDate": "1997-02-20T00:00:00",
    "ShippedDate": "1997-01-27T00:00:00",
    "ShipVia": 2,
    "Freight": 370.61,
    "ShipName": "Mère Paillarde",
    "ShipAddress": "43 rue St. Laurent",
    "ShipCity": "Montréal",
    "ShipRegion": "Québec",
    "ShipPostalCode": "H1J 1C3",
    "ShipCountry": "Canada"
  }

Actual behaviour

{
  "OrderID": 10424,
  "CustomerID": "MEREP",
  "EmployeeID": 7,
  "OrderDate": "1997-01-23T00:00:00",
  "RequiredDate": "1997-02-20T00:00:00",
  "ShippedDate": "1997-01-27T00:00:00",
  "ShipVia": 2,
  "Freight": 370.61,
  "ShipName": "M�e Paillarde",
  "ShipAddress": "43 rue St. Laurent",
  "ShipCity": "Montr�l",
  "ShipRegion": "Qu�ec",
  "ShipPostalCode": "H1J 1C3",
  "ShipCountry": "Canada"
}                                                                                                                              

Steps to reproduce

devproxy preset get northwinddb
devproxy -c northwind.json
curl -ix http://127.0.0.1:8000 https://api.northwind.com/orders/10424

Dev Proxy Version

latest from main

Operating system (environment)

macOS

Shell

zsh

Configuration file

northwind.json

Additional Info

No response

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions