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

ClickHouseError: CANNOT_PARSE_INPUT_ASSERTION_FAILED #320

Open
Mosquid opened this issue Oct 6, 2024 · 1 comment
Open

ClickHouseError: CANNOT_PARSE_INPUT_ASSERTION_FAILED #320

Mosquid opened this issue Oct 6, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Mosquid
Copy link

Mosquid commented Oct 6, 2024

Report

getting this error when trying to test any prompt locally

ClickHouseError: Cannot parse input: expected '"' before: '.307Z","organizationId":"...","projectId":"...","promptCost":0.000018,"completionCost":0.000002,"totalCost":0.00002,': (while reading the value of key timestamp): While executing ParallelParsingBlockInputFormat: (at row 1)
.
    at parseError (/pezzo/node_modules/packages/client-common/src/error/parse_error.ts:29:12)
    at ClientRequest.onResponse (/pezzo/node_modules/packages/client-node/src/connection/node_base_connection.ts:155:28)
    at processTicksAndRejections (node:internal/process/task_queues:95:5) {
  code: '27',
  type: 'CANNOT_PARSE_INPUT_ASSERTION_FAILED'
}

Expected behavior

No response

Steps to reproduce the problem

  1. Run Pezzo using docker-compose
  2. Create any prompt
  3. Run a test

Logs (if applicable)

ClickHouseError: Cannot parse input: expected '"' before: '.307Z","organizationId":"...","projectId":"...","promptCost":0.000018,"completionCost":0.000002,"totalCost":0.00002,': (while reading the value of key timestamp): While executing ParallelParsingBlockInputFormat: (at row 1)
.
    at parseError (/pezzo/node_modules/packages/client-common/src/error/parse_error.ts:29:12)
    at ClientRequest.onResponse (/pezzo/node_modules/packages/client-node/src/connection/node_base_connection.ts:155:28)
    at processTicksAndRejections (node:internal/process/task_queues:95:5) {
  code: '27',
  type: 'CANNOT_PARSE_INPUT_ASSERTION_FAILED'
}

Pezzo version

0.8.0

How do you use Pezzo?

Local Development Setup

@Mosquid Mosquid added the bug Something isn't working label Oct 6, 2024
@Mosquid
Copy link
Author

Mosquid commented Oct 6, 2024

UPD: I was able to "fix" it by changing the timestamp format from ISO string to a Unix timestamp, like so:

request.timestamp => timestamp: new Date(request.timestamp).getTime().toString()

in apps/server/src/app/reporting/reporting.service.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant