getsentry / sentry-javascript

Official Sentry SDKs for JavaScript
https://sentry.io
MIT License
7.97k stars 1.57k forks source link

Type Error in Safari #2052

Closed Jolg42 closed 3 years ago

Jolg42 commented 5 years ago

Package + Version

"@sentry/integrations": "^5.1.0",
"@sentry/browser": "^5.1.1",
"@sentry/node": "^5.1.0",
"@sentry/webpack-plugin": "^1.6.2",

Version:

From package-lock.json

    "@nuxtjs/sentry": {
      "version": "2.3.2",
      "resolved": "https://registry.npmjs.org/@nuxtjs/sentry/-/sentry-2.3.2.tgz",
      "integrity": "sha512-MQ53ShZq6LBEHU9HYMPE7z0YSmGzchQwypluTY/lp/KMhruoBKBrC0CpT6Nj42X+JhMVgSGbKYPSRvilAYpxDA==",
      "requires": {
        "@sentry/browser": "^4.6.6",
        "@sentry/node": "^4.6.6",
        "@sentry/webpack-plugin": "^1.6.2",
        "consola": "^2.5.8",
        "deepmerge": "^3.2.0"
      }
    },
    "@sentry/browser": {
      "version": "4.6.6",
      "resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-4.6.6.tgz",
      "integrity": "sha512-+9VsQ+oQYU+PYlLJG2ex7JCMSVQbnUvWPI2uZOofWdI9sWIPUub3boWItMzRQNQ1T4S3FZd4FqAWNFd3azdnBw==",
      "requires": {
        "@sentry/core": "4.6.6",
        "@sentry/types": "4.5.3",
        "@sentry/utils": "4.6.5",
        "tslib": "^1.9.3"
      }
    },
    "@sentry/cli": {
      "version": "1.41.2",
      "resolved": "https://registry.npmjs.org/@sentry/cli/-/cli-1.41.2.tgz",
      "integrity": "sha512-fLDjyrSXjBcCwseKSjVwMOIxBNeFMi7/eb+cxpM7V+8jUMmtRzbTedcuCLdolIwqWoojy175Xm/YRIi+tsIaMA==",
      "requires": {
        "fs-copy-file-sync": "^1.1.1",
        "https-proxy-agent": "^2.2.1",
        "mkdirp": "^0.5.1",
        "node-fetch": "^2.1.2",
        "progress": "2.0.0",
        "proxy-from-env": "^1.0.0"
      }
    },
    "@sentry/core": {
      "version": "4.6.6",
      "resolved": "https://registry.npmjs.org/@sentry/core/-/core-4.6.6.tgz",
      "integrity": "sha512-7z9HKLTNr3zVBR3tBRheTxkkkuK2IqISUc5Iyo3crN2OecOLtpptT96f5XjLndBEL2ab39eCBPpA5OFjbpzrIA==",
      "requires": {
        "@sentry/hub": "4.6.5",
        "@sentry/minimal": "4.6.5",
        "@sentry/types": "4.5.3",
        "@sentry/utils": "4.6.5",
        "tslib": "^1.9.3"
      }
    },
    "@sentry/hub": {
      "version": "4.6.5",
      "resolved": "https://registry.npmjs.org/@sentry/hub/-/hub-4.6.5.tgz",
      "integrity": "sha512-v9vee8s8C1fK/DPtNOzv6r+AMbPDOWfnasouNcBUkbQUSN5wUNyCDvt51QbWaw5kMMY5TSqjdVqY6gXQZI0APQ==",
      "requires": {
        "@sentry/types": "4.5.3",
        "@sentry/utils": "4.6.5",
        "tslib": "^1.9.3"
      }
    },
    "@sentry/minimal": {
      "version": "4.6.5",
      "resolved": "https://registry.npmjs.org/@sentry/minimal/-/minimal-4.6.5.tgz",
      "integrity": "sha512-tf+J+uUNmSgzC7d9JSN8Ekw1HeBAX87Efa/jyFbzLvaw80oibvTiLSLqDjQ9PgvyIzBUuuPImkS2NpvPQGWFtg==",
      "requires": {
        "@sentry/hub": "4.6.5",
        "@sentry/types": "4.5.3",
        "tslib": "^1.9.3"
      }
    },
    "@sentry/node": {
      "version": "4.6.6",
      "resolved": "https://registry.npmjs.org/@sentry/node/-/node-4.6.6.tgz",
      "integrity": "sha512-+zZHE2uOwQTgypP6N9oBd0Io6BKXaJh6mdmZBauF0G46/8V28sBQ/dXBtJJNZ8tW7eVlLGpLSGuJb9Ai7c/rNw==",
      "requires": {
        "@sentry/core": "4.6.6",
        "@sentry/hub": "4.6.5",
        "@sentry/types": "4.5.3",
        "@sentry/utils": "4.6.5",
        "@types/stack-trace": "0.0.29",
        "cookie": "0.3.1",
        "https-proxy-agent": "2.2.1",
        "lru_map": "0.3.3",
        "lsmod": "1.0.0",
        "stack-trace": "0.0.10",
        "tslib": "^1.9.3"
      }
    },
    "@sentry/types": {
      "version": "4.5.3",
      "resolved": "https://registry.npmjs.org/@sentry/types/-/types-4.5.3.tgz",
      "integrity": "sha512-7ll1PAFNjrBNX9rzy3P2qAQrpQwHaDO3uKj735qsnGw34OtAS8Xr8WYrjI14f9fMPa/XIeWvMPb4GMic28V/ag=="
    },
    "@sentry/utils": {
      "version": "4.6.5",
      "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-4.6.5.tgz",
      "integrity": "sha512-rTISJtRRbWsd3UE+TkA3QG1C0VzPKPW8w74tieBwYhtTCGmOHNwz2nDC/MZGbGj4OgDmNKKl4CCyQr88EX08hA==",
      "requires": {
        "@sentry/types": "4.5.3",
        "tslib": "^1.9.3"
      }
    },
    "@sentry/webpack-plugin": {
      "version": "1.6.2",
      "resolved": "https://registry.npmjs.org/@sentry/webpack-plugin/-/webpack-plugin-1.6.2.tgz",
      "integrity": "sha512-OZ4ISH0xAP6dTHpQ3xFnIa35o+rVKZxcoCn0a41rfgM+XFdXMtw3yc+nsRHkuRpbzWzXUIisBqbBm5KcEark4A==",
      "requires": {
        "@sentry/cli": "^1.35.5"
      }
    }

