Skip to content

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

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

Closed
LizanLycan opened this issue May 3, 2024 · 2 comments
Closed

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

LizanLycan opened this issue May 3, 2024 · 2 comments
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?

@tasn
Copy link
Member

tasn commented May 5, 2025

Closing this as no response (+ libraries have changed significantly since).

@tasn tasn closed this as completed May 5, 2025
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