Skip to content

[FIX] Application crashing on startup when trying to log errors to exceptions channel#10934

Merged
rodrigok merged 1 commit intodevelopfrom
prevent-sending-exceptions-to-channel-before-startup
May 29, 2018
Merged

[FIX] Application crashing on startup when trying to log errors to exceptions channel#10934
rodrigok merged 1 commit intodevelopfrom
prevent-sending-exceptions-to-channel-before-startup

Conversation

@sampaiodiego
Copy link
Member

@sampaiodiego sampaiodiego commented May 29, 2018

Closes #10899

Registering the error handler after Mateor.startup will not prevent errors from happening but if one is using Log exceptions to channel feature it will show where exactly the error is happening instead of trying to send a message before the whole server is up and then blaming Apps like the msg bellow (the following error was caused intentionally by adding a throw 'anything' at any place):

image

I have done additional changes to the file, but the only important one to fix the issue is the Meteor.startup() wrap

@rodrigok rodrigok changed the title [FIX] Prevent sending messages to exception channel before startup [FIX] Application crashing on startup when trying to log errors to exceptions channel May 29, 2018
@rodrigok rodrigok merged commit 058864a into develop May 29, 2018
@rodrigok rodrigok deleted the prevent-sending-exceptions-to-channel-before-startup branch May 29, 2018 22:51
sampaiodiego pushed a commit that referenced this pull request May 30, 2018
…to-channel-before-startup

[FIX] Application crashing on startup when trying to log errors to `exceptions` channel
engelgabriel added a commit that referenced this pull request Jun 4, 2018
* master:
  Bump version to 0.65.1
  Merge pull request #10940 from RocketChat/fix-livechat-not-loading
  Merge pull request #10934 from RocketChat/prevent-sending-exceptions-to-channel-before-startup
  Merge pull request #10928 from RocketChat/fix-email-notification-link
  Merge pull request #10904 from RocketChat/lazyload-fix-regression
  Merge pull request #10851 from RocketChat/leave-room-bug
  fix search shortcut text
  Display vertical scrollbar on demand

# Conflicts:
#	.docker/Dockerfile
#	.docker/Dockerfile.rhel
#	.sandstorm/sandstorm-pkgdef.capnp
#	.travis/snap.sh
#	HISTORY.md
#	package.json
#	packages/rocketchat-lib/rocketchat.info
@rodrigok rodrigok mentioned this pull request Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade from 0.63.3 to 0.65.0 fails with 'call' is not a function.-> Restore from backup only solution to get it back up and working on 0.63.3.

4 participants

Comments