Skip to content

SDK gives stack overflow #324

Closed
Closed
@JustinDMoore

Description

@JustinDMoore

Before I go into the issue, can someone clarify something?

This repo shows the latest Parse Javascript SDK release to be 1.8.5 on May 12
However, this CDN link in the README.md shows 1.9.0

Which one is the current release that I should be using? Or maybe I am missing something.

The issue:

Parse JavaScript SDK v1.9.0 from CDN.
Parse Server v2.2.16

Initialize

<script src="parse.min.js"></script>
<script>
    Parse.initialize("KEY");
    Parse.serverURL = 'URL'
</script>

Connect to Facebook:

window.fbAsyncInit = function() {
    Parse.FacebookUtils.init({
        appId      : 'ID',
        xfbml      : true,
        version    : 'v2.7'
    });
};

(function(d, s, id){
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) {return;}
    js = d.createElement(s); js.id = id;
    js.src = "//connect.facebook.net/en_US/sdk.js";
    fjs.parentNode.insertBefore(js, pjs);
}(document, 'script', 'facebook-jssdk'));

Get the current user:
var user = Parse.User.current();

All fine up to this point. I can read and display from user.

When I try to update the user:

user.set("name", "test");
user.save();

parse.min.js
RangeError: Maximum call stack size exceeded.

I checked for recursion. This is only being called one time. No idea why this error would be thrown. This occurred in both Parse Server .15 & .16

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions