Skip to content

Server error 500 #5

@DrMoriarty

Description

@DrMoriarty

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions