Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too 😅
24.68k
stars
651
forks
source link
[BUG]:"Encoding not recognized: 'undefined' (searched as: 'undefined')" issue #3548
Open
freddyy2024 opened 1 week ago
Report hasn't been filed before.
What version of
drizzle-orm
are you using?0.36.1
What version of
drizzle-kit
are you using?0.28.0
Other packages
"mysql2": "^3.11.4",
Describe the Bug
`
import { statActionLog } from "~/drizzle/schema"; import { db } from "../db/database" import { datetime } from "drizzle-orm/mysql-core"
// some other code to init the save data // .......
`
The insert data:
{ referer: 'http://localhost:3000/', requestUrl: '/api/download', userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36', clientIp: '127.0.0.1', createTime: 2024-11-13T19:42:24.857Z }
The fisrt time is success, when called the second time, report below issue:
"message":"Encoding not recognized: 'undefined' (searched as: 'undefined')"