Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PANIC: called Result::unwrap() on an Err value: Could not parse stored DateTime string: 2020-11-27 01:17:30 (input contains invalid characters) #5096

Closed
ubyjvovk opened this issue Nov 27, 2020 · 2 comments
Assignees
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. team/client Issue for team Client. topic: basic error report topic: dates / DateTime topic: sqlite
Milestone

Comments

@ubyjvovk
Copy link

Hi Prisma Team! My Prisma Client just crashed. This is the report:

Versions

Name Version
Node v12.18.2
OS darwin
Prisma Client 2.12.1

Logs

  prisma-client { clientVersion: '2.12.1' }  
  plusX Execution permissions of /Users/d/w/lam/gtway/node_modules/.prisma/client/query-engine-darwin are fine  
  plusX Execution permissions of /Users/d/w/lam/gtway/node_modules/.prisma/client/query-engine-darwin are fine  
  plusX Execution permissions of /Users/d/w/lam/gtway/node_modules/.prisma/client/query-engine-darwin are fine  
  plusX Execution permissions of /Users/d/w/lam/gtway/node_modules/.prisma/client/query-engine-darwin are fine  

This maybe of interest:

at PrismaClientFetcher.request (/Users/d/w/lam/gtway/node_modules/@prisma/client/runtime/index.js:79363:15)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Also, this was the table definition in sqlite:

create table users (
    id integer primary key autoincrement,
    ntlogin text,
    name text,
    is_active int default 1,
    is_admin int default 0,
    created_at TIMESTAMP  DEFAULT CURRENT_TIMESTAMP,
    updated_at TIMESTAMP  DEFAULT CURRENT_TIMESTAMP
);

insert into users(name, ntlogin, is_admin) values ("Kenobi, Obi Wan", "owkenobi", 1);

Also, happy Thanksgiving!

@pantharshit00
Copy link
Contributor

Hi @debdude

Sorry for the late response here.

Thanks for the details, I can reproduce this issue.

Posted a reproduction here: https://github.com/harshit-test-org/prisma-issue-client-941. We should fix this.

@pantharshit00 pantharshit00 transferred this issue from prisma/prisma-client-js Jan 13, 2021
@pantharshit00 pantharshit00 added bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. team/client Issue for team Client. topic: basic error report topic: dates / DateTime topic: sqlite labels Jan 13, 2021
@matthewmueller matthewmueller assigned dpetrick and pimeys and unassigned dpetrick Jan 21, 2021
@matthewmueller matthewmueller added this to the 2.16.0 milestone Jan 21, 2021
@pimeys
Copy link
Contributor

pimeys commented Feb 1, 2021

Should be fixed in prisma/quaint#243

@pimeys pimeys closed this as completed Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. team/client Issue for team Client. topic: basic error report topic: dates / DateTime topic: sqlite
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants