-
Notifications
You must be signed in to change notification settings - Fork 316
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
Internet Explorer 11 and Edge throws error Invalid calling object #77
Comments
UPDATE: If I change this:
to this
and do a The file I did the change is here: |
Unfortunately, I wasn't able to reproduce your issues. I used http://rawgit.com/tus/tus-js-client/master/demo/index.html for my testing (it uses metadata and therefore calls the function where the stack trace pointed) on Internet Explorer 11 and Edge 15, but wasn't able to spot any problems. Our test infrastructure, which also includes those browsers, does not report any, either. Could you please provide further details? Could this be related to other tools you use for building your JavaScript files? |
@Acconut Thanks for getting back to me. I tried the demo as well and it's indeed working normally. I am using I am using it within a React component like so (these are methods within the component):
The problem occurs after Do you have any initial thoughts about what might be happening? perhaps something gets conflicted with the compilation? If i change the line i mentioned to Thank you for your time. |
UPDATE: @Acconut, The babel compiled version for production, seems to be working normally. This is insanity. This probably explains why your demo works as well. |
Very interesting situation, if I may say so :) As it turns out you are not the first person to discover issues with this (e.g. auth0/jwt-decode#29). Would it be possible for you to provide a minimal example/configuration which triggers this error so I can attempt to debug it for myself? |
Same here. webpack-dev-server throws this, transpiled production build works. |
As I said previously, I wasn't able to reproduce this error. Could you provide a minimal example which triggers this error so I can attempt to debug it for myself? |
FWIW, on a completely separate project (a Nuxt.js application) I saw the same error (invalid calling object) in IE11 on Win10 when the server-side logs appeared within the IE11 console. I think Nuxt uses the consola library to do this. This is in Dev mode. When I disable the console.log() that was being executed on the server (and appearing in the browser console), the error disappears. |
@uglow Thanks for the information, that may help! You weren't using tus in your project, were you? |
No, I was not.
…Sent from my iPhone
On 2 Aug 2019, at 6:23 pm, Marius <[email protected]<mailto:[email protected]>> wrote:
@uglow<https://github.com/uglow> Thanks for the information, that may help! You weren't using tus in your project, were you?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#77?email_source=notifications&email_token=AA6OFLOVLGM7GPHPL2YFTWTQCPVHFA5CNFSM4DPMFQE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3NBJAQ#issuecomment-517608578>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AA6OFLNUQT6RESG7224TX5LQCPVHFANCNFSM4DPMFQEQ>.
|
Closing this issue due to inactivity. Feel free to leave a comment if you want to continue the discussion. A possible fix might be https://github.com/mulesoft/js-client-oauth2/pull/70/files if we can reproduce the behavior. |
I know I'm just commenting on a random GitHub thread, but from my experimentation, the problem seems to be with calling renamed global functions, or at least relates to it. (found this thread by googling the error) For example, this code works fine on Firefox, but fails on Edge: The problem is also mentioned here: This is my first comment on a GitHub repo ever, so tell me if I'm doing something wrong. |
Thank you very much, @coolguy284! Your example helps a lot in understanding the situation. Since this issue did not appear in the last years in our issue tracker and this looks like misbehavior in the build tool (webpack), I am going to close this. If anyone has the same problem with tus-js-client, feel free to comment anyway. |
Hello,
I am getting the following error in Internet Explorer 11 and Edge. It works perfectly fine under Safari, Chrome, Firefox:
The file that the code which you see in the debugger is this:
https://github.com/tus/tus-js-client/blob/master/lib.es5/browser/base64.js
Stacktrace shows the call happens here, just before the exception:
https://github.com/tus/tus-js-client/blob/master/lib/upload.js#L298
Has anyone seen this? I am using version 1.4.3
The text was updated successfully, but these errors were encountered: