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

CookieManager.set communicates errors on invalid domain property poorly. #103

Open
francisleigh opened this issue Jan 29, 2021 · 1 comment

Comments

@francisleigh
Copy link

I am getting this error when using the Documented approach for setting a cookie

Exception '-[NSException localizedDescription]: unrecognized selector sent to instance 0x600002440180' was thrown while invoking set on target RNCookieManagerIOS with params (
    "http://example.com",
        {
        domain = "some domain";
        expires = "2015-05-30T12:30:00.00-05:00";
        name = myCookie;
        path = "/";
        value = myValue;
        version = 1;
    },
    0,
    4372,
    4373
)

After a process of elimination, it is the domain field that causes this error. it would be good to have some more informative error messaging around method props.

@iamjon
Copy link

iamjon commented May 2, 2021

@francisleigh we were dealing with a similar bug. If you download the latest version 6.0.7 it has a nice warning for this issue. I'd even mark this as closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants