Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Is there a way to disable loginServiceConfiguration lookups? #48

Open
thatjuan opened this issue May 29, 2016 · 1 comment
Open

Is there a way to disable loginServiceConfiguration lookups? #48

thatjuan opened this issue May 29, 2016 · 1 comment

Comments

@thatjuan
Copy link

I'm developing for a Meteor backend that has a custom login system in place. For that reason, the accounts package is not installed. So every time I connect to it using SwiftDDP I see the following:

2016-05-28 18:12:59.698 [Debug] [DDPClient.swift:260] ddpMessageHandler > Received message: {
    error =     {
        error = 404;
        errorType = "Meteor.Error";
        message = "Subscription 'meteor.loginServiceConfiguration' not found [404]";
        reason = "Subscription 'meteor.loginServiceConfiguration' not found";
    };
    id = 4a363B8780024378AEB1F328E4A60E14;
    msg = nosub;
}
2016-05-28 18:12:59.714 [Error] [DDPClient.swift:489] nosub(_:error:) > DDPError(json: Optional({
    error = 404;
    errorType = "Meteor.Error";
    message = "Subscription 'meteor.loginServiceConfiguration' not found [404]";
    reason = "Subscription 'meteor.loginServiceConfiguration' not found";
}))

This may be a non-issue, but it seems unnecessary to make those calls. Is there a way to make the library not try to look that up automatically?

@siegesmund
Copy link
Owner

Hmmm. Yea, I see what's happening.

This is nothing more than a subscription. You should be able to just comment out the following lines with no ill effects. If this works for you, I'll see about making this change a permanent option.

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

No branches or pull requests

2 participants