Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempting to save Livechat Appearance fails #33407

Open
billynoah opened this issue Oct 1, 2024 · 3 comments
Open

Attempting to save Livechat Appearance fails #33407

billynoah opened this issue Oct 1, 2024 · 3 comments
Labels
Tasked Added to the internal issue tracking

Comments

@billynoah
Copy link

Description:

Attempting to save Livechat Appearance fails with an error.

Steps to reproduce:

  1. Go to Omnichannel > Livechat Appearance (/omnichannel/appearance)
  2. Update anything on the form and click Save

Expected behavior:

Form saves

Actual behavior:

I get an error:

must have required property 'value' [invalid-params]

Server Setup Information:

  • Version of Rocket.Chat Server: 6.12.1 (just upgraded from 6.9.0 where this was also an issue)
  • License Type: Community
  • Operating System: Ubuntu 20.04.6
  • Deployment Method: Manual Download
  • Number of Running Instances: 1
  • NodeJS Version: v14.21.3
  • MongoDB Version: 5.0.26 / wiredTiger (oplog Enabled)

Client Setup Information

  • Desktop App or Browser Version: All (Firefox, Chrome, Safari)
  • Operating System: All (Windows, Mac OS, Ubuntu)

Relevant logs:

Here is the POST request and response:

Endpoint: https://chat.example.com/api/v1/livechat/appearance
Request:

[
  {
    "_id": "Livechat_conversation_finished_message",
    "value": ""
  },
  {
    "_id": "Livechat_conversation_finished_text",
    "value": ""
  },
  {
    "_id": "Livechat_display_offline_form",
    "value": false
  },
  {
    "_id": "Livechat_email_field_registration_form",
    "value": true
  },
  {
    "_id": "Livechat_enable_message_character_limit",
    "value": false
  },
  {
    "_id": "Livechat_message_character_limit",
    "value": 0
  },
  {
    "_id": "Livechat_name_field_registration_form",
    "value": true
  },
  {
    "_id": "Livechat_offline_email",
    "value": "[email protected]"
  },
  {
    "_id": "Livechat_offline_form_unavailable",
    "value": "We are not live right now, but leave us a message and we will get back to you as soon as we can."
  },
  {
    "_id": "Livechat_offline_message",
    "value": ""
  },
  {
    "_id": "Livechat_offline_success_message",
    "value": "Thank you."
  },
  {
    "_id": "Livechat_offline_title",
    "value": "Leave a message"
  },
  {
    "_id": "Livechat_offline_title_color",
    "value": "#666666"
  },
  {
    "_id": "Livechat_registration_form",
    "value": true
  },
  {
    "_id": "Livechat_registration_form_message",
    "value": "Hey! Great to see you. We’re happy to help, but first, please let us know the following:"
  },
  {
    "_id": "Livechat_show_agent_email",
    "value": false
  },
  {
    "_id": "Livechat_show_agent_info",
    "value": false
  },
  {
    "_id": "Livechat_title",
    "value": "MAG.Chat"
  },
  {
    "_id": "Livechat_title_color",
    "value": "#C1272D"
  },
  {
    "_id": "Livechat_hide_watermark"
  },
  {
    "_id": "Livechat_background"
  },
  {
    "_id": "Livechat_widget_position"
  },
  {
    "_id": "Livechat_hide_system_messages"
  }
]

Response:

{
  "success": false,
  "error": "must have required property 'value' [invalid-params]",
  "errorType": "invalid-params"
}
@reetp
Copy link

reetp commented Oct 1, 2024

Hi ;-)

Have you got a Starter edition to test on?

I just tried on one of mine & couldn't replicate it so wondered if it was a CE issue?

If you can advise I'll push it to the team.

@billynoah
Copy link
Author

@reetp - Sorry, I do not have any other edition to test on. However, on further inspection I think it's pretty plain what's happening here, and yes I believe it is a CE issue.

Consider this screenshot:
Screenshot 2024-10-01 at 7 53 18 AM

All four of these fields are disabled. These are the same four fields in my request posted above which are missing the "value" property.

I went in the console and manually enabled all these settings and the form was able to save successfully. Unfortunately, it appears the devs have broken the ability to save the form by trying to entice CE users to go premium with out of reach features. Not very enticing!

@reetp reetp added Tasked Added to the internal issue tracking and removed stat: waiting response labels Oct 1, 2024
@reetp
Copy link

reetp commented Oct 1, 2024

Thanks.

Referred to the team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tasked Added to the internal issue tracking
Projects
None yet
Development

No branches or pull requests

2 participants