after migration of most of my server methods to async I’m getting quite a lot warnings (using WARN_WHEN_USING_OLD_API=true) from the accounts-base.
E.g. coming from resuming a session:
Calling method users.findOne from old API on server.
This method will be removed, from the server, in version 3.
Trace is below:
[object Object]
at warnUsingOldApi (packages/mongo/collection.js:24:12)
at Collection.findOne (packages/mongo/collection.js:452:5)
at MethodInvocation.defaultResumeLoginHandler (packages/accounts-base/accounts_server.js:1555:29)
at MethodInvocation.<anonymous> (packages/accounts-base/accounts_server.js:1539:38)
at MethodInvocation.<anonymous> (packages/meteor.js:365:18)
at packages/accounts-base/accounts_server.js:589:31
at /Users/christianwahle/.meteor/packages/promise/.0.12.2.7eeca.2rkxk7++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/fiber_pool.js:43:40
Also there are several warnings coming at server startup, since obviously index creation of accounts-base is not using createIndexAsync yet. Although there seems to be a PR on this already.
Is there anything planned here? Couldn’t find anything on the roadmap.
Hello,
Same problem here.
I have a lot of this warnings :
Calling method users.findOne from old API on server.
W20231208-10:14:51.995(1)? (STDERR) This method will be removed, from the server, in version 3.
W20231208-10:14:51.996(1)? (STDERR) Trace is below:
W20231208-10:14:51.996(1)? (STDERR) [object Object]
W20231208-10:14:51.996(1)? (STDERR) at warnUsingOldApi (packages/mongo/collection.js:24:12)
W20231208-10:14:51.996(1)? (STDERR) at Collection.findOne (packages/mongo/collection.js:452:5)
W20231208-10:14:51.997(1)? (STDERR) at MethodInvocation.defaultResumeLoginHandler (packages/accounts-base/accounts_server.js:1555:29)
W20231208-10:14:51.997(1)? (STDERR) at MethodInvocation.<anonymous> (packages/accounts-base/accounts_server.js:1539:38)
W20231208-10:14:51.997(1)? (STDERR) at MethodInvocation.<anonymous> (packages/meteor.js:365:18)
W20231208-10:14:51.997(1)? (STDERR) at packages/accounts-base/accounts_server.js:589:31
W20231208-10:14:51.997(1)? (STDERR) at /Users/dokithonon/.meteor/packages/promise/.0.12.2.1r139hz.k8kv++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/fiber_pool.js:43:40
W20231208-10:14:52.002(1)? (STDERR)
W20231208-10:14:52.002(1)? (STDERR)
W20231208-10:14:52.002(1)? (STDERR) Calling method users.findOne from old API on server.
W20231208-10:14:52.003(1)? (STDERR) This method will be removed, from the server, in version 3.
W20231208-10:14:52.003(1)? (STDERR) Trace is below:
W20231208-10:14:52.003(1)? (STDERR) [object Object]
W20231208-10:14:52.003(1)? (STDERR) at warnUsingOldApi (packages/mongo/collection.js:24:12)
W20231208-10:14:52.003(1)? (STDERR) at Collection.findOne (packages/mongo/collection.js:452:5)
W20231208-10:14:52.004(1)? (STDERR) at packages/accounts-base/accounts_server.js:455:25
W20231208-10:14:52.004(1)? (STDERR) at /Users/dokithonon/.meteor/packages/promise/.0.12.2.1r139hz.k8kv++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/fiber_pool.js:43:40