sentry-cli | A command line utility to work with Sentry | Monitoring library
kandi X-RAY | sentry-cli Summary
kandi X-RAY | sentry-cli Summary
A command line utility to work with Sentry.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of sentry-cli
sentry-cli Key Features
sentry-cli Examples and Code Snippets
Community Discussions
Trending Discussions on sentry-cli
QUESTION
As it can be seen in the logs that curl has been installed correctly, why does it not find it wheen curl is being used?
Build log:
...ANSWER
Answered 2021-Dec-14 at 14:49That error is from the Sentry script itself. You do have curl installed otherwise that script wouldn't have been downloaded and run in the first place.
The Sentry script is itself doing a check for curl and saying that it can't find it. Likely because it's doing the check with hash
which is a Bash built-in command. You are running Alpine. Issues like this tend to crop up on Alpine and you really need to know what you're doing to get things to work.
I suggest run a custom version of the Sentry script yourself that's Alpine friendly or, my preferred option, base your image off of Ubuntu or Debian and not Alpine.
QUESTION
System: Ubuntu 20.04
NodeJs Version: v14.17.5
NPM Version: 7.20.6
Command used: sudo npm i @nuxtjs/sentry
I'm trying to install @nuxtjs/sentry and getting this message:
...code 1 npm ERR! command failed npm ERR! command sh -c node scripts/install.js npm ERR! info sentry-cli Downloading from https://downloads.sentry-cdn.com/sentry-cli/1.68.0/sentry-cli-Linux-x86_64 npm ERR! Error: EACCES: permission denied, mkdir '/root/.npm/sentry-cli'
npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2021-08-21T09_51_43_400Z-debug.log
ANSWER
Answered 2021-Aug-21 at 10:36Using yarn add @nuxtjs/sentry
is apparently enough and solves OP's issue.
QUESTION
Hi Everyone I have a question related to the pipeline.workspace variable.
In the example below i have set pipeline.workspace as the working directory and as paths for a cli command.
Npm install creates folders under /home/vsts/work/node_modules/ while the next command when i use pipeline.workspace it points to ./home/vsts/work/1/
Am I doing something wrong? or is something up?
...ANSWER
Answered 2021-Mar-09 at 07:53The node_modules folder is pre-generate that may contains some global packages. It is not generated by the npm install
command in the script. This situation exists on Microsoft-hosted Ubuntu agents and Microsoft-hosted macOS agents.
When executing the npm install
command to install packages locally, there are few points you need to pay attention to :
If no node_modules folder is existing in current working directory, and also no node_modules folder is existing in any parent directory of current working directory, the
npm install
command will generate the node_modules folder in current working directory and install the packages into this node_modules folder.If no node_modules folder is existing in current working directory, but the node_modules folder is existing in parent directory, the
npm install
command will install the packages into the existing node_modules folder in the closest parent directory.For example, there are the following paths:
- /root/dir1/node_modules
- /root/dir1/dir2/node_modules
- /root/dir1/dir2/dir3
When executing the
npm install
command in the directory "/root/dir1/dir2/dir3", the packages will be installed into "/root/dir1/dir2/node_modules".If the node_modules folder is existing in current working directory, regardless of whether the node_modules folder is existing in parent directory or not, the
npm install
command will install the packages into node_modules folder in current working directory.For example, there are the following paths:
- /root/dir1/node_modules
- /root/dir1/dir2/node_modules
- /root/dir1/dir2/dir3/node_modules
When executing the
npm install
command in the directory "/root/dir1/dir2/dir3", the packages will be installed into "/root/dir1/dir2/dir3/node_modules".
QUESTION
I am trying to run an NPM script that relies on a variable that needs to be assigned at runtime.
package.json
...ANSWER
Answered 2020-Dec-18 at 21:01Set the environment variable and run the command all at once:
QUESTION
I am looking at improving a CI
process by rewriting source maps, and found I can not add the --rewrite
option in anywhere.
The command I am adding it to is:
sentry-cli --auth-token $SENTRY_TOKEN releases -o "my-org" files $LONG_COMMIT upload my_repo/my_files '~/my_public_folder'
No matter where I place it I always get the error:
error: Found argument '--rewrite' which wasn't expected, or isn't valid in this context USAGE: sentry-cli releases files upload [OPTIONS] [--] [NAME]
For example I have tried:
sentry-cli --auth-token $SENTRY_TOKEN releases -o "my-org" files $LONG_COMMIT upload my_repo/my_files '~/my_public_folder' --rewrite
sentry-cli --auth-token $SENTRY_TOKEN releases -o "my-org" files $LONG_COMMIT upload my_repo/my_files --rewrite '~/my_public_folder'
...sentry-cli --auth-token $SENTRY_TOKEN releases -o "my-org" files $LONG_COMMIT upload --rewrite my_repo/my_files '~/my_public_folder'
ANSWER
Answered 2020-Nov-28 at 09:07The --rewrite
option is not available for sentry-cli releases files upload
. I believe that you're looking for the sentry-cli releases files upload-sourcemaps
command, instead.
Note that as of sentry-cli 1.59.0 the --rewrite
option has been removed and enabled by default. You can opt out of rewriting using the --no-rewrite
option:
QUESTION
I have gitlab
integration and I am trying to configure release versions. I used sentry-cli
to create release and associate commits. I used sentry-cli releases propose-version
to get SHA-1 and set it like release version. My version in SDK
must me equal this SHA-1 return or I can use any custom version name?
ANSWER
Answered 2020-Nov-07 at 20:15I figured it out. Version set from sentry-cli
and version in sdk
must be equal. That allows you to link the error with the release.
QUESTION
I have an app published on Apple App Store.
I have created a Sentry project to track the app.
Now I have an exception breakpoint issue reported on Sentry, but all the given information is completely not understable. Therefore I have downloaded the appDsyms.zip file from iTunesConnect and uploaded it to Sentry using the sentry-cli client.
What are the next steps to do to get a much clearer description from the issue?
I am not able to find a tutorial about translating the Sentry information of the exception.
...ANSWER
Answered 2020-Oct-15 at 14:29Once you upload the symbols, any incoming crash or error should show symbolicated frames automatically. There's nothing else you need to do to enable that.
Sentry has some docs on the upload process, ideally it would be automated so these are uploaded before your app goes live.
QUESTION
Our bundle entry point is at src/index.tsx
, which appears not to match the Sentry default of ./index.js
.
Sentry is failing on sentry-cli react-native-xcode
with the error EOF while parsing a value at line 1 column 0
.
Using debug log level, I see:
...ANSWER
Answered 2020-Sep-21 at 16:19It turns out that this build step should simply be disabled in iOS projects using Bitcode (which is the default). So, we have no more need to run a custom build script.
We'll use Fastlane afterward to upload debug symbols.
Docs for reference:: https://docs.sentry.io/platforms/react-native/#ios-specifics
QUESTION
I have a simple setup for a project that imitates the Next JS sentry (simple) example
The problem is without sentry Enable JavaScript source fetching
feature on, I cannot get the source maps to report correctly to sentry
example:
with the Enable JavaScript source fetching
it shows correctly
example (of the same error):
Here is the configuration files used:
...ANSWER
Answered 2020-Apr-06 at 16:45This can be solved by abandoning the configure-sentry-release.sh
script to upload the source maps manually but instead using sentry webpack plugin
QUESTION
I'm working with a NextJs/ReactJs (with Typescript) application and I'm trying to upload the sourcemaps to Sentry artefacts.
The build from this app is not bundled to a single file. Instead, the dist/output folder reflects the NextJs pages structure, which in this case has a tree structure similar to this:
...ANSWER
Answered 2020-Mar-27 at 18:28I came up with a workaround which allowed me to solve this and be able to upload to Sentry the entire tree of my minified .js files along with the associated source map files.
Solution:I've decided to iterate through all files that I wanted to upload and, one by one, upload them (.js and .map file) and setting their individual "--url-prefix".
So, for each pair of .js and .map files i did something similar with this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sentry-cli
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page