EventideSystems / tool_for_systemic_change

GNU Affero General Public License v3.0
2 stars 0 forks source link

JSON parser error #889

Open ferrisoxide opened 11 months ago

ferrisoxide commented 11 months ago

View details in Rollbar: https://rollbar.com/stark-fortress-62786/stark-fortress-62786/items/130/



JSON::ParserError: unexpected token at '<html>
<head><title>500 Internal Server Error</title></head>
<body bgcolor="white">
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx</center>
</body>
</html>
'
  File "/app/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json/common.rb", line 216, in parse
  File "/app/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json/common.rb", line 216, in parse
  File "/app/vendor/bundle/ruby/2.7.0/gems/mandrillus-2.0.0/lib/mandrill.rb", line 87, in cast_error
  File "/app/vendor/bundle/ruby/2.7.0/gems/mandrillus-2.0.0/lib/mandrill.rb", line 37, in call
  File "/app/vendor/bundle/ruby/2.7.0/gems/mandrillus-2.0.0/lib/mandrill/api.rb", line 921, in send_template
  File "/app/vendor/bundle/ruby/2.7.0/gems/mandrill_mailer-1.8.0/lib/mandrill_mailer/template_mailer.rb", line 126, in deliver_now
  File "/app/vendor/bundle/ruby/2.7.0/gems/mandrill_mailer-1.8.0/lib/mandrill_mailer/template_mailer.rb", line 122, in deliver
  File "/app/app/mailers/mandrill_devise_mailer.rb", line 34, in mail
  File "/app/vendor/bundle/ruby/2.7.0/gems/devise-4.8.1/lib/devise/mailers/helpers.rb", line 19, in devise_mail
  File "/app/vendor/bundle/ruby/2.7.0/gems/devise_invitable-2.0.6/lib/devise_invitable/mailer.rb", line 9, in invitation_instructions
  File "/app/vendor/bundle/ruby/2.7.0/gems/actionpack-7.0.5.1/lib/abstract_controller/base.rb", line 215, in process_action
  File "/app/vendor/bundle/ruby/2.7.0/gems/actionpack-7.0.5.1/lib/abstract_controller/callbacks.rb", line 234, in block in process_action
  File "/app/vendor/bundle/ruby/2.7.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb", line 118, in block in run_callbacks
  File "/app/vendor/bundle/ruby/2.7.0/gems/actiontext-7.0.5.1/lib/action_text/rendering.rb", line 20, in with_renderer
  File "/app/vendor/bundle/ruby/2.7.0/gems/actiontext-7.0.5.1/lib/action_text/engine.rb", line 69, in block (4 levels) in <class:Engine>
  File "/app/vendor/bundle/ruby/2.7.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb", line 127, in instance_exec
  File "/app/vendor/bundle/ruby/2.7.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb", line 127, in block in run_callbacks
  File "/app/vendor/bundle/ruby/2.7.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb", line 138, in run_callbacks
  File "/app/vendor/bundle/ruby/2.7.0/gems/actionpack-7.0.5.1/lib/abstract_controller/callbacks.rb", line 233, in process_action
  File "/app/vendor/bundle/ruby/2.7.0/gems/actionpack-7.0.5.1/lib/abstract_controller/base.rb", line 151, in process
  File "/app/vendor/bundle/ruby/2.7.0/gems/actionmailer-7.0.5.1/lib/action_mailer/rescuable.rb", line 25, in block in process
  File "/app/vendor/bundle/ruby/2.7.0/gems/actionmailer-7.0.5.1/lib/action_mailer/rescuable.rb", line 17, in handle_exceptions
  File "/app/vendor/bundle/ruby/2.7.0/gems/actionmailer-7.0.5.1/lib/action_mailer/rescuable.rb", line 24, in process
  File "/app/vendor/bundle/ruby/2.7.0/gems/actionview-7.0.5.1/lib/action_view/rendering.rb", line 39, in process
  File "/app/vendor/bundle/ruby/2.7.0/gems/actionmailer-7.0.5.1/lib/action_mailer/base.rb", line 646, in block in process
  File "/app/vendor/bundle/ruby/2.7.0/gems/activesupport-7.0.5.1/lib/active_support/notifications.rb", line 206, in block in instrument
  File "/app/vendor/bundle/ruby/2.7.0/gems/activesupport-7.0.5.1/lib/active_support/notifications/instrumenter.rb", line 24, in instrument
  File "/app/vendor/bundle/ruby/2.7.0/gems/activesupport-7.0.5.1/lib/active_support/notifications.rb", line 206, in instrument
  File "/app/vendor/bundle/ruby/2.7.0/gems/actionmailer-7.0.5.1/lib/action_mailer/base.rb", line 645, in process
  File "/app/vendor/bundle/ruby/2.7.0/gems/actionmailer-7.0.5.1/lib/action_mailer/message_delivery.rb", line 128, in block in processed_mailer
  File "/app/vendor/bundle/ruby/2.7.0/gems/actionmailer-7.0.5.1/lib/action_mailer/message_delivery.rb", line 127, in tap
  File "/app/vendor/bundle/ruby/2.7.0/gems/actionmailer-7.0.5.1/lib/action_mailer/message_delivery.rb", line 127, in processed_mailer
  File "/app/vendor/bundle/ruby/2.7.0/gems/actionmailer-7.0.5.1/lib/action_mailer/message_delivery.rb", line 118, in deliver_now
  File "/app/vendor/bundle/ruby/2.7.0/gems/devise-4.8.1/lib/devise/models/authenticatable.rb", line 204, in send_devise_notification
  File "/app/vendor/bundle/ruby/2.7.0/gems/devise_invitable-2.0.6/lib/devise_invitable/models.rb", line 211, in deliver_invitation
  File "/app/vendor/bundle/ruby/2.7.0/gems/devise_invitable-2.0.6/lib/devise_invitable/models.rb", line 164, in block in invite!
  File "/app/vendor/bundle/ruby/2.7.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb", line 99, in run_callbacks
  File "/app/vendor/bundle/ruby/2.7.0/gems/devise_invitable-2.0.6/lib/devise_invitable/models.rb", line 152, in invite!
  File "/app/vendor/bundle/ruby/2.7.0/gems/devise_invitable-2.0.6/lib/devise_invitable/models.rb", line 328, in _invite
  File "/app/vendor/bundle/ruby/2.7.0/gems/devise_invitable-2.0.6/lib/devise_invitable/models.rb", line 334, in invite!
  File "/app/vendor/bundle/ruby/2.7.0/gems/devise_invitable-2.0.6/app/controllers/devise/invitations_controller.rb", line 80, in invite_resource
  File "/app/vendor/bundle/ruby/2.7.0/gems/devise_invitable-2.0.6/app/controllers/devise/invitations_controller.rb", line 19, in create
  File "/app/app/controllers/invitations_controller.rb", line 28, in create
  File "/app/vendor/bundle/ruby/2.7.0/gems/actionpack-7.0.5.1/lib/action_controller/metal/basic_implicit_render.rb", line 6, in send_action
  File "/app/vendor/bundle/ruby/2.7.0/gems/actionpack-7.0.5.1/lib/abstract_controller/base.rb", line 215, in process_action
  File "/app/vendor/bundle/ruby/2.7.0/gems/scout_apm-5.3.2/lib/scout_apm/instruments/action_controller_rails_3_rails4.rb", line 103, in process_action
  File "/app/vendor/bundle/ruby/2.7.0/gems/actionpack-7.0.5.1/lib/action_controller/metal/rendering.rb", line 165, in process_action
  File "/app/vendor/bundle/ruby/2.7.0/gems/actionpack-7.0.5.1/lib/abstract_controller/callbacks.rb", line 234, in block in process_action
  File "/app/vendor/bundle/ruby/2.7.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb", line 118, in block in run_callbacks
  File "/app/vendor/bundle/ruby/2.7.0/gems/actiontext-7.0.5.1/lib/action_text/rendering.rb", line 20, in with_renderer
  File "/app/vendor/bundle/ruby/2.7.0/gems/actiontext-7.0.5.1/lib/action_text/engine.rb", line 69, in block (4 levels) in <class:Engine>
  File "/app/vendor/bundle/ruby/2.7.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb", line 127, in instance_exec
  File "/app/vendor/bundle/ruby/2.7.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb", line 127, in block in run_callbacks
  File "/app/vendor
