Thanks to visit codestin.com
Credit goes to github.com

Skip to content

cookieJar.fromJSON is not a function #208

@LouenLeoncoeur

Description

@LouenLeoncoeur
const cookieJar = new tough.CookieJar()
const cookie = new tough.Cookie()
cookie.fromJSON(json)
cookieJar.fromJSON(json)

This simple code outputs this error.
cookie.fromJSON is not a function

I feel stupid but it seems to me that I am doing it according to docs but the cookieJar doesn't have any import json functions

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