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

Server error 500 #5

Open
DrMoriarty opened this issue Apr 7, 2015 · 3 comments
Open

Server error 500 #5

DrMoriarty opened this issue Apr 7, 2015 · 3 comments

Comments

@DrMoriarty
Copy link

Hello! I'm trying to use VK login feature.
I registered app Id

            ServiceConfiguration.configurations.insert
                service: 'vk',
                appId:   '4866449',
                secret:  '___secret___'

On client I try to login user

        if Accounts.loginServicesConfigured()
            Meteor.loginWithVk {requestPermissions:['video', 'offline']}, (err, token) ->
                console.log 'VK login error', err if err
                console.log 'VK token', token if token

After VK login I get this error:

[Log] VK login error  (4f7ab096f6cedfa0f73c6ee4e1f69d9f25160d8b.js, line 161)
Error
details: undefined
error: 500
errorType: "Meteor.Error"
message: "Internal server error [500]"
reason: "Internal server error"
stack: "r@http://smmbox.meteor.com/4f7ab096f6cedfa0f73c6ee4e1f69d9f25160d8b.js:3:3354↵_livedata_result@http://smmbox.meteor.com/4f7ab096f6cedfa0f73c6ee4e1f69d9f25160d8b.js:34:30160↵o@http://smmbox.meteor.com/4f7ab096f6cedfa0f73c6ee4e1f69d9f25160d8b.js:34:17394↵http://smmbox.meteor.com/4f7ab096f6cedfa0f73c6ee4e1f69d9f25160d8b.js:34:396↵forEach@[native code]↵forEach@http://smmbox.meteor.com/4f7ab096f6cedfa0f73c6ee4e1f69d9f25160d8b.js:1:944↵onmessage@http://smmbox.meteor.com/4f7ab096f6cedfa0f73c6ee4e1f69d9f25160d8b.js:34:357↵dispatchEvent@http://smmbox.meteor.com/4f7ab096f6cedfa0f73c6ee4e1f69d9f25160d8b.js:32:1444↵_dispatchMessage@http://smmbox.meteor.com/4f7ab096f6cedfa0f73c6ee4e1f69d9f25160d8b.js:32:15018↵_didMessage@http://smmbox.meteor.com/4f7ab096f6cedfa0f73c6ee4e1f69d9f25160d8b.js:32:15908↵onmessage@http://smmbox.meteor.com/4f7ab096f6cedfa0f73c6ee4e1f69d9f25160d8b.js:32:18001"
__proto__: Object

The call stack in more readable style:

r@http://smmbox.meteor.com/4f7ab096f6cedfa0f73c6ee4e1f69d9f25160d8b.js:3:3354
↵_livedata_result@http://smmbox.meteor.com/4f7ab096f6cedfa0f73c6ee4e1f69d9f25160d8b.js:34:30160
↵o@http://smmbox.meteor.com/4f7ab096f6cedfa0f73c6ee4e1f69d9f25160d8b.js:34:17394
↵http://smmbox.meteor.com/4f7ab096f6cedfa0f73c6ee4e1f69d9f25160d8b.js:34:396
↵forEach@[native code]
↵forEach@http://smmbox.meteor.com/4f7ab096f6cedfa0f73c6ee4e1f69d9f25160d8b.js:1:944
↵onmessage@http://smmbox.meteor.com/4f7ab096f6cedfa0f73c6ee4e1f69d9f25160d8b.js:34:357
↵dispatchEvent@http://smmbox.meteor.com/4f7ab096f6cedfa0f73c6ee4e1f69d9f25160d8b.js:32:1444
↵_dispatchMessage@http://smmbox.meteor.com/4f7ab096f6cedfa0f73c6ee4e1f69d9f25160d8b.js:32:15018
↵_didMessage@http://smmbox.meteor.com/4f7ab096f6cedfa0f73c6ee4e1f69d9f25160d8b.js:32:15908
↵onmessage@http://smmbox.meteor.com/4f7ab096f6cedfa0f73c6ee4e1f69d9f25160d8b.js:32:18001"

The application is uploaded to http://smmbox.meteor.com for testing.
packages versions:
accounts-ui 1.1.5 Simple templates to add login widgets to an app
autopublish 1.0.3 Publish the entire database to all clients
coffeescript 1.0.6 Javascript dialect with fewer braces and semicolons
insecure 1.0.3 Allow all database writes by default
iron:router 1.0.7 Routing specifically designed for Meteor
meteor-platform 1.2.2 Include a standard set of Meteor packages in your app
mquandalle:jade 0.4.1 Jade template language
mrt:accounts-vk 0.2.0 Login service for VKontakte accounts (https://vk.com)

@alexpods
Copy link
Owner

alexpods commented Apr 7, 2015

@DrMoriarty, thanks. I'll try to investigate this bug in some of these days. Just now I have no time for it.

@DrMoriarty
Copy link
Author

I deployed the app with --debug option and now I have much more readable call stack:

errorClass@http://smmbox.meteor.com/packages/meteor.js?43b7958c1598803e94014f27f5f622b0bddc0aaf:532:24
↵_livedata_result@http://smmbox.meteor.com/packages/ddp.js?d1840d3ba04c65ffade261f362e26699b7509706:4964:39
↵onMessage@http://smmbox.meteor.com/packages/ddp.js?d1840d3ba04c65ffade261f362e26699b7509706:3725:28
↵http://smmbox.meteor.com/packages/ddp.js?d1840d3ba04c65ffade261f362e26699b7509706:2717:19
↵forEach@[native code]
↵forEach@http://smmbox.meteor.com/packages/underscore.js?0a80a8623e1b40b5df5a05582f288ddd586eaa18:156:18
↵onmessage@http://smmbox.meteor.com/packages/ddp.js?d1840d3ba04c65ffade261f362e26699b7509706:2716:15
↵dispatchEvent@http://smmbox.meteor.com/packages/ddp.js?d1840d3ba04c65ffade261f362e26699b7509706:156:27
↵_dispatchMessage@http://smmbox.meteor.com/packages/ddp.js?d1840d3ba04c65ffade261f362e26699b7509706:1141:23
↵_didMessage@http://smmbox.meteor.com/packages/ddp.js?d1840d3ba04c65ffade261f362e26699b7509706:1199:34
↵onmessage@http://smmbox.meteor.com/packages/ddp.js?d1840d3ba04c65ffade261f362e26699b7509706:1346:28"
¯

@DrMoriarty
Copy link
Author

Hello again!
I discovered the issue and found out that my vk application was standalone app. I made a new application (type site) and now it works pretty well.
Could you write in documentation about this? And maybe error message can be more informative.

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