emily-humphreys commented 11 months ago

I just had an email from a client saying she couldn't create a TC or delete one... but could (even when assuming her user name). Is this related?

On Sat, Jul 29, 2023 at 12:22 AM Tom Tuddenham @.***> wrote:

View details in Rollbar: https://rollbar.com/stark-fortress-62786/stark-fortress-62786/items/130/

JSON::ParserError: unexpected token at '

500 Internal Server Error

500 Internal Server Error


nginx

' File "/app/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json/common.rb", line 216, in parse File "/app/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/lib/json/common.rb", line 216, in parse File "/app/vendor/bundle/ruby/2.7.0/gems/mandrillus-2.0.0/lib/mandrill.rb", line 87, in cast_error File "/app/vendor/bundle/ruby/2.7.0/gems/mandrillus-2.0.0/lib/mandrill.rb", line 37, in call File "/app/vendor/bundle/ruby/2.7.0/gems/mandrillus-2.0.0/lib/mandrill/api.rb", line 921, in send_template File "/app/vendor/bundle/ruby/2.7.0/gems/mandrill_mailer-1.8.0/lib/mandrill_mailer/template_mailer.rb", line 126, in deliver_now File "/app/vendor/bundle/ruby/2.7.0/gems/mandrill_mailer-1.8.0/lib/mandrill_mailer/template_mailer.rb", line 122, in deliver File "/app/app/mailers/mandrill_devise_mailer.rb", line 34, in mail File "/app/vendor/bundle/ruby/2.7.0/gems/devise-4.8.1/lib/devise/mailers/helpers.rb", line 19, in devise_mail File "/app/vendor/bundle/ruby/2.7.0/gems/devise_invitable-2.0.6/lib/devise_invitable/mailer.rb", line 9, in invitation_instructions File "/app/vendor/bundle/ruby/2.7.0/gems/actionpack-7.0.5.1/lib/abstract_controller/base.rb", line 215, in process_action File "/app/vendor/bundle/ruby/2.7.0/gems/actionpack-7.0.5.1/lib/abstract_controller/callbacks.rb", line 234, in block in process_action File "/app/vendor/bundle/ruby/2.7.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb", line 118, in block in run_callbacks File "/app/vendor/bundle/ruby/2.7.0/gems/actiontext-7.0.5.1/lib/action_text/rendering.rb", line 20, in with_renderer File "/app/vendor/bundle/ruby/2.7.0/gems/actiontext-7.0.5.1/lib/action_text/engine.rb", line 69, in block (4 levels) in File "/app/vendor/bundle/ruby/2.7.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb", line 127, in instance_exec File "/app/vendor/bundle/ruby/2.7.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb", line 127, in block in run_callbacks File "/app/vendor/bundle/ruby/2.7.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb", line 138, in run_callbacks File "/app/vendor/bundle/ruby/2.7.0/gems/actionpack-7.0.5.1/lib/abstract_controller/callbacks.rb", line 233, in process_action File "/app/vendor/bundle/ruby/2.7.0/gems/actionpack-7.0.5.1/lib/abstract_controller/base.rb", line 151, in process File "/app/vendor/bundle/ruby/2.7.0/gems/actionmailer-7.0.5.1/lib/action_mailer/rescuable.rb", line 25, in block in process File "/app/vendor/bundle/ruby/2.7.0/gems/actionmailer-7.0.5.1/lib/action_mailer/rescuable.rb", line 17, in handle_exceptions File "/app/vendor/bundle/ruby/2.7.0/gems/actionmailer-7.0.5.1/lib/action_mailer/rescuable.rb", line 24, in process File "/app/vendor/bundle/ruby/2.7.0/gems/actionview-7.0.5.1/lib/action_view/rendering.rb", line 39, in process File "/app/vendor/bundle/ruby/2.7.0/gems/actionmailer-7.0.5.1/lib/action_mailer/base.rb", line 646, in block in process File "/app/vendor/bundle/ruby/2.7.0/gems/activesupport-7.0.5.1/lib/active_support/notifications.rb", line 206, in block in instrument File "/app/vendor/bundle/ruby/2.7.0/gems/activesupport-7.0.5.1/lib/active_support/notifications/instrumenter.rb", line 24, in instrument File "/app/vendor/bundle/ruby/2.7.0/gems/activesupport-7.0.5.1/lib/active_support/notifications.rb", line 206, in instrument File "/app/vendor/bundle/ruby/2.7.0/gems/actionmailer-7.0.5.1/lib/action_mailer/base.rb", line 645, in process File "/app/vendor/bundle/ruby/2.7.0/gems/actionmailer-7.0.5.1/lib/action_mailer/message_delivery.rb", line 128, in block in processed_mailer File "/app/vendor/bundle/ruby/2.7.0/gems/actionmailer-7.0.5.1/lib/action_mailer/message_delivery.rb", line 127, in tap File "/app/vendor/bundle/ruby/2.7.0/gems/actionmailer-7.0.5.1/lib/action_mailer/message_delivery.rb", line 127, in processed_mailer File "/app/vendor/bundle/ruby/2.7.0/gems/actionmailer-7.0.5.1/lib/action_mailer/message_delivery.rb", line 118, in deliver_now File "/app/vendor/bundle/ruby/2.7.0/gems/devise-4.8.1/lib/devise/models/authenticatable.rb", line 204, in send_devise_notification File "/app/vendor/bundle/ruby/2.7.0/gems/devise_invitable-2.0.6/lib/devise_invitable/models.rb", line 211, in deliver_invitation File "/app/vendor/bundle/ruby/2.7.0/gems/devise_invitable-2.0.6/lib/devise_invitable/models.rb", line 164, in block in invite! File "/app/vendor/bundle/ruby/2.7.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb", line 99, in run_callbacks File "/app/vendor/bundle/ruby/2.7.0/gems/devise_invitable-2.0.6/lib/devise_invitable/models.rb", line 152, in invite! File "/app/vendor/bundle/ruby/2.7.0/gems/devise_invitable-2.0.6/lib/devise_invitable/models.rb", line 328, in _invite File "/app/vendor/bundle/ruby/2.7.0/gems/devise_invitable-2.0.6/lib/devise_invitable/models.rb", line 334, in invite! File "/app/vendor/bundle/ruby/2.7.0/gems/devise_invitable-2.0.6/app/controllers/devise/invitations_controller.rb", line 80, in invite_resource File "/app/vendor/bundle/ruby/2.7.0/gems/devise_invitable-2.0.6/app/controllers/devise/invitations_controller.rb", line 19, in create File "/app/app/controllers/invitations_controller.rb", line 28, in create File "/app/vendor/bundle/ruby/2.7.0/gems/actionpack-7.0.5.1/lib/action_controller/metal/basic_implicit_render.rb", line 6, in send_action File "/app/vendor/bundle/ruby/2.7.0/gems/actionpack-7.0.5.1/lib/abstract_controller/base.rb", line 215, in process_action File "/app/vendor/bundle/ruby/2.7.0/gems/scout_apm-5.3.2/lib/scout_apm/instruments/action_controller_rails_3_rails4.rb", line 103, in process_action File "/app/vendor/bundle/ruby/2.7.0/gems/actionpack-7.0.5.1/lib/action_controller/metal/rendering.rb", line 165, in process_action File "/app/vendor/bundle/ruby/2.7.0/gems/actionpack-7.0.5.1/lib/abstract_controller/callbacks.rb", line 234, in block in process_action File "/app/vendor/bundle/ruby/2.7.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb", line 118, in block in run_callbacks File "/app/vendor/bundle/ruby/2.7.0/gems/actiontext-7.0.5.1/lib/action_text/rendering.rb", line 20, in with_renderer File "/app/vendor/bundle/ruby/2.7.0/gems/actiontext-7.0.5.1/lib/action_text/engine.rb", line 69, in block (4 levels) in File "/app/vendor/bundle/ruby/2.7.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb", line 127, in instance_exec File "/app/vendor/bundle/ruby/2.7.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb", line 127, in block in run_callbacks File "/app/vendor

