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

TypeError: Cannot read property 'id' of null #21

Closed
rattrayalex opened this issue Feb 2, 2016 · 11 comments
Closed

TypeError: Cannot read property 'id' of null #21

rattrayalex opened this issue Feb 2, 2016 · 11 comments

Comments

@rattrayalex
Copy link

Getting the following error via Rollbar:

TypeError: Cannot read property 'id' of null
1 File https://api.filepicker.io/v2/filepicker.js line 1 col 3830 in Object.n
2 File https://api.filepicker.io/v2/filepicker.js line 1 col 215 in Object.function.r.isClass.n.(anonymous
3 File https://api.filepicker.io/v2/filepicker.js line 1 col 1115 in i

Occurring primarily in Chrome

@krystiangw
Copy link
Contributor

@rattrayalex I'm closing it for now but reopen it if you find any further details.

@ArthurGuy
Copy link

I have been having the same problem for a while now.
Is the a sourcemap for filepicker or an unminified version that I can use to debug this?

@rattrayalex
Copy link
Author

I think this might be the result of trying to initialize filepicker on a target, when that target isn't on the DOM. But that's more speculation than the result of testing.

@tomersela
Copy link

I have the same Issue.
After analyzing the minified file I tracked the line that causes the error:
filepicker.js Line 399:

var run = function(data) {
>>>        var callerId = data.id;
        if (storage.hasOwnProperty(callerId)) {
            var handlers = storage[callerId];
            for (var i = 0; i < handlers.length; i++) {
                handlers[i](data);
            }
            return true;
        }

Any solutions?

@zachsnow
Copy link

zachsnow commented Jun 16, 2016

We are seeing the same error, over and over (several times a minute), from just a few machines (all running Chrome 51). Perhaps the users are running a plugin?

In any event, being more defensive as to the content of the message would solve the issue.

@louis49
Copy link

louis49 commented Jun 28, 2016

Still existing

@szwacz
Copy link
Contributor

szwacz commented Jun 30, 2016

We've published v2.4.14 which tries to solve this issue. Please tell us if it indeed solved it.

@zachsnow
Copy link

Thanks @szwacz! We'll give it a whirl.

@rattrayalex
Copy link
Author

I think this looks mostly-resolved for us after the fix, but still getting one such error:

TypeError: Cannot read property 'id' of null
1
File https://api.filepicker.io/v2/filepicker.js line 1 col 3830 in Object.n
2
File https://api.filepicker.io/v2/filepicker.js line 1 col 215 in Object.function.r.isClass.n.(anonymous function) [as run]
3
File https://api.filepicker.io/v2/filepicker.js line 1 col 1115 in o
4
File https://d37gvrvc0wt4s1.cloudfront.net/js/v1.8/rollbar.min.js line 1 col 12717 in e._wrapped
5
File https://hired.com/interview_requests/198927 line 95 col 11096 in nrWrapper

@zachsnow
Copy link

zachsnow commented Jul 5, 2016

Any chance you'd backport this to v1?

@szwacz
Copy link
Contributor

szwacz commented Jul 6, 2016

@zachsnow unfortunately development of v1 is frozen, so I can't fulfill your request.

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

7 participants