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: Object #<Object> has no method 'split'] #46

Closed
pkozlowski-opensource opened this issue Jul 21, 2014 · 0 comments
Closed

[TypeError: Object #<Object> has no method 'split'] #46

pkozlowski-opensource opened this issue Jul 21, 2014 · 0 comments

Comments

@pkozlowski-opensource
Copy link
Member

So, this issue that was surfacing in the past is not quite fixed :-/ The improved the situation, but it might happen that the err.data is an object, ex.:

{ status: 13,
    message: 'Job bed4c78028ed4dcca01b8c2b6169559f has already finished, and can\'t receive further commands. It may have experienced an error. You can learn more at https://saucelabs.com/jobs/bed4c78028ed4dcca01b8c2b6169559f',
    value: {
        message: 'Job bed4c78028ed4dcca01b8c2b6169559f has already finished, and can\'t receive further commands. It may have experienced an error. You can learn more at https://saucelabs.com/jobs/bed4c78028ed4dcca01b8c2b6169559f'
    } }

This object doesn't have the split method so the whole thing fails. We need to explicitly test for the presence of the split method or get rid of it altogether (actually, I'm not sure we really want to be so into formatting this error - IMO it is more important to see it than to see it from time to time nicely formatted).

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

Successfully merging a pull request may close this issue.

1 participant