— Reply to this email directly, view it on GitHub https://github.com/ferrisoxide/wicked_software/issues/889, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFVZOSQPEMQDP5GBUAB3DTXSPG3ZANCNFSM6AAAAAA23TNGQ4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ferrisoxide commented 11 months ago

I just had an email from a client saying she couldn't create a TC or delete one... but could (even when assuming her user name). Is this related?

No, this is related to the invitation process. Have you had a problem trying to invite a new user into the system? I'm trying to figure out what happened here, but it might have been upstream (i.e. an issue with Mandrill / MailChimp).

I assume you mean you were able to create/delete a TC when impersonating that user. If you were able to then the user should have been able to as well. Who was the user?

emily-humphreys commented 11 months ago

It looks like that account (Niki Wallace) added a user (Domenica Landin https://app.wickedlab.com.au/users/265) but I didnt get an email about that.

Correct: Yes I could create/delete a TC when impersonating the User (Niki Wallace). She is telling me she can't.

I've emailed her a detailed response telling her this and asking for some more information about what's happening for her - i.e what steps she is taking that means she can't create / delete.

On Sat, Jul 29, 2023 at 2:16 PM Tom Tuddenham @.***> wrote:

I just had an email from a client saying she couldn't create a TC or delete one... but could (even when assuming her user name). Is this related?

No, this is related to the invitation process. Have you had a problem trying to invite a new user into the system? I'm trying to figure out what happened here, but it might have been upstream (i.e. an issue with Mandrill / MailChimp).

I assume you mean you were able to create/delete a TC when impersonating that user. If you were able to then the user should have been able to as well. Who was the user?

— Reply to this email directly, view it on GitHub https://github.com/ferrisoxide/wicked_software/issues/889#issuecomment-1656554634, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFVZOXIKEFOHN6S5XOHBDTXSSIS7ANCNFSM6AAAAAA23TNGQ4 . You are receiving this because you commented.Message ID: @.***>

ferrisoxide commented 11 months ago

@emily-humphreys

The inability to create / delete transition cards is most likely unrelated to the invitation issue. Let's track this issue separately (see #890)