Description

This line Function.prototype.apply.call(originalConsoleLevel, originalConsole, args); returns a "Type Error" only in Safari

    // this fails for some browsers. :(
    if (originalConsoleLevel) {
      // IE9 doesn't allow calling apply on console functions directly
      // See: https://stackoverflow.com/questions/5472938/does-ie9-support-console-log-and-is-it-a-real-function#answer-5473193
      Function.prototype.apply.call(originalConsoleLevel, originalConsole, args);
    }
Screenshot 2019-05-06 at 13 19 44
HazAT commented 5 years ago

Can you please upgrade to 5.1.3 and try again?

Jolg42 commented 5 years ago

Ok I notified the people from the @nuxtjs/sentry repository. https://github.com/nuxt-community/sentry-module/pull/75

I'll wait until it's merged and try again, thanks!

AbhiPrasad commented 3 years ago

Closing as part of repo clean-up. If you are still encountering this issue, please re-open the issue. Thanks!

lekseven commented 1 year ago

Got a similar issue today on Sentry 7.30.0: TypeError: Load failed

Screenshot 2023-01-12 at 16 54 51

Safari 16.2 (18614.3.7.1.5)

AbhiPrasad commented 1 year ago

Hey @lekseven - could you open a new issue with a reproduction so we can investigate further? Thanks!