Skip to content

Oversized cookies are sent to ZyteAPI server resulting in downloading errors (status=400, type='/request/invalid')Β #223

@theumairahmed

Description

@theumairahmed

Background

ZyteAPI server currently has the following maximum limits on cookie objects:

  1. Overall size of cookie object: 2048
  2. name: 256
  3. value: 2100
  4. domain: 500

However, ZyteAPI middleware does not check these size limits and all cookies are sent to the server which results in a server error: (status=400, type='/request/invalid')

Desired Behavior

Similar to the maximum cookie objects warning, the ZyteAPI middleware should throw a warning and discard any cookie object within experimental.requestCookies that exceeds these limits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions