Activities

mandaputtra

mandaputtra posted a new bug report

sentry-module •

bug Sentry Module failed install permission deined on centOS

Version

3.0.1

Reproduction link

https://jsfiddle.net/nofiddle

Steps to reproduce

Hi, I'm using CentOS here (VPS) on digital ocean, whenever I install this module with npm ci or npm i always failed, the message was permission denied.

Error: EACCES: permission denied, copyfile '/root/.npm/sentry-cli/e2bf76-sentry-cli-Linux-x86-64' -> '/var/www/project/html/project/node_modules/@sentry/cli/sentry-cli'

However I chmod al those folders but still, same permission denied. Any advice?

my chmod command :

$ chmod -R 777 /root/.npm/
$ chmod -R  777 /var/www/project/html/project/

What is expected ?

Project install without errors happens so sentry module could be used in nuxt

What is actually happening?

sentry module won't installed

Additional comments?

I'm using CentOS / Ubuntu too on development, but its install without a problem

rchl

rchl posted a new bug report

sentry-module •

bug Doesn't take router base into account when uploading releases

Version

v3.0.0

Reproduction link

http://nuxt.js

Steps to reproduce

router.base that is by default set to / and can be overridden, isn't taken into account in:

https://github.com/nuxt-community/sentry-module/blob/9092e9da2fecbb9e1dd5e6aad8194040062641e5/lib/module.js#L48

What is expected ?

webpackConfig.urlPrefix matches ~path.join(router.base, build.publicPath).

What is actually happening?

If base is overridden to, let's say /foo/ then client resources will be served from /foo/_nuxt/ but uploaded release artifacts on Sentry will have prefix ~/_nuxt/ so won't be matched against actual files.

lukaVarga

lukaVarga posted a new bug report

sentry-module •

bug this.$sentry is undefined in a local environment

Version

3.0.0

Reproduction link

https://codesandbox.io/embed/codesandbox-nuxt-m0vmy

Steps to reproduce

  • Add the '@nuxtjs/sentry' v 3.0.0 to the app
  • Add the package in nuxt config
  • Add sentry configuration in nuxt config
  • Do not add DSN (or let it be null)
  • Call one of the sentry methods, eg this.$sentry.setContext(params)

What is expected ?

Calling sentry methods should not trigger any errors, if DSN is empty (or if sentry is disabled for the environment), this.$sentry should not be undefined, it should, instead, implement mock methods that don't really do anything

What is actually happening?

Sentry object is available on window, but not within the components. Calling this.$sentry.foo, where foo is one of the sentry methods, results in an error (cannot call 'foo' of undefined)

Additional comments?

If @nuxtjs/sentry is added as a nuxt module, then this.$sentry should be available in the components regardless of the configuration as it's quite common to not define DSN for development / testing, or to use disabled: true in the module for the development / testing environment. In this case, this.$sentry should just be a mock object that just implements the methods but doesn't do anything with them.

sowinski

sowinski posted a new question

sentry-module •

Deactivate on development

How can I deactivate Sentry on development and keep it active on production?

BboyKeen

BboyKeen posted a new question

sentry-module •

Why is error logging linked to publishing a release ?

Hi,
I'm currently configuring the module to make it work with our deployment process and I'm facing an issue.
It looks like the module allow to upload sourcemaps only if a DSN has been provided.

However in a context of building an application before deploying it, we may want to upload a release just after the build.
Is there any reason two link these two different things ?

Thanks

mrleblanc101

mrleblanc101 posted a new question

sentry-module •

Shouldn't log local/dev error by default
jpbamberg1993

jpbamberg1993 posted a new question

sentry-module •

What type of Sentry project should I use?

When I'm creating this project in sentry should I select Vue.js, Node or JavaScript for project type? Nuxt is not an option.

vasisouv

vasisouv posted a new question

sentry-module •

this.$sentry undefined when no dsn is provided?

Github readme indicates that "If no dsn is provided, Sentry will be initialised, but errors will not be logged. See #47 for more information about this." I initialized my config like:

sentry: {
config: {}
},

and got the 'ℹ Errors will not be logged because no DSN has been provided' message.

However this.$sentry is undefined in the mounted() function of the page, Is that intended?

I use this type of config on local development to avoid error loggin, but my components break since I use some try{}catch(e){ this.$sentry.captureException(e)} or try{}catch(e){ this.$sentry.captureException(e) }

eyalhakim

eyalhakim posted a new feature request

sentry-module •

idea Update Sentry SDK

What problem does this feature solve?

Screen Shot 2019-07-07 at 9.50.53 PM.png

eyalhakim

eyalhakim posted a new question

sentry-module •

Update sentry SDK

Screen Shot 2019-07-07 at 9 50 53 PM

huashiyiqike

huashiyiqike posted a new question

sentry-module •

ctx.$sentry is undefined, process.sentry is ok

server side sentry cannot get $sentry variable from ctx, is this the right way to use process.sentry? i am using "@nuxtjs/sentry": "^3.0.0" "nuxt": "^2.4.0", client side is fine

dhritzkiv

dhritzkiv posted a new question

sentry-module •

How to access $sentry instance from plugin

With code like this:

// plugins/foo.ts
export default (context: Context) => {
   // all of these are undefined:
   console.log(process.sentry)
   console.log(context.$sentry)
   console.log(context.sentry)
}

Even though from a middleware, I'm able to access it like so:

export default (context: Context) => {
   // this is defined:
   console.log(process.sentry)

   // still, these are undefined:
   console.log(context.$sentry)
   console.log(context.sentry)
}

Is this supported in v3 of this module?

ababbdev

ababbdev posted a new question

sentry-module •

Sentry is altering the user-agent in requests

We upgraded to the 3.0.0 version of the plugin to enable sentry in ssr which seems to work.
However it now is altering the user-agent in our xhr requests to

sentry/10.0.0.dev0 (https://sentry.io)

Is there a way to disable this?

bswank

bswank posted a new question

sentry-module •

Sentry & Heroku Dyno Metadata

Please help! Heroku is nicely exposing some release data to me – specifically, my Git SHA. Sentry is tracking my releases from GitHub. I need to be able to send the release info along with my Sentry error, but since I initiate Sentry in my nuxt.config.js file, the env var is set to the previous release since the Dyno's Metadata hasn't been updated yet.

Can anyone suggest a solution to ensure I'm correctly passing the release info on to Sentry that I'm getting from a dynamically-created env var in Heroku?

For more context, I've tried so many things. If there was a way I could set the Sentry release in the mounted () hook on my layout, I could do something like that, but I cannot figure out how to edit the Sentry release after init.

Jolg42

Jolg42 posted a new bug report

sentry-module •

bug FATAL Could not compile template - sentry.client.js: Unexpected token if

Version

master

Reproduction link

https://cmty.app/SorryIDontHaveOne

Steps to reproduce

Node.js 10.7.0
"nuxt": "2.6.3"
"@nuxtjs/sentry": "git://github.com/nuxt-community/sentry-module.git"

Deploying on Zeit Now v1 produce an error see "What is actually happening?"

What is expected ?

A successful build

What is actually happening?

> npm run build
> nuxt:sentry 13:58:09Started logging errors to Sentry
> 13:58:10Production build
> 13:58:10  FATAL  Could not compile template /home/nowuser/src/node_modules/@nuxtjs/sentry/lib/sentry.client.js: Unexpected token if
>   at Promise.all.templateFiles.map (node_modules/@nuxt/builder/dist/builder.js:5959:17)
>    ╰──────────────────────────────────────────��─────────────────────────────────────────╯

Additional comments?

It could be related to merging https://github.com/nuxt-community/sentry-module/pull/75

mauxtin

mauxtin posted a new feature request

sentry-module •

idea Ability to delete sourcemaps after uploading to sentry

What problem does this feature solve?

It would be useful to have an option to automatically delete the sourcemaps after they have been uploaded to sentry.

felixdenoix

felixdenoix posted a new bug report

sentry-module •

bug Sentry undefined in nuxtServerInit

Version

2.3.2

Reproduction link

https://codesandbox.io/s/zwnoxjj21p?fontsize=14

Steps to reproduce

Install module
Setup module
Access sentry in the nuxtServerInit function from the store returns undefined.

  nuxtServerInit({ commit }, ctx) {
    console.log("HI SENTRY", ctx.$sentry); // here $sentry is undefined
  }

What is expected ?

Being able to access the $sentry object in the nuxtServerinit method from the store.

What is actually happening?

object does not exist in context

Additional comments?

I had a look to the different issues ( #19, #33 ), and releases ( #72 ) but I still cannot access the sentry methods (also sorry in advance if I'm using the module the wrong way).
Thanks for this module it really made my day on multiple occasions !

BenJChen

BenJChen posted a new question

sentry-module •

sentry-module:Error while mounting app

Error while mounting app

when use sentry-module,it has a error,

app.js:519 Error: [nuxt] Error while mounting app: TypeError: _sentry_browser__WEBPACK_IMPORTED_MODULE_5__.Integrations.Dedupe is not a constructor

nuxt.config.js

modules:[
        '@nuxtjs/axios',
        '@nuxtjs/sentry',
        'cookie-universal-nuxt'
    ],
    axios: {
        proxy: true
    },
    sentry: {
        dsn: 'https://[email protected]/2', // Enter your project's DSN here
        config: {}, // Additional config
    },
loomchild

loomchild posted a new feature request

sentry-module •

idea Allow specifying the release when publishing sources

What problem does this feature solve?

Currently release config option is only used when reporting errors, but is ignored when publishRelease is active. The specified release should be taken into account when uploading sources instead of always relying on commit hash.

pi0

pi0 posted a new question

sentry-module •

[RFC] v3 checklist
  • Server side plugin support
  • Drop support for Nuxt 1.x
  • Improve default webpack config
  • Upgrade to [email protected]