Closed scit1977 closed 1 year ago
{ "msg": "com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field \"primary\" (class com.unfbx.chatgpt.entity.billing.Subscription), not marked as ignorable (19 known properties: \"access_until\", \"tax_ids\", \"soft_limit\", \"hard_limit\", \"plan\", \"soft_limit_usd\", \"hard_limit_usd\", \"billing_address\", \"business_address\", \"delinquent\", \"billing_email\", \"canceled\", \"account_name\", \"system_hard_limit_usd\", \"object\", \"po_number\", \"system_hard_limit\", \"canceled_at\", \"has_payment_method\"])\n at [Source: (okhttp3.ResponseBody$BomAwareReader); line: 18, column: 18] (through reference chain: com.unfbx.chatgpt.entity.billing.Subscription[\"primary\"])", "code": 500 }
返回的字段多了一个primary字段,jackson报错了 "hard_limit_usd": 120.0, "system_hard_limit_usd": 120.0, "plan": { "title": "Pay-as-you-go", "id": "payg" }, "primary": true, "account_name": "Cynthia Anderson", "po_number": null,
1.0.14已经有了
@scit1977 更新1.0.14版本。 1.0.14以上版本后续openai接口更新会忽略新加属性,不会再报错。
{ "msg": "com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field \"primary\" (class com.unfbx.chatgpt.entity.billing.Subscription), not marked as ignorable (19 known properties: \"access_until\", \"tax_ids\", \"soft_limit\", \"hard_limit\", \"plan\", \"soft_limit_usd\", \"hard_limit_usd\", \"billing_address\", \"business_address\", \"delinquent\", \"billing_email\", \"canceled\", \"account_name\", \"system_hard_limit_usd\", \"object\", \"po_number\", \"system_hard_limit\", \"canceled_at\", \"has_payment_method\"])\n at [Source: (okhttp3.ResponseBody$BomAwareReader); line: 18, column: 18] (through reference chain: com.unfbx.chatgpt.entity.billing.Subscription[\"primary\"])", "code": 500 }
返回的字段多了一个primary字段,jackson报错了 "hard_limit_usd": 120.0, "system_hard_limit_usd": 120.0, "plan": { "title": "Pay-as-you-go", "id": "payg" }, "primary": true, "account_name": "Cynthia Anderson", "po_number": null,