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

Error: Cannot parse content. No Content-Type defined. #1312

Open
LizanLycan opened this issue May 3, 2024 · 1 comment
Open

Error: Cannot parse content. No Content-Type defined. #1312

LizanLycan opened this issue May 3, 2024 · 1 comment
Labels
lib/javascript JavaScript client library

Comments

@LizanLycan
Copy link

LizanLycan commented May 3, 2024

Bug Report

Version

1.22.0

  • 1.22.0

Platform

Darwin MacBook-Pro.local 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:25 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6030 arm64

Description

I tried this code:

svixClient.eventType.list({ includeArchived: true })

I expected to see this happen:

  • Listing me the event types.

Instead, this happened:

Error: Cannot parse content. No Content-Type defined.
    at Function.parse (/Users/user/Documents/project/node_modules/.pnpm/[email protected]/node_modules/svix/src/openapi/models/ObjectSerializer.ts:602:19)
    at EventTypeApiResponseProcessor.<anonymous> (/Users/user/Documents/project/node_modules/.pnpm/[email protected]/node_modules/svix/src/openapi/apis/EventTypeApi.ts:1208:34)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/user/Documents/project/node_modules/.pnpm/[email protected]/node_modules/svix/dist/openapi/apis/EventTypeApi.js:5:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
@tasn tasn added the lib/javascript JavaScript client library label Aug 1, 2024
@tasn
Copy link
Member

tasn commented Aug 1, 2024

The libraries return this when the server returns a malformed response. Which server are you working against?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lib/javascript JavaScript client library
Projects
None yet
Development

No branches or pull requests

2 participants