rollbar | Go client for Rollbar | Architecture library
kandi X-RAY | rollbar Summary
kandi X-RAY | rollbar Summary
rollbar is a Go Rollbar client that makes it easy to report errors to Rollbar with stacktraces. Errors are sent to Rollbar asynchronously in a background goroutine. Because Go’s error type doesn’t include stack information from when it was set or allocated, rollbar uses the stack information from where the error was reported.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Build body
- post sends a JSON message to stderr
- Convenience function to handle body
- buildError builds an error response .
- errorBody generates an error body
- errorRequest converts a request to a map .
- BuildStack builds a stack from the current call stack
- shortenFilePath is used to shorten a file path
- flattenValues takes a map of keys and returns a map .
- errorClass returns the error class .
rollbar Key Features
rollbar Examples and Code Snippets
Community Discussions
Trending Discussions on rollbar
QUESTION
In my Rails 5 app I have 'omniauth', '~> 2.0.3'
where in my config config/initializers/omniauth.rb
I'm attaching the logger to the Rails.logger
.
OmniAuth.config.logger = Rails.logger
What I want to do is if the log level is error
I want to use Rollbar instead of the Rails logger.
Is there a way to do this?
...ANSWER
Answered 2021-Jun-07 at 17:49you can create a proxy logger which delegate error
level logs to Rollbar
, other levels will delegate to Rails.logger
QUESTION
Recently I upgraded from Rails 6.0.3.4 to 6.1.3. ActiveStorage deprecated combine_options
, which I cleared from my app. All fresh request work as expected.
Internet Bots (Facebook, Google, ...) cache urls to images hosted on a website (like mine). According to my Rollbar records they request these a couple of times a day.
The cached URL's that should load ActiveStorage attachments include an old variation_key
in the URL. When the blob wants to load using the decoded variation_key
, I see that combine_options
is still present. This throws a 500 Internal Server Error with ArgumentError (Active Storage's ImageProcessing transformer doesn't support :combine_options, as it always generates a single ImageMagick command.):
.
Is there any way I can stop these errors from showing up?
Rails version: 6.1.3. Ruby version: 2.7.2p137
...ANSWER
Answered 2021-Mar-08 at 10:42I have resolved this issue using some middleware. This will intercept all incoming requests, scan if they are ActiveStorage
urls, find the ones with the deprecated combine_options
and just return 404 not found. This code will also raise an error is the current environment is development, this way I don't accidentally introduce the deprecated code again.
For those of you who might have the same problem, here's the code.
application.rb
QUESTION
My app works locally, however when I try to deploy to Heroku, I get a Sprockets::FileNotFound: couldn't find file 'angular' with type 'application/javascript'
error.
I have tried precompiling with RAILS_ENV=production bundle exec rake assets:precompile
and purging my build cache with heroku builds:cache:purge -a findum
, but still no luck. I recently migrated from Bower to Yarn– not sure if my asset path is the problem?
Has anyone run into a similar error that they were able to resolve? So many thanks 🙏.
This is my application.js
:
ANSWER
Answered 2021-Feb-19 at 13:57Update:
It looks like it was a problem with my post-Bower configuration (I migrated from Bower --> Yarn) I was able to solve Sprockets errors by adding this line to my assets.rb
:
Rails.application.config.assets.paths << Rails.root.join('node_modules')
and by running yarn add
for files that Sprockets could not locate.
I also made the following updates to old package names in my `application.rb'
QUESTION
ANSWER
Answered 2021-Jan-28 at 10:36With the help of @jeb I managed to resolve this FIND issue on jenkins by placing the absolute path for (find) in the shell script - initially it was using the windows FIND cmd, so i needed to point to cygwin find cmd
before: for path in $(find dist/renew -name "*.js"); do
and after: for path in $(/usr/bin/find dist/renew -name "*.js"); do
Thaks to all that commented
QUESTION
Using php 7.2
...ANSWER
Answered 2020-Dec-17 at 14:30This seems to be a problem with the virtual box filesystem. I created an issue to composer and hopefully more insight will be gained.
https://github.com/composer/package-versions-deprecated/issues/21
QUESTION
I am trying to script/export Entity Framework Core code-first migrations in Azure DevOps CI pipeline but having an error. The below command runs fine in my Visual Studio locally and generates an sql file and the command work was also working fine a few months ago in DevOps too (not sure if update related).
...ANSWER
Answered 2020-Dec-14 at 10:36Rollbar configuration was failing because for access token it was expecting a string that was not null/empty. Since I store Rollbar access token in Azure AppService Configuration and appsettings.json did not have access token listed, error was happening. So I added access token to appsettings.json with a dummy non-empty string value. That helps Rollbar to configure itself and not fail.
QUESTION
I suddenly started getting the following error when linting spec or pushing its pod:
ERROR | [iOS] unknown: Encountered an unknown error (Pod::DSLError) during validation.
The only recent change that was done to the spec is a version bump (since the last time it worked fine). Here is the full spec:
...ANSWER
Answered 2020-Nov-11 at 02:24I just found the reason for this error. In my codebase, I have multiple .pdspec files defined (one per each SDK module). Some of the podspecs were complete and worked for a long time with no changes (except the version bumps). Other podspecs were introduced recently and are work-in-progress.
The error in question was happening while I was trying to either publish or lint the complete podspecs. However, as it appears (after digging into the Ruby scripts mentioned with the error log) that Cocoapods runs the validation step during both lint and publishing of a specific podspec. Part of the validation steps iterates through all .podspec files within the same directory (or maybe even directory tree - ? ). So, in my case, it was discovering the incomplete podspecs and trying to validate them as well (WHY?) and of cause failing with the error.
The error is not helpful at all to troubleshoot the problem as well as log traces reported with it. The only way to find out some helpful hints was to look into code blocks around the Ruby script-lines mentioned in the log and try to reverse engineer what possibly was going on wrong.
I just wanted to share my story and to possibly prevent other people from running into a similar error (a Google search shows a lot of those) and losing days in frustration trying to troubleshoot it.
QUESTION
I saw a lot of similar questions here, but nothing of provided advises has helped. Every time I run cap production deploy
I got error:
ANSWER
Answered 2020-Oct-21 at 15:11How I solved it:
- Go to server command line
- As we can see in error log, the last command before error appears was:
Command: cd /home/deploy/project/releases/20201018151933 && ( export RAILS_ENV="production" RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.6.5" ; RBENV_ROOT=$HOME/.rbenv RBENV_VERSION=2.6.5 $HOME/.rbenv/shims/bundle exec bundle check )
So we go to our folder:
cd /home/deploy/project/releases/20201018151933
and run there command:
export RAILS_ENV="production" RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.6.5" ; RBENV_ROOT=$HOME/.rbenv RBENV_VERSION=2.6.5 $HOME/.rbenv/shims/bundle exec bundle check
After that we see same error:
Could not find concurrent-ruby-1.1.7 in any of the sources. Run 'bundle install' to install missing gems.
- In same folder run
bundle install
and after gem installed we can out of server command line. - Run
cap production deploy
and everything is gonna be fine.
I still don't know what is the root problem of this error, and how to fix it permanently, but this works for me. I hope it will be useful for anyone else.
QUESTION
I can't find documentation on how to minimize assets and produce *.min.js files using vue cli. Im using vue cli version 4.2.3.
I require the extention to be *.min.js for rollbar to function correctly.
How would you go about configuring vue cli to produce minimized assets? (no TS involved).
...ANSWER
Answered 2020-Oct-05 at 14:11I'm sure Vue CLI minifies JS output when running build
in production mode. It's just using different naming convention (no "min.js")
To tweak file names of JS chunks produced by Vue CLI, you can do the following:
Check the default Webpack config Vue CLI uses by running vue inspect
on command line (dev mode) or vue inspect --mode production
(production mode)
Look for an output
(should be near the beginning of the output). In my project it looks like this:
Dev mode:
QUESTION
Just upgraded Ubuntu from 18.04 to 20.04 and my Django project failed (it worked fine on Ubuntu 18.04) with the following message:
...ANSWER
Answered 2020-Oct-05 at 06:31Look's like an issue with Django 1.10.x and Python 3.6:
https://bugs.python.org/issue23722 https://github.com/django/django/pull/7653/commits/5a36dbc634f4ebd7ccae8f0a4bab987b478750cb
Options are to downgrade Python to version 3.5 or to update Django to newer release.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rollbar
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