Skip to content

Support capturing traffic when using ofetch #1797

@TimvdEijnden

Description

@TimvdEijnden

Description

Currently https://github.com/unjs/ofetch is not supported, which is used by nuxt 3.

Why this feature/change is important?

Before we were using axios which was supported.

Now we're ending up with these errors and cannot override requests:

 ERROR  [unhandledRejection] socket hang up                        10:49:42 AM

  at connResetException (node:internal/errors:717:14)
  at Socket.socketOnEnd (node:_http_client:526:23)
  at Socket.emit (node:events:525:35)
  at Socket.emit (node:domain:489:12)
  at endReadableNT (node:internal/streams/readable:1359:12)
  at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions