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

couchbase issue on ios #176

Open
GermanMontejo opened this issue Jan 18, 2018 · 0 comments
Open

couchbase issue on ios #176

GermanMontejo opened this issue Jan 18, 2018 · 0 comments
Labels

Comments

@GermanMontejo
Copy link

GermanMontejo commented Jan 18, 2018

There's a new error when I tried testing it on an ios v11 iphone SE. Here's the first one that appears:

CredStore - performQuery - Error copying matching creds. Error=-25300, query={

class = inet;

"m_Limit" = "m_LimitAll";

ptcl = http;

"r_Attributes" = 1;

sdmn = CouchbaseLite;

srvr = localhost;

sync = syna;

}

Then a 404 not found error happens when manager.post_replicate() is called. This is the error:

"withCredentials": true,
"_response": "{"status":404,"error":"not_found"}",

Note: I've omitted portions of the error because it's a long json payload.

This wasn't an issue before and I didn't change anything on our source code. I don't know what happened that made this error happen. The credentials I use are still the same.
This is where the error happens:

setupReplications(username, password) {
    if (SYNC_ENABLED) {
      const sgUrl = `http://${username}:${password}@${SG_HOST}`;
      return manager.server.post_replicate({ body: { source: sgUrl, target: DB_NAME, continuous: true } })
        .then(res => {
          manager.server.post_replicate({ body: { source: DB_NAME, target: sgUrl, continuous: true } });
          isSuccess = true;
        })
        .catch(e => console.log(e));
    }
  }
@djpongh djpongh added the icebox label Jan